@dflat-core/web 1.7.2094 → 1.7.2095

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.
@@ -1 +1 @@
1
- {"version":3,"file":"dflat-core-web-meta-ux.mjs","names":["i2","i3","i2","i3","i2","i2","i2","i3.CustomFieldActionService","i5","i6","i2","i2","i3","i2","i2","i3.CustomFieldActionService","i4","i2","i2","i3","i2","i2","i3.CustomFieldActionService","i4","i2","i1","i2","i2","i1","i2","i2","i2.CustomFieldActionService","i3","i4","i2","i1","i2","takeUntil","i2","i4","i2","i2","i3","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i2","i3","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i1","takeUntil","i2","i4","i2","i2","i3","i2","i3","i2","i3","i2","i3","i2","i3","i2","i3","i1","i3","i4","i2","i3","i1","i2","i1","takeUntil","i1","i2.PresentationProfileResolver","takeUntil","i1.PresentationProfileService","i2","i3","i1.PresentationProfileResolver","i2.PresentationProfileActionService","i3","i2","i3","i1","i1.CustomFieldComponent","i2.CustomFieldGroupComponent","i3.CustomFieldGroupEntityComponent","i4.CustomFieldGroupItemComponent","i5.CustomFieldOptionsComponent","i6.FilesComponent","i7.KeywordComponent","i8.MetaEntityComponent","i9.MetaEntityFieldComponent","i10.MetaEntityFormComponent","i11.MetaEntityFormFieldComponent","i12.MetaEntityFormSectionComponent","i13.MetaEntityKeywordComponent","i14.MetaEntityRelationComponent","i15.MetaEntityRelationDefinitionComponent","i16.MetaEntityTranslationComponent","i17.MetaEntityViewFieldComponent","i18.ParameterComponent","i19.ParameterSectionComponent","i20.ParameterValueComponent","i21.PermissionComponent","i22.PresentationProfileItemComponent","i23.ResourceKeyComponent","i24.ResourceLanguageComponent","i25.ResourceTranslationComponent","i26.VersionComponent","i1","i2","i1"],"sources":["../../meta-ux/src/lib/custom-field-options/custom-field-options-editor.component.ts","../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html","../../meta-ux/src/lib/custom-field/custom-field-editor.component.ts","../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html","../../meta-ux/src/lib/data-components/generated/customfieldoptions.component.generated.ts","../../meta-ux/src/lib/data-components/generated/customfieldgroupitem.component.generated.ts","../../meta-ux/src/lib/data-components/customfieldgroupitem.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/customfieldgroup.component.generated.ts","../../meta-ux/src/lib/data-components/customfieldgroup.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/services/custom-field-action-service.ts","../../meta-ux/src/lib/data-components/customfieldoptions.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/customfield.component.generated.ts","../../meta-ux/src/lib/data-components/customfield.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/customfieldgroupentity.component.generated.ts","../../meta-ux/src/lib/data-components/customfieldgroupentity.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/files.component.generated.ts","../../meta-ux/src/lib/data-components/files.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/keyword.component.generated.ts","../../meta-ux/src/lib/data-components/keyword.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityfield.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityfield.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentity.component.generated.ts","../../meta-ux/src/lib/data-components/metaentity.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/form-editor/form-editor-model.ts","../../meta-ux/src/lib/form-editor/form-editor-panel.ts","../../meta-ux/src/lib/form-editor/form-editor.component.ts","../../meta-ux/src/lib/form-editor/form-editor.component.html","../../meta-ux/src/lib/data-components/generated/metaentityform.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityform.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityformfield.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityformfield.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityformsection.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityformsection.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentitykeyword.component.generated.ts","../../meta-ux/src/lib/data-components/metaentitykeyword.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityrelation.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityrelation.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityrelationdefinition.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityrelationdefinition.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentitytranslation.component.generated.ts","../../meta-ux/src/lib/data-components/metaentitytranslation.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityviewfield.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityviewfield.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/parameter.component.generated.ts","../../meta-ux/src/lib/data-components/parameter.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/parametersection.component.generated.ts","../../meta-ux/src/lib/data-components/parametersection.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/parametervalue.component.generated.ts","../../meta-ux/src/lib/data-components/parametervalue.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/permission.component.generated.ts","../../meta-ux/src/lib/data-components/permission.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/presentationprofileitem.component.generated.ts","../../meta-ux/src/lib/data-components/presentationprofileitem.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/resourcetranslation.component.generated.ts","../../meta-ux/src/lib/data-components/resourcetranslation.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/resourcekey.component.generated.ts","../../meta-ux/src/lib/data-components/resourcekey.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/resourcelanguage.component.generated.ts","../../meta-ux/src/lib/data-components/resourcelanguage.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/version.component.generated.ts","../../meta-ux/src/lib/data-components/version.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/meta-components.generated.ts","../../meta-ux/src/lib/data-components/generated/meta-sections.generated.ts","../../meta-ux/src/lib/presentation-profile/column-display-types.ts","../../meta-ux/src/lib/presentation-profile/column-display-dialog/column-display-dialog.component.ts","../../meta-ux/src/lib/presentation-profile/column-display-dialog/column-display-dialog.component.html","../../meta-ux/src/lib/presentation-profile/presentation-profile-transformer.ts","../../meta-ux/src/lib/editor-components/presentation-profile-editor.component.ts","../../meta-ux/src/lib/editor-components/presentation-profile-editor.component.html","../../meta-ux/src/lib/data-components/generated/presentationprofile.component.generated.ts","../../meta-ux/src/lib/data-components/presentation-profile-screen.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/editor-components/custom-field-group-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../meta-ux/src/lib/editor-components/custom-field-group-entity-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../meta-ux/src/lib/editor-components/custom-field-group-item-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../meta-ux/src/lib/editor-components/permission-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../meta-ux/src/lib/editor-components/resource-translation-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../meta-ux/src/lib/entity-files/entity-files.component.ts","../../meta-ux/src/lib/entity-files/entity-files.component.html","../../meta-ux/src/lib/meta-entity-field/meta-entity-field-editor.component.ts","../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html","../../meta-ux/src/lib/presentation-profile/save-view-prompt/save-view-prompt.component.ts","../../meta-ux/src/lib/presentation-profile/presentation-profile-resolver.service.ts","../../meta-ux/src/lib/presentation-profile/card-slots.ts","../../meta-ux/src/lib/presentation-profile/presentation-profile.service.ts","../../meta-ux/src/lib/presentation-profile/presentation-profile.component.ts","../../meta-ux/src/lib/presentation-profile/presentation-profile.component.html","../../meta-ux/src/lib/presentation-profile/presentation-profile-action-service.ts","../../meta-ux/src/lib/presentation-profile/pp-facade.service.ts","../../meta-ux/src/lib/resource-language/resourcelanguage-editor.component.ts","../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html","../../meta-ux/src/lib/services/custom-field-service.ts","../../meta-ux/src/lib/meta-ux.module.ts","../../meta-ux/src/lib/custom-field-group/custom-field-group-item/schema-field-delete-dialog.component.ts","../../meta-ux/src/lib/data-components/generated/entityfiles.component.generated.ts","../../meta-ux/src/lib/meta-routing.module.ts"],"sourcesContent":["import { Utilities } from '@dflat-core/web/core';\r\nimport { EntityViewModelWithFields } from '@dflat-core/web/core-model';\r\nimport { ApplicationService, BaseEditorComponent, IIsCancel, NewEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldOptionsView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from \"@angular/core\";\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'alg-custom-field-options-editor',\r\n // templateUrl: '../../../../core-ux/src/lib/components/base-editor/base-editor.component.html',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\n\r\nexport class CustomFieldOptionsEditorComponent extends NewEditorComponent<CustomFieldOptionsView> implements IIsCancel\r\n{\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldOptions;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? (\"Nouvelle option d'attribut\") : (\"Option d'attribut (\" + this.id + \")\")): \"Options d'attribut\";\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n public isCancel: boolean = false;\r\n CustomFieldId: number;\r\n constructor(\r\n app : ApplicationService,\r\n route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit(){\r\n super.ngOnInit();\r\n this.facade.config.addAlterViewModelFunction((vm)=> this.alterViewModel(vm));\r\n }\r\n\r\n alterViewModel(vm : EntityViewModelWithFields<CustomFieldOptionsView>) : EntityViewModelWithFields<CustomFieldOptionsView>{\r\n if(!Utilities.IsNil(vm))\r\n {\r\n const isDefaultIndex = vm.FieldSections[0].FieldViewModels.findIndex(obj => obj.PropertyName === 'IsDefault');\r\n if (isDefaultIndex > -1)\r\n vm.FieldSections[0].FieldViewModels.splice(isDefaultIndex, 1);\r\n\r\n if(vm.FieldSections.length > 1)\r\n vm.FieldSections.pop();\r\n }\r\n return vm\r\n }\r\n}\r\n","<div class=\"editor-container\">\r\n <div class=\"breadcrumb-panel\" *ngIf=\"(this.facade.editor.isStandaloneMode$| async)\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n <!-- entityConfigLoader\r\n #configLoader=\"entityConfigLoader\"\r\n [entityKey]=\"getEntityKey()\" -->\r\n\r\n <ng-container\r\n >\r\n <div class=\"property-editor-container\" [class.show-buttons]=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <alg-property-editor\r\n class=\"property-editor-container-inner\"\r\n #propertyGridComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-property-editor>\r\n </div>\r\n <div class=\"buttons-container\" *ngIf=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <div class=\"footer-buttons\" >\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!this.dirty\"\r\n (click)=\"handleDialogButtonClick(false)\">\r\n Sauvegarder\r\n </button>\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\">\r\n Annuler\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","import { ApplicationService, IActionComponent, IIsCancel, NewEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from \"@angular/core\";\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'alg-custom-field-editor',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\n\r\nexport class CustomFieldEditorComponent extends NewEditorComponent<CustomFieldView> implements IIsCancel,IActionComponent\r\n{\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomField;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvel attribut') : ('Attribut (' + this.id + ')')): 'Attributs';\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.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 public isCancel: boolean = false;\r\n\r\n}\r\n","<div class=\"editor-container\">\r\n <div class=\"breadcrumb-panel\" *ngIf=\"(this.facade.editor.isStandaloneMode$| async)\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n <!-- entityConfigLoader\r\n #configLoader=\"entityConfigLoader\"\r\n [entityKey]=\"getEntityKey()\" -->\r\n\r\n <ng-container\r\n >\r\n <div class=\"property-editor-container\" [class.show-buttons]=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <alg-property-editor\r\n class=\"property-editor-container-inner\"\r\n #propertyGridComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-property-editor>\r\n </div>\r\n <div class=\"buttons-container\" *ngIf=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <div class=\"footer-buttons\" >\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!this.dirty\"\r\n (click)=\"handleDialogButtonClick(false)\">\r\n Sauvegarder\r\n </button>\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\">\r\n Annuler\r\n </button>\r\n </div>\r\n </div>\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 CustomFieldOptionsController).\r\n// Ne pas modifier : le code spécifique s'écrit dans CustomFieldOptionsComponent, dérivé de BaseCustomFieldOptionsComponent.\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 { CustomFieldOptionsFilterViewModel, CustomFieldOptionsView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des CustomFieldOptionsView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : CustomFieldOptionsComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseCustomFieldOptionsComponent extends BaseComponent<CustomFieldOptionsFilterViewModel, CustomFieldOptionsView> {\r\n getTitle(): string {\r\n return 'Option de champ personnalisé';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldOptions;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_CUSTOMFIELDOPTIONS;\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 'CFO';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur CustomFieldGroupItemController).\r\n// Ne pas modifier : le code spécifique s'écrit dans CustomFieldGroupItemComponent, dérivé de BaseCustomFieldGroupItemComponent.\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 { CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des CustomFieldGroupItemView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : CustomFieldGroupItemComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseCustomFieldGroupItemComponent extends BaseComponent<CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView> {\r\n getTitle(): string {\r\n return 'Élément d\\'un groupe de champs';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroupItem;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_CUSTOMFIELDGROUPITEM;\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 'CFIV';\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 { ApplicationService, DialogType } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldGroupItemView, CustomFieldGroupTypes } from '@dflat-core/web/meta-model';\r\nimport { CustomFieldActionService } from '../services/custom-field-action-service';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { takeUntil } from 'rxjs';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { CustomFieldGroupItemDataService } from '@dflat-core/web/meta-data';\r\nimport { BaseCustomFieldGroupItemComponent } from './generated/customfieldgroupitem.component.generated';\r\n\r\n@Component({\r\n selector: 'msw-custom-field-group-item',\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 CustomFieldGroupItemComponent extends BaseCustomFieldGroupItemComponent {\r\n private initializationParams: Partial<CustomFieldGroupItemView> | null = null;\r\n\r\n // Titre métier (le titre généré est « Élément d'un groupe de champs »).\r\n getTitle(): string {\r\n return \"Liste des attributs\";\r\n }\r\n\r\n constructor(app: ApplicationService,\r\n protected route: ActivatedRoute,\r\n private cfactionService: CustomFieldActionService,\r\n private customFieldGroupItemDataService : CustomFieldGroupItemDataService,\r\n private toastr: ToastrService)\r\n {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n // Ordre des attributs du groupe : lignes déplacées à la souris dans la grille.\r\n this.facade.config.rowOrderProperty = 'OrderNumber';\r\n this.facade.config.rowRankProperty = 'OrderRank';\r\n\r\n this.cfactionService.onCustomFieldGroupAddSubject.asObservable().pipe(takeUntil(this.destroy$))\r\n .subscribe(()=>{ this.performLoadData();});\r\n\r\n // Override add action to include initialization parameters (MetaEntityId) from parent context\r\n this.facade.actions.patch('add', {\r\n action: () => {\r\n const initParams = this.getInitializationParameters();\r\n if (!Utilities.IsNil(initParams)) {\r\n this.facade.selection.createNewEntity(initParams);\r\n }\r\n this.cfactionService.addCustomFieldtoGroup(this.Filter.GroupId, initParams);\r\n },\r\n getParameter: () => this.getInitializationParameters()\r\n });\r\n\r\n // Override delete action for Schema group field deletion with safety check\r\n this.facade.actions.patch('delete',\r\n {\r\n action: () => {\r\n const selectedItems = this.facade.selection.Selected;\r\n if (!selectedItems || selectedItems.length === 0) {\r\n this.toastr.error('Aucun élément sélectionné');\r\n return;\r\n }\r\n const item = selectedItems[0];\r\n \r\n if (item.CustomFieldGroupType === CustomFieldGroupTypes.Schema) {\r\n this.checkAndDeleteSchemaField(item);\r\n } else {\r\n this.proceedWithDelete(item, false);\r\n }\r\n\r\n },\r\n isActive: () => {\r\n const selected = this.facade.selection.Selected;\r\n return selected && selected.length > 0;\r\n }\r\n });\r\n }\r\n\r\n private checkAndDeleteSchemaField(item: CustomFieldGroupItemView): void {\r\n const groupId = item?.GroupId;\r\n if (!groupId) {\r\n this.toastr.error('Groupe non identifié');\r\n return;\r\n }\r\n\r\n this.customFieldGroupItemDataService.checkSchemaFieldDeletion(item)\r\n .subscribe({\r\n next: (response: any) => {\r\n if (!response.Success) {\r\n if (response.Warnings?.includes('REFERENCE_PRESENT')) {\r\n this.toastr.warning(response.ErrorMessage);\r\n } else if (response.Warnings?.includes('DATA_PRESENT')) {\r\n this.showDataCheckDialog(response, item);\r\n } else {\r\n this.toastr.error(response.ErrorMessage);\r\n }\r\n return;\r\n }\r\n\r\n this.toastr.success(response.ErrorMessage);\r\n this.proceedWithDelete(item, true);\r\n },\r\n error: (error) => {\r\n this.toastr.error('Erreur lors de la vérification: ' + error.message);\r\n }\r\n });\r\n }\r\n\r\n private showDataCheckDialog(response: any, item: CustomFieldGroupItemView): void {\r\n const message = `Ce champ contient des données. Choisissez une action:\\n${response.ErrorMessage}`;\r\n this.alertService.showDialog(\r\n message,\r\n DialogType.Confirm,\r\n () => {this.proceedWithDelete(item, false);},\r\n () => {},\r\n 'Désactiver',\r\n 'Annuler',\r\n 'Suppression de champ'\r\n ).subscribe();\r\n }\r\n\r\n private proceedWithDelete(item: CustomFieldGroupItemView, isHardDelete: boolean): void {\r\n this.facade.actions.executeAction('delete', true);\r\n }\r\n\r\n private getInitializationParameters(): Partial<CustomFieldGroupItemView> | null {\r\n return this.initializationParams;\r\n }\r\n\r\n public setInitializationParameters(params: Partial<CustomFieldGroupItemView>): void {\r\n this.initializationParams = params;\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 CustomFieldGroupController).\r\n// Ne pas modifier : le code spécifique s'écrit dans CustomFieldGroupComponent, dérivé de BaseCustomFieldGroupComponent.\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 { CustomFieldGroup, CustomFieldGroupFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des CustomFieldGroup (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : CustomFieldGroupComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseCustomFieldGroupComponent extends BaseComponent<CustomFieldGroupFilterViewModel, CustomFieldGroup> {\r\n getTitle(): string {\r\n return 'Famille d\\'attributs';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroup;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_CUSTOMFIELDGROUP;\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 'CFG';\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/CustomFieldGroupForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 {\r\n CustomFieldGroup,\r\n CustomFieldGroupItemFilterViewModel,\r\n CustomFieldGroupItemView,\r\n CustomFieldGroupTypes,\r\n} from '@dflat-core/web/meta-model';\r\nimport { CustomFieldGroupItemComponent } from './customfieldgroupitem.component';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { SelectionType } from '@dflat-core/web/core-ux';\r\nimport { takeUntil } from 'rxjs';\r\nimport { Utilities } from '@dflat-core/web/core';\r\nimport { BaseCustomFieldGroupComponent } from './generated/customfieldgroup.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-custom-field-group',\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 CustomFieldGroupComponent extends BaseCustomFieldGroupComponent {\r\n\r\n FIELD_OPTIONS_SECTION: string = \"Attributs\";\r\n private initializationParams: Partial<CustomFieldGroup> | null = null;\r\n\r\n // Titre au pluriel (le titre généré est « Famille d'attributs »).\r\n getTitle(): string {\r\n return \"Familles d'attributs\";\r\n }\r\n\r\n constructor(\r\n app: ApplicationService,\r\n route: ActivatedRoute,\r\n ) {\r\n super(app, route); \r\n }\r\n \r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n this.facade.selection.setSelectionType(SelectionType.single);\r\n this.facade.selection.selected$.pipe(takeUntil(this.destroy$))\r\n .subscribe((selected) => {\r\n this.facade.setReadOnlyMode(this.isSchemaGroup(selected));\r\n });\r\n\r\n // Override add action to include initialization parameters (MetaEntityId, CustomFieldGroupType) from parent context\r\n this.facade.actions.patch('add', {\r\n getParameter: () => this.getInitializationParameters()\r\n });\r\n\r\n this.facade.sections.registerSection(this.FIELD_OPTIONS_SECTION,\r\n CustomFieldGroupItemComponent,\r\n {\r\n filterOverride : (selected) => {\r\n const filter: CustomFieldGroupItemFilterViewModel = {\r\n GroupId: selected && selected.length > 0 ? selected[0].Id : -1,\r\n SortColumn : 'OrderNumber',\r\n SortDirection : 'ASC',\r\n Offset: 0,\r\n Take: 25\r\n };\r\n return filter;\r\n },\r\n selectionOverride : (component: CustomFieldGroupItemComponent, selected : CustomFieldGroup[]) => {\r\n const initParams = {\r\n MetaEntityId: selected[0]?.MetaEntityId ?? -1,\r\n CustomFieldGroupType:CustomFieldGroupTypes.Extension\r\n } as Partial<CustomFieldGroupItemView>;\r\n component.setInitializationParameters(initParams);\r\n }\r\n });\r\n }\r\n\r\n private isSchemaGroup(selected: CustomFieldGroup[]): boolean {\r\n return selected?.[0]?.CustomFieldGroupType === CustomFieldGroupTypes.Schema;\r\n }\r\n\r\n private getInitializationParameters(): Partial<CustomFieldGroup> | null {\r\n return this.initializationParams;\r\n }\r\n\r\n public setInitializationParameters(params: Partial<CustomFieldGroup>): void {\r\n this.initializationParams = params;\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","import { Utilities } from '@dflat-core/web/core';\r\nimport {\r\n AlertService,\r\n FacadeModalService,\r\n MessageSeverity\r\n} from '@dflat-core/web/core-ux';\r\nimport {\r\n CustomFieldGroupEntityDataService,\r\n CustomFieldGroupItemDataService,\r\n CustomFieldOptionsDataService,\r\n MetaEntityFieldDataService,\r\n} from '@dflat-core/web/meta-data';\r\nimport {\r\n CustomFieldView,\r\n CustomFieldGroup,\r\n CustomFieldGroupEntityView,\r\n CustomFieldGroupItemView,\r\n CustomFieldOptionsView,\r\n MetaEntityField\r\n} from '@dflat-core/web/meta-model';\r\nimport { CustomFieldComponent } from '../data-components/customfield.component';\r\nimport { CustomFieldGroupComponent } from '../data-components/customfieldgroup.component';\r\nimport { CustomFieldOptionsEditorComponent } from '../custom-field-options/custom-field-options-editor.component';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, Subject } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class CustomFieldActionService {\r\n constructor(\r\n public alertService: AlertService,\r\n private customFieldOptionsDataService: CustomFieldOptionsDataService,\r\n private customFieldGroupItemDataService: CustomFieldGroupItemDataService,\r\n private customFieldGroupEntityDataService: CustomFieldGroupEntityDataService,\r\n private metaEntityFieldDataService: MetaEntityFieldDataService,\r\n private selector: FacadeModalService\r\n ) {}\r\n\r\n onCustomFieldAddSubject = new Subject<MetaEntityField>();\r\n addCustomField(metaEntityKey: string, existentCustomFields: number[]) {\r\n this.selector\r\n .openSelectorModal(\r\n 'Ajout des attributs',\r\n CustomFieldComponent,\r\n (component) => {}\r\n )\r\n .subscribe((res: CustomFieldView[]) => {\r\n // subscription.unsubscribe();\r\n\r\n let models: MetaEntityField[] = [];\r\n res.forEach((element) => {\r\n var mef: MetaEntityField = {\r\n MetaEntityKey: metaEntityKey,\r\n CustomFieldId: element.Id,\r\n };\r\n models.push(mef);\r\n });\r\n if (models.length > 0)\r\n this.metaEntityFieldDataService\r\n .saveEntities(models)\r\n .subscribe(\r\n (result) => {\r\n if (result.Success)\r\n this.alertService.showMessage(\r\n `Attributs`,\r\n `L'ajout de l'attribut a été effectuée avec succès`,\r\n MessageSeverity.Success\r\n );\r\n else this.alertService.handleSaveError(result);\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n err.error.Message,\r\n MessageSeverity.Error\r\n );\r\n },\r\n () => {\r\n this.onCustomFieldAddSubject.next({});\r\n }\r\n );\r\n return res;\r\n });\r\n }\r\n\r\n private onCustomFieldOptionAddSubject = new Subject<CustomFieldOptionsView>();\r\n customFieldOptionAdded$: Observable<CustomFieldOptionsView> =\r\n this.onCustomFieldOptionAddSubject.asObservable()!;\r\n addCustomFieldOption(customFieldId: number) {\r\n let modal = this.selector\r\n .openEditorModal(\r\n \"Ajout option d'attribut\",\r\n CustomFieldOptionsEditorComponent,\r\n (component: CustomFieldOptionsEditorComponent) => {},\r\n {}\r\n )\r\n .subscribe((component: CustomFieldOptionsEditorComponent) => {\r\n if (!component.isCancel) {\r\n var entity = component.entityViewModel.ViewModel;\r\n this.customFieldOptionsDataService\r\n .saveEntity(entity)\r\n .subscribe(\r\n (res) => {\r\n if (res.Success)\r\n this.alertService.showMessage(\r\n \"Option d'attribut\",\r\n `L'option a été ajoutée avec succès`,\r\n MessageSeverity.Success\r\n );\r\n else this.alertService.handleSaveError(res);\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n err.error.Message,\r\n MessageSeverity.Error\r\n );\r\n },\r\n () => {\r\n this.onCustomFieldOptionAddSubject.next(entity);\r\n }\r\n );\r\n }\r\n });\r\n\r\n return modal;\r\n }\r\n\r\n onCustomFieldGroupAddSubject = new Subject<CustomFieldGroup>();\r\n addCustomFieldtoGroup(groupId: number, initParams?: Partial<CustomFieldGroupItemView>) {\r\n this.selector\r\n .openSelectorModal('Ajout des attributs', CustomFieldComponent)\r\n .subscribe((res: CustomFieldView[]) => {\r\n let models: CustomFieldGroupItemView[] = res\r\n .map((element) => {return {\r\n GroupId: groupId,\r\n CustomFieldId: element.Id,\r\n ...initParams\r\n } as CustomFieldGroupItemView});\r\n if (models.length > 0)\r\n this.customFieldGroupItemDataService\r\n .saveEntities(models)\r\n .subscribe(\r\n (result) => {\r\n if (result.Success)\r\n this.alertService.showMessage(\r\n `Attributs`,\r\n `L'ajout de l'attribut a été effectuée avec succès`,\r\n MessageSeverity.Success\r\n );\r\n else this.alertService.handleSaveError(result);\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n // err.error.Message,\r\n \"Une erreur s'est produite lors de l'ajout de l'attribut à la famille\",\r\n MessageSeverity.Error\r\n );\r\n },\r\n () => {\r\n this.onCustomFieldGroupAddSubject.next({});\r\n }\r\n );\r\n return res;\r\n });\r\n }\r\n\r\n onCustomFieldGroupEntityAddSubject = new Subject<CustomFieldGroup>();\r\n addCustomFieldGroupEntity(entityId: number, entityKey: string) {\r\n \r\n if (Utilities.IsNil(entityKey))\r\n throw new Error('Le paramètre entityKey n\\'est pas spécifié !');\r\n\r\n this.selector\r\n .openSelectorModal(\r\n \"Ajouter une famille d'attributs\",\r\n CustomFieldGroupComponent,\r\n (component) => {}\r\n )\r\n .subscribe((res: CustomFieldGroup[]) => {\r\n if(Utilities.IsNil(res))\r\n return;\r\n let models: CustomFieldGroupEntityView[] = [];\r\n res.forEach((element) => {\r\n var cfge: CustomFieldGroupEntityView = {\r\n CustomFieldGroupId: element.Id,\r\n EntityId: entityId,\r\n EntityKey: entityKey,\r\n };\r\n models.push(cfge);\r\n });\r\n if (models.length > 0)\r\n this.customFieldGroupEntityDataService\r\n .saveEntities(models)\r\n .subscribe(\r\n (result) => {\r\n if (result.Success)\r\n this.alertService.showMessage(\r\n `Famille d'attribut`,\r\n `L'ajout des familles d'attribut a été effectuée avec succès`,\r\n MessageSeverity.Success\r\n );\r\n else this.alertService.handleSaveError(result);\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n \"Une erreur s'est produite lors de l'ajout des familles d'attributs \",\r\n MessageSeverity.Error\r\n );\r\n },\r\n () => {\r\n this.onCustomFieldGroupEntityAddSubject.next(\r\n {}\r\n );\r\n }\r\n );\r\n return res;\r\n });\r\n }\r\n}\r\n","import { Utilities } from '@dflat-core/web/core';\r\nimport { Action, ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldOptionsView } from '@dflat-core/web/meta-model';\r\nimport { CustomFieldActionService } from '../services/custom-field-action-service';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { takeUntil } from 'rxjs';\r\nimport { BaseCustomFieldOptionsComponent } from './generated/customfieldoptions.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-custom-field-options',\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 CustomFieldOptionsComponent extends BaseCustomFieldOptionsComponent {\r\n // Titre court, affiché en section de l'attribut (le titre généré est « Option de champ personnalisé »).\r\n getTitle(): string {\r\n return \"Options\";\r\n }\r\n\r\n constructor(\r\n app: ApplicationService,\r\n route: ActivatedRoute,\r\n private customFieldActionService: CustomFieldActionService\r\n ) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit() {\r\n super.ngOnInit();\r\n this.facade.actions.hideAction('edit');\r\n // Ordre des options : lignes déplacées à la souris dans la grille.\r\n this.facade.config.rowOrderProperty = 'OrderNumber';\r\n this.facade.config.rowRankProperty = 'OrderRank';\r\n const actionsToAdd = [\r\n new Action(\"Définir par défaut\",null, true, true, false, 'circle-check-solid', 'bg-orange', () => this.setIsDefault(),null,() => this.canSetIsDefault())\r\n ];\r\n this.facade.actions.addActions(actionsToAdd);\r\n this.facade.actions.patch('add', {\r\n action : () => this.add() , \r\n isActive : () => { return !Utilities.IsNil(this.Filter) && this.Filter.CustomFieldId > 0 }\r\n });\r\n \r\n this.customFieldActionService.customFieldOptionAdded$.pipe(takeUntil(this.destroy$))\r\n .subscribe(()=>{ this.performLoadData();});\r\n\r\n }\r\n\r\n add () {\r\n let partial : Partial<CustomFieldOptionsView> \r\n = { CustomFieldId : this.Filter.CustomFieldId };\r\n const hasSelection = this.facade.selection.hasSelection();\r\n \r\n this.facade.selection.createNewEntity(partial);\r\n let item = this.facade.selection.Selected[0];\r\n if(!hasSelection){\r\n item.IsDefault = true;\r\n item.IsDefaultImage = this.img;\r\n }\r\n }\r\n \r\n img =\"iVBORw0KGgoAAAANSUhEUgAAABgAAAAgCAYAAAAIXrg4AAACRElEQVRIS+2VMWhTURSG/3PvyyuSQQrlvdbBKkWQiiLqWivFQVDbJsXiIiIIFjcnBRcHFx1cOzkoiFBsHooIHaqQjopgQQcpDkHb5EXQxdTmvXeOJBhJ6ktz01hw6Nsu97//d8+555xH2OKPttgf24CWGf6/UiQZ16lcmdIFv+XVfwvaiqDs9T6EQOx0/uI/BwRe7wmCvKoYi1LDibGVrAnEKAKZOWCH9td3JNhfBYh8sIr+YbqCoBXECBBl3JtCuF1vRkQ39Hj+TscAeebuDSJ+r6B21Jsx849Ewhqk0ZXcRpDYCGS2py/S+jggQxzJaaXUniYmnwC8AGhBB1GWJov59bo/gNBzLoAxAkVDAAZahR67z1gCYQGQeSvtP6qWdE0YZZwpIZrelPHfhy5bqcL9BkBlEWTce0S41glEWO4mJvzrNY+GN5BbUNEh1wNhdFMQplmdzp8jgsQCqjU+5ya5JFkBHWkPwq910DVMk59XG8o5zkSe9uwqs36jgT4TiAi+WCEf27CK1huFnjMP0IgJAKA5K5U/Fadt2snRE3dRNA6aAAjyVqf8o20B1jx32TRFDMnZKb+/LUDZc9YUyDaJgJlL9kQxaQyQme6dUcL+XjvA4FUF9ZiVqjaiivgqE5+vn0/a0kk6u1xqOirqN8RzBiLQkoA+Ksi0SnQ9oDO5bw2a57u7ufzzEhNNEbBPa9UfN/iaDrtQ6UFrvPCyvmliS1pAoeectDQWacwvGEVgkndTjdEPx9TM+JE7MdxOUdvZ+wVUzsIhexJVnQAAAABJRU5ErkJggg==\";\r\n\r\n setIsDefault() { \r\n const datas = this.facade.selection.getCurrentData();\r\n const oldDefault = datas.find(x=>x.IsDefault);\r\n\r\n const selected = this.selectedEntities[0];\r\n selected.IsDefault = true;\r\n selected.IsDefaultImage = this.img;\r\n let toSave = [selected];\r\n\r\n if(oldDefault){\r\n oldDefault.IsDefault = false;\r\n oldDefault.IsDefaultImage = null;\r\n toSave.push(oldDefault);\r\n }\r\n this.facade.change.emitUpdated(toSave);\r\n }\r\n\r\n canSetIsDefault() : boolean {\r\n return !this.selectedEntities[0].IsDefault;\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 CustomFieldController).\r\n// Ne pas modifier : le code spécifique s'écrit dans CustomFieldComponent, dérivé de BaseCustomFieldComponent.\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 { CustomFieldFilterViewModel, CustomFieldView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des CustomFieldView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : CustomFieldComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseCustomFieldComponent extends BaseComponent<CustomFieldFilterViewModel, CustomFieldView> {\r\n getTitle(): string {\r\n return 'Attributs';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomField;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_CUSTOMFIELD;\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 'CFI';\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/CustomFieldForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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, filterFromId } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldOptionsFilterViewModel, CustomFieldView } from '@dflat-core/web/meta-model';\r\nimport { CustomFieldOptionsComponent } from './customfieldoptions.component';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { BaseCustomFieldComponent } from './generated/customfield.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-custom-field',\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 CustomFieldComponent extends BaseCustomFieldComponent {\r\n constructor(\r\n app: ApplicationService,\r\n route: ActivatedRoute,\r\n ) {\r\n super(app, route);\r\n }\r\n\r\n FIELD_OPTIONS_SECTION: string = \"Options d'attribut\";\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.facade.sections.registerSection(\r\n this.FIELD_OPTIONS_SECTION,\r\n CustomFieldOptionsComponent,\r\n {\r\n filterOverride: filterFromId<CustomFieldView, CustomFieldOptionsFilterViewModel>('CustomFieldId'),\r\n show:(selected : CustomFieldView[]) => selected.length == 1 && selected[0].CustomFieldType == 3,\r\n }\r\n );\r\n this.facade.actions.patch('showHistory', { isActive: () => true });\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 CustomFieldGroupEntityController).\r\n// Ne pas modifier : le code spécifique s'écrit dans CustomFieldGroupEntityComponent, dérivé de BaseCustomFieldGroupEntityComponent.\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 { CustomFieldGroupEntityFilterViewModel, CustomFieldGroupEntityView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des CustomFieldGroupEntityView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : CustomFieldGroupEntityComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseCustomFieldGroupEntityComponent extends BaseComponent<CustomFieldGroupEntityFilterViewModel, CustomFieldGroupEntityView> {\r\n getTitle(): string {\r\n return 'Entité d\\'un groupe de champs';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroupEntity;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_CUSTOMFIELDGROUPENTITY;\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 'CFGV';\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 { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldActionService } from '../services/custom-field-action-service';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Subscription, takeUntil } from 'rxjs';\r\nimport { BaseCustomFieldGroupEntityComponent } from './generated/customfieldgroupentity.component.generated';\r\n\r\n@Component({\r\n selector: 'msw-custom-field-group-entity',\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 CustomFieldGroupEntityComponent extends BaseCustomFieldGroupEntityComponent {\r\n // Titre métier (le titre généré est « Entité d'un groupe de champs »).\r\n getTitle(): string {\r\n return \"Famille d'attributs\";\r\n }\r\n\r\n constructor(app: ApplicationService,\r\n protected route: ActivatedRoute,\r\n private cfactionService: CustomFieldActionService)\r\n {\r\n super(app, route);\r\n }\r\n\r\n onCFGEAddSubscription : Subscription;\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n \r\n this.facade.layout.disablePropertyPanel();\r\n\r\n this.cfactionService.onCustomFieldGroupEntityAddSubject.asObservable().pipe(takeUntil(this.destroy$))\r\n .subscribe(()=>{ this.performLoadData();});\r\n \r\n this.facade.actions.patch('add',\r\n { \r\n action : () => { \r\n this.cfactionService.addCustomFieldGroupEntity(this.Filter.EntityId,this.Filter.EntityKey)\r\n } , \r\n isActive : () => { \r\n return true; \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 FilesController).\r\n// Ne pas modifier : le code spécifique s'écrit dans FilesComponent, dérivé de BaseFilesComponent.\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 { FilesFilterViewModel, FilesView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des FilesView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : FilesComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseFilesComponent extends BaseComponent<FilesFilterViewModel, FilesView> {\r\n getTitle(): string {\r\n return 'Fichiers';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Files;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_FILES;\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 'FILV';\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 { BaseFilesComponent } from './generated/files.component.generated';\r\n\r\n/**\r\n * Recherche et édition des FilesView : code spécifique du composant (la partie générée\r\n * est BaseFilesComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-files-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 FilesComponent extends BaseFilesComponent {\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 KeywordController).\r\n// Ne pas modifier : le code spécifique s'écrit dans KeywordComponent, dérivé de BaseKeywordComponent.\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 { Keyword, KeywordFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des Keyword (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : KeywordComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseKeywordComponent extends BaseComponent<KeywordFilterViewModel, Keyword> {\r\n getTitle(): string {\r\n return 'Mots-clés';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Keyword;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_KEYWORD;\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 'KWD';\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/KeywordForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseKeywordComponent } from './generated/keyword.component.generated';\r\n\r\n/**\r\n * Recherche et édition des Keyword : code spécifique du composant (la partie générée\r\n * est BaseKeywordComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-keyword-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 KeywordComponent extends BaseKeywordComponent {\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 MetaEntityFieldController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityFieldComponent, dérivé de BaseMetaEntityFieldComponent.\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 { MetaEntityField, MetaEntityFieldFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityField (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityFieldComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityFieldComponent extends BaseComponent<MetaEntityFieldFilterViewModel, MetaEntityField> {\r\n getTitle(): string {\r\n return 'Champ de méta-entité';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityField;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYFIELD;\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 'MEF';\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/MetaEntityFieldForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Utilities } from '@dflat-core/web/core';\r\nimport { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { MetaEntityFieldFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { CustomFieldActionService } from '../services/custom-field-action-service';\r\nimport { Component, ChangeDetectionStrategy } from \"@angular/core\";\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Subject, takeUntil } from 'rxjs';\r\nimport { BaseMetaEntityFieldComponent } from './generated/metaentityfield.component.generated';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'alg-meta-entity-field',\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 MetaEntityFieldComponent extends BaseMetaEntityFieldComponent {\r\n\r\n // Titre métier (le titre généré est « Champ de méta-entité »).\r\n getTitle(): string {\r\n return 'Attributs';\r\n }\r\n\r\n constructor(\r\n app: ApplicationService,\r\n private customFieldActionService : CustomFieldActionService,\r\n protected route: ActivatedRoute)\r\n {\r\n super(app, route);\r\n\r\n }\r\n \r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.customFieldActionService.onCustomFieldAddSubject.pipe(takeUntil(this.privateDestroy$))\r\n .subscribe(()=>{ this.performLoadData(); })\r\n\r\n \r\n this.facade.actions.hideAction('export');\r\n this.facade.actions.hideAction('edit');\r\n this.facade.actions.hideAction('save');\r\n \r\n this.facade.actions.patch('add',{ action : () => this.add()});\r\n this.facade.actions.patch('delete',\r\n { isActive : () => { const selected = this.selectedEntities;\r\n return selected.length == 1 && !Utilities.IsNil(selected[0].CustomFieldId);}\r\n });\r\n }\r\n\r\n\r\n private privateDestroy$ = new Subject<void>();\r\n public ngOnDestroy(){\r\n this.privateDestroy$.next();\r\n this.privateDestroy$.complete();\r\n }\r\n\r\n \r\n\r\n add() {\r\n const values = this.facade.selection.getCurrentData()\r\n .filter(x=>!Utilities.IsNil(x.CustomFieldId))\r\n .map(x=>x.CustomFieldId);\r\n const filter = this.facade.filter.filter$.value as MetaEntityFieldFilterViewModel;\r\n let entityKey = filter.MetaEntityKey;\r\n console.log(entityKey)\r\n this.customFieldActionService.addCustomField(this.Filter.MetaEntityKey,Array.from(values));\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 MetaEntityController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityComponent, dérivé de BaseMetaEntityComponent.\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 { MetaEntity, MetaEntityFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntity (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityComponent extends BaseComponent<MetaEntityFilterViewModel, MetaEntity> {\r\n getTitle(): string {\r\n return 'Modèle';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntity;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITY;\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 'MEY';\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/MetaEntityForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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","\r\nimport { SpecificSection } from '@dflat-core/web/core-model';\r\nimport { additionalQueryOf, IIsCancel } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldGroup, CustomFieldGroupFilterViewModel, CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView, MetaEntity, MetaEntityField, MetaEntityFieldFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { CustomFieldGroupComponent } from './customfieldgroup.component';\r\nimport { CustomFieldGroupItemComponent } from './customfieldgroupitem.component';\r\nimport { MetaEntityFieldComponent } from './metaentityfield.component';\r\nimport { Component, ChangeDetectionStrategy } from \"@angular/core\";\r\nimport { CustomFieldGroupTypes } from '@dflat-core/web/meta-model';\r\nimport { takeUntil } from 'rxjs';\r\nimport { BaseMetaEntityComponent } from './generated/metaentity.component.generated';\r\n@Component({\r\n selector: 'alg-meta-entity',\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 MetaEntityComponent extends BaseMetaEntityComponent implements IIsCancel{\r\n\r\n // Titre au pluriel (le titre généré est « Modèle »).\r\n getTitle(): string {\r\n return 'Modèles';\r\n }\r\n\r\n specificSections: SpecificSection[];\r\n META_ENTITY_FIELD_SECTION: string = \"Champs\";\r\n SCHEMA_SECTION: string = \"Extensions\";\r\n // EXTENSION_SECTION: string = \"Attributs Étendus\";\r\n CONTEXTUAL_SECTION: string = \"Famille d'attributs\";\r\n public isCancel: boolean = false;\r\n private selectedMetaEntity: MetaEntity | null = null;\r\n\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.specificSections = [];\r\n this.facade.actions.clearActions();\r\n this.facade.actions.showAction('export');\r\n this.facade.actions.showAction('save');\r\n\r\n // Track selected MetaEntity for child sections\r\n this.facade.selection.selected$.pipe(takeUntil(this.destroy$))\r\n .subscribe((selected) => {\r\n this.selectedMetaEntity = selected && selected.length > 0 ? selected[0] : null;\r\n });\r\n\r\n // 1. MetaEntityField section (unchanged)\r\n this.facade.sections.registerSection<MetaEntityField,MetaEntityFieldFilterViewModel>(\r\n this.META_ENTITY_FIELD_SECTION,\r\n MetaEntityFieldComponent,\r\n {\r\n filterOverride : (selected : MetaEntity[]) => {\r\n const filter: MetaEntityFieldFilterViewModel = {\r\n MetaEntityKey : selected[0].EntityKey ?? '',\r\n AdditionalQuery: selected && selected.length > 0\r\n ? additionalQueryOf({ Property: 'MetaEntityKey', Operator: 'in', Values: selected.map(s => s.EntityKey ?? '') })\r\n : undefined,\r\n Offset: 0,\r\n Take: 50\r\n };\r\n return filter;\r\n }\r\n });\r\n\r\n // 2. Schema Group (Type 1) - Admin-only structure, items directly, no header detail\r\n this.facade.sections.registerSection(this.SCHEMA_SECTION,\r\n CustomFieldGroupItemComponent,\r\n {\r\n filterOverride : (selected) => {\r\n const filter: CustomFieldGroupItemFilterViewModel = {\r\n MetaEntityId: selected && selected.length > 0 ? selected[0].Id : -1,\r\n GroupTypes: [CustomFieldGroupTypes.Schema],\r\n Offset: 0,\r\n Take: 50\r\n };\r\n return filter;\r\n },\r\n layoutOverride : (component : CustomFieldGroupItemComponent) => {\r\n component.facade.actions.hideActions(['edit']);\r\n },\r\n selectionOverride : (component: CustomFieldGroupItemComponent, selected : MetaEntity[]) => {\r\n const initParams = {\r\n MetaEntityId: selected[0]?.Id ?? -1,\r\n CustomFieldGroupType:CustomFieldGroupTypes.Extension\r\n } as Partial<CustomFieldGroupItemView>;\r\n component.setInitializationParameters(initParams);\r\n }\r\n });\r\n\r\n // 3. Extension Group (Type 2) - Global entity extension, header + items\r\n // 4. Contextual Groups (Type 3) - Scoped groups, headers + items\r\n this.facade.sections.registerSection(this.CONTEXTUAL_SECTION,\r\n CustomFieldGroupComponent,\r\n {\r\n filterOverride : (selected) => {\r\n const filter: CustomFieldGroupFilterViewModel = {\r\n MetaEntityId: selected && selected.length > 0 ? selected[0].Id : -1,\r\n GroupTypes: [CustomFieldGroupTypes.Extension,CustomFieldGroupTypes.Contextual],\r\n Offset: 0,\r\n Take: 50\r\n };\r\n return filter;\r\n },\r\n selectionOverride : (component: CustomFieldGroupComponent, selected : MetaEntity[]) => {\r\n const initParams = {\r\n MetaEntityId: selected[0]?.Id ?? -1,\r\n CustomFieldGroupType:CustomFieldGroupTypes.Contextual\r\n } as Partial<CustomFieldGroup>;\r\n component.setInitializationParameters(initParams);\r\n }\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","import {\r\n FieldFilterTypes, FormEditorContext, MetaEntity, MetaEntityFormFieldView, MetaEntityFormSectionView, MetaEntityFormView,\r\n} from '@dflat-core/web/meta-model';\r\n\r\n/** Section éditée : IsHidden (section masquée) vient du correctif System 01.07.04.28. */\r\nexport type FormEditorSection = MetaEntityFormSectionView & { IsHidden?: boolean };\r\n\r\n/** Nature d'une section de formulaire, déduite de ses indicateurs. */\r\nexport enum FormEditorSectionKinds {\r\n /** Section de champs. */\r\n Fields = 'fields',\r\n /** Onglet d'entités liées (relation 1..*) : DataMetaEntityId et FilterPropertyName. */\r\n Related = 'related',\r\n /** Champs personnalisés (attributs). */\r\n CustomFields = 'customfields',\r\n /** Fichiers de l'enregistrement. */\r\n Files = 'files',\r\n /** Historique de l'enregistrement. */\r\n TrackRecords = 'trackrecords',\r\n}\r\n\r\n/** Natures de section proposées par l'éditeur, avec leur libellé. */\r\nexport const FormEditorSectionKindOptions: { value: FormEditorSectionKinds; label: string }[] = [\r\n { value: FormEditorSectionKinds.Fields, label: 'Champs' },\r\n { value: FormEditorSectionKinds.Related, label: 'Entités liées (onglet)' },\r\n { value: FormEditorSectionKinds.CustomFields, label: 'Attributs' },\r\n { value: FormEditorSectionKinds.Files, label: 'Fichiers' },\r\n { value: FormEditorSectionKinds.TrackRecords, label: 'Historique' },\r\n];\r\n\r\n/**\r\n * État de l'éditeur de formulaire de l'administrateur, sans dépendance à Angular : sections et\r\n * champs du formulaire dans l'ordre d'affichage, sélection courante, ajouts, suppressions et\r\n * déplacements. FormEditorComponent l'affiche et publie toContext().Sections à chaque\r\n * modification ; à l'enregistrement, l'ordre des listes remplace les OrderNumber.\r\n */\r\nexport class FormEditorModel {\r\n form: MetaEntityFormView | null = null;\r\n sections: FormEditorSection[] = [];\r\n catalog: MetaEntityFormFieldView[] = [];\r\n entities: MetaEntity[] = [];\r\n\r\n selectedSection: FormEditorSection | null = null;\r\n selectedField: MetaEntityFormFieldView | null = null;\r\n\r\n /** Vrai dès qu'une modification n'est pas enregistrée. */\r\n isDirty = false;\r\n\r\n /** Appelé à chaque modification (l'éditeur publie alors la définition vers l'écran). */\r\n onChange?: () => void;\r\n\r\n /** Charge le formulaire lu par MetaEntityForm/GetFormEditor et sélectionne sa première section. */\r\n load(context: FormEditorContext | null | undefined): void {\r\n this.form = context?.Form ?? null;\r\n this.sections = (context?.Sections ?? []).map(section => ({ ...section, FormFields: [...(section.FormFields ?? [])] }));\r\n this.catalog = context?.Catalog ?? [];\r\n this.entities = context?.Entities ?? [];\r\n this.selectedSection = this.sections[0] ?? null;\r\n this.selectedField = null;\r\n this.isDirty = false;\r\n }\r\n\r\n /** Signale une modification faite directement sur une section ou un champ (saisie). */\r\n touch(): void {\r\n this.isDirty = true;\r\n this.onChange?.();\r\n }\r\n\r\n // ---- Sections -----------------------------------------------------------------------\r\n\r\n kindOf(section: FormEditorSection): FormEditorSectionKinds {\r\n if (section.DataMetaEntityId != null) return FormEditorSectionKinds.Related;\r\n if (section.IsCustomFieldSection) return FormEditorSectionKinds.CustomFields;\r\n if (section.IsFileSection) return FormEditorSectionKinds.Files;\r\n if (section.IsTrackRecordSection) return FormEditorSectionKinds.TrackRecords;\r\n return FormEditorSectionKinds.Fields;\r\n }\r\n\r\n /** Vrai pour une section qui porte des champs (les autres natures n'en affichent pas). */\r\n hasFields(section: FormEditorSection | null): boolean {\r\n return !!section && this.kindOf(section) === FormEditorSectionKinds.Fields;\r\n }\r\n\r\n /**\r\n * Change la nature d'une section. Une section d'entités liées reçoit la première table en\r\n * attendant le choix de l'administrateur ; ses champs sont conservés tant qu'elle n'est pas\r\n * enregistrée sous une autre nature que « Champs » (le formulaire ne les affiche plus).\r\n */\r\n setKind(section: FormEditorSection, kind: FormEditorSectionKinds): void {\r\n section.IsCustomFieldSection = kind === FormEditorSectionKinds.CustomFields;\r\n section.IsFileSection = kind === FormEditorSectionKinds.Files;\r\n section.IsTrackRecordSection = kind === FormEditorSectionKinds.TrackRecords;\r\n if (kind === FormEditorSectionKinds.Related) {\r\n section.DataMetaEntityId = section.DataMetaEntityId ?? this.entities[0]?.Id;\r\n this.setDataEntity(section, section.DataMetaEntityId);\r\n } else {\r\n section.DataMetaEntityId = undefined;\r\n section.DataMetaEntityEntityName = undefined;\r\n section.FilterPropertyName = undefined;\r\n }\r\n if (this.selectedSection === section && !this.hasFields(section))\r\n this.selectedField = null;\r\n this.touch();\r\n }\r\n\r\n /**\r\n * Table listée par une section d'entités liées. Le critère de filtre proposé est la clé\r\n * étrangère vers l'entité du formulaire (<Entité>Id), comme dans les scripts générés.\r\n */\r\n setDataEntity(section: FormEditorSection, metaEntityId: number | null | undefined): void {\r\n const entity = this.entities.find(e => e.Id === metaEntityId);\r\n section.DataMetaEntityId = entity?.Id;\r\n section.DataMetaEntityEntityName = entity?.EntityName;\r\n if (!section.FilterPropertyName && this.form?.MetaEntityEntityName)\r\n section.FilterPropertyName = this.form.MetaEntityEntityName.replace(/View$/, '') + 'Id';\r\n this.touch();\r\n }\r\n\r\n /** Ajoute une section de champs à la fin du formulaire, avec un titre libre, et la sélectionne. */\r\n addSection(): FormEditorSection {\r\n const section: FormEditorSection = {\r\n MetaEntityFormId: this.form?.Id,\r\n Name: this.uniqueSectionName('Nouvelle section'),\r\n IsCustomFieldSection: false,\r\n IsFileSection: false,\r\n IsTrackRecordSection: false,\r\n IsHidden: false,\r\n FormFields: [],\r\n };\r\n this.sections.push(section);\r\n this.selectSection(section);\r\n this.touch();\r\n return section;\r\n }\r\n\r\n /** Retire une section et ses champs (supprimés en base à l'enregistrement). */\r\n removeSection(section: FormEditorSection): void {\r\n const index = this.sections.indexOf(section);\r\n if (index < 0) return;\r\n this.sections.splice(index, 1);\r\n if (this.selectedSection === section) {\r\n this.selectedSection = this.sections[Math.min(index, this.sections.length - 1)] ?? null;\r\n this.selectedField = null;\r\n }\r\n this.touch();\r\n }\r\n\r\n /** Déplace une section de la position previousIndex à la position currentIndex. */\r\n moveSection(previousIndex: number, currentIndex: number): void {\r\n if (this.move(this.sections, previousIndex, currentIndex))\r\n this.touch();\r\n }\r\n\r\n selectSection(section: FormEditorSection | null): void {\r\n if (this.selectedSection === section) return;\r\n this.selectedSection = section;\r\n this.selectedField = null;\r\n }\r\n\r\n /** Titres en double (sans tenir compte de la casse) : une section est désignée par son titre. */\r\n isDuplicateName(section: FormEditorSection): boolean {\r\n const name = (section.Name ?? '').trim().toLowerCase();\r\n return this.sections.some(other => other !== section && (other.Name ?? '').trim().toLowerCase() === name);\r\n }\r\n\r\n private uniqueSectionName(base: string): string {\r\n const names = new Set(this.sections.map(s => (s.Name ?? '').trim().toLowerCase()));\r\n if (!names.has(base.toLowerCase())) return base;\r\n let index = 2;\r\n while (names.has(`${base} ${index}`.toLowerCase())) index++;\r\n return `${base} ${index}`;\r\n }\r\n\r\n // ---- Champs -------------------------------------------------------------------------\r\n\r\n /** Tous les champs du formulaire, section par section. */\r\n get fields(): MetaEntityFormFieldView[] {\r\n return this.sections.flatMap(section => section.FormFields ?? []);\r\n }\r\n\r\n /** Colonnes de l'entité qui ne sont dans aucune section, filtrées par nom ou libellé. */\r\n availableColumns(search = ''): MetaEntityFormFieldView[] {\r\n const used = new Set(this.fields.map(f => (f.PropertyName ?? '').toLowerCase()));\r\n const query = search.trim().toLowerCase();\r\n return this.catalog.filter(column =>\r\n !used.has((column.PropertyName ?? '').toLowerCase())\r\n && (!query || (column.PropertyName ?? '').toLowerCase().includes(query) || (column.Label ?? '').toLowerCase().includes(query)));\r\n }\r\n\r\n /** Ajoute une colonne du catalogue à la fin de la section sélectionnée et sélectionne le champ. */\r\n addField(column: MetaEntityFormFieldView): MetaEntityFormFieldView | null {\r\n const section = this.selectedSection;\r\n if (!section || !this.hasFields(section) || !column?.PropertyName) return null;\r\n if (this.findField(section, column.PropertyName)) return null;\r\n\r\n const field: MetaEntityFormFieldView = { ...column, Id: undefined, RowVersion: undefined, MetaEntityFormSectionId: section.Id };\r\n (section.FormFields ??= []).push(field);\r\n this.selectedField = field;\r\n this.touch();\r\n return field;\r\n }\r\n\r\n /**\r\n * Ajoute un champ par le nom de sa propriété : la colonne du catalogue de ce nom (libellé et\r\n * type déduits), sinon un champ texte à paramétrer (propriété calculée du modèle, ex.\r\n * NewPassword), avec le libellé donné.\r\n */\r\n addFreeField(propertyName: string, label?: string): MetaEntityFormFieldView | null {\r\n const name = (propertyName ?? '').trim();\r\n if (!name) return null;\r\n const column = this.catalog.find(c => (c.PropertyName ?? '').toLowerCase() === name.toLowerCase());\r\n return this.addField(column ?? {\r\n PropertyName: name, Label: (label || name).substring(0, 50), FieldFilterType: FieldFilterTypes.String,\r\n FieldColumnSpan: 1, ColumnIndex: 0, IsClearable: true,\r\n });\r\n }\r\n\r\n /** Retire un champ de sa section ; les champs qu'il conditionnait perdent leur condition. */\r\n removeField(field: MetaEntityFormFieldView): void {\r\n const section = this.sectionOf(field);\r\n if (!section) return;\r\n section.FormFields!.splice(section.FormFields!.indexOf(field), 1);\r\n for (const other of this.fields)\r\n if (this.conditioningOf(other) === field.PropertyName)\r\n this.setConditioning(other, null);\r\n if (this.selectedField === field) this.selectedField = null;\r\n this.touch();\r\n }\r\n\r\n /** Déplace un champ dans sa section. */\r\n moveField(section: FormEditorSection, previousIndex: number, currentIndex: number): void {\r\n if (this.move(section.FormFields ?? [], previousIndex, currentIndex))\r\n this.touch();\r\n }\r\n\r\n /** Déplace un champ à la fin d'une autre section de champs. */\r\n moveFieldToSection(field: MetaEntityFormFieldView, target: FormEditorSection): boolean {\r\n const source = this.sectionOf(field);\r\n if (!source || source === target || !this.hasFields(target) || this.findField(target, field.PropertyName)) return false;\r\n source.FormFields!.splice(source.FormFields!.indexOf(field), 1);\r\n (target.FormFields ??= []).push(field);\r\n field.MetaEntityFormSectionId = target.Id;\r\n this.selectedSection = target;\r\n this.selectedField = field;\r\n this.touch();\r\n return true;\r\n }\r\n\r\n selectField(field: MetaEntityFormFieldView | null): void {\r\n this.selectedField = field;\r\n }\r\n\r\n sectionOf(field: MetaEntityFormFieldView): FormEditorSection | null {\r\n return this.sections.find(section => (section.FormFields ?? []).includes(field)) ?? null;\r\n }\r\n\r\n private findField(section: FormEditorSection, propertyName: string | undefined): MetaEntityFormFieldView | undefined {\r\n const name = (propertyName ?? '').toLowerCase();\r\n return (section.FormFields ?? []).find(f => (f.PropertyName ?? '').toLowerCase() === name);\r\n }\r\n\r\n // ---- Condition de visibilité ----------------------------------------------------------\r\n\r\n /** Propriété du champ conditionnant, ou null. */\r\n conditioningOf(field: MetaEntityFormFieldView): string | null {\r\n if (field.ConditioningMetaEntityFormFieldPropertyName) return field.ConditioningMetaEntityFormFieldPropertyName;\r\n if (field.ConditioningMetaEntityFormFieldId == null) return null;\r\n return this.fields.find(f => f.Id === field.ConditioningMetaEntityFormFieldId)?.PropertyName ?? null;\r\n }\r\n\r\n /** Champs qui peuvent conditionner field : tous les autres champs du formulaire. */\r\n conditioningCandidates(field: MetaEntityFormFieldView): MetaEntityFormFieldView[] {\r\n return this.fields.filter(f => f !== field);\r\n }\r\n\r\n /**\r\n * Relie field à son champ conditionnant, désigné par sa propriété (le serveur retrouve\r\n * l'identifiant, même pour un champ ajouté dans la même session), ou retire la condition.\r\n */\r\n setConditioning(field: MetaEntityFormFieldView, propertyName: string | null): void {\r\n const target = propertyName ? this.fields.find(f => f !== field && f.PropertyName === propertyName) : undefined;\r\n field.ConditioningMetaEntityFormFieldPropertyName = target?.PropertyName;\r\n field.ConditioningMetaEntityFormFieldId = target?.Id;\r\n field.IsConditional = !!target;\r\n if (target)\r\n target.IsConditioning = true;\r\n else {\r\n field.ConditioningValues = undefined;\r\n field.ConditioningBoolValue = undefined;\r\n field.FieldConditionalResult = undefined;\r\n }\r\n this.touch();\r\n }\r\n\r\n // ---- Enregistrement -------------------------------------------------------------------\r\n\r\n /** Message d'erreur si le formulaire ne peut pas être enregistré, sinon null (mêmes règles que le serveur). */\r\n validate(): string | null {\r\n if (this.form?.Id == null) return 'Formulaire non chargé';\r\n for (const section of this.sections) {\r\n if (!(section.Name ?? '').trim()) return 'Chaque section doit avoir un titre';\r\n if (this.isDuplicateName(section)) return `La section « ${section.Name} » est en double`;\r\n if (section.DataMetaEntityId != null && !(section.FilterPropertyName ?? '').trim())\r\n return `Section « ${section.Name} » : le critère de filtre est obligatoire pour une section d'entités liées`;\r\n }\r\n return null;\r\n }\r\n\r\n /**\r\n * Définition du formulaire, sections et champs dans l'ordre d'affichage : publiée dans\r\n * MetaEntityFormView.Sections et enregistrée avec le formulaire (ou envoyée à\r\n * MetaEntityForm/SaveFormEditor).\r\n */\r\n toContext(): FormEditorContext {\r\n return {\r\n Form: { Id: this.form?.Id },\r\n Sections: this.sections.map((section, sectionIndex) => ({\r\n ...section,\r\n OrderNumber: sectionIndex,\r\n FormFields: (section.FormFields ?? []).map((field, fieldIndex) => ({ ...field, OrderNumber: fieldIndex })),\r\n })),\r\n };\r\n }\r\n\r\n private move<T>(items: T[], previousIndex: number, currentIndex: number): boolean {\r\n if (previousIndex === currentIndex || previousIndex < 0 || currentIndex < 0\r\n || previousIndex >= items.length || currentIndex >= items.length)\r\n return false;\r\n items.splice(currentIndex, 0, items.splice(previousIndex, 1)[0]);\r\n return true;\r\n }\r\n}\r\n","import { FormControl, FormGroup } from '@angular/forms';\r\nimport { FieldDescriptor, Section } from '@dflat-core/web/core-model';\r\n\r\n/**\r\n * Volet de propriétés de l'éditeur de formulaire, affiché avec les composants des formulaires\r\n * (alg-field) : sections de champs standard et leur FormGroup, pour éditer un objet qui n'est pas\r\n * l'entité de l'écran (section ou champ du formulaire édité). Les propriétés portent un préfixe :\r\n * alg-field donne à ses éléments l'identifiant de la propriété, qui doit rester unique dans la page\r\n * (l'onglet « Propriétés » affiche déjà Label, Description...).\r\n */\r\nexport class FormEditorPanel {\r\n /** Sections de champs du volet. */\r\n readonly sections: Section[];\r\n /** Formulaire des champs du volet. */\r\n readonly form = new FormGroup<Record<string, FormControl>>({});\r\n\r\n /**\r\n * @param prefix Préfixe des propriétés du volet.\r\n * @param groups Sections du volet : titre et champs, désignés par la propriété de l'objet édité.\r\n */\r\n constructor(private readonly prefix: string, groups: { name: string; fields: FieldDescriptor[] }[]) {\r\n this.sections = groups.map(group => ({\r\n Name: group.name,\r\n FieldViewModels: group.fields.map(field => ({ ...field, PropertyName: prefix + field.PropertyName })),\r\n }));\r\n for (const field of this.fields)\r\n this.form.addControl(field.PropertyName!, new FormControl(null));\r\n }\r\n\r\n /** Champs du volet, à plat. */\r\n get fields(): FieldDescriptor[] {\r\n return this.sections.flatMap(section => section.FieldViewModels ?? []);\r\n }\r\n\r\n /** Sections qui ont au moins un champ affiché. */\r\n get visibleSections(): Section[] {\r\n return this.sections.filter(section => (section.FieldViewModels ?? []).some(field => !field.IsHidden));\r\n }\r\n\r\n /** Champ du volet qui édite la propriété property de l'objet. */\r\n field(property: string): FieldDescriptor {\r\n return this.fields.find(field => field.PropertyName === this.prefix + property)!;\r\n }\r\n\r\n /** Propriété de l'objet édité par le champ. */\r\n propertyOf(field: FieldDescriptor): string {\r\n return (field.PropertyName ?? '').substring(this.prefix.length);\r\n }\r\n\r\n /** Valeur saisie dans le champ. */\r\n valueOf(field: FieldDescriptor): any {\r\n return this.form.get(field.PropertyName!)?.value;\r\n }\r\n\r\n /** Affiche ou masque le champ de la propriété. */\r\n show(property: string, visible: boolean): void {\r\n this.field(property).IsHidden = !visible;\r\n }\r\n\r\n /** Recopie les valeurs (par propriété de l'objet) dans le formulaire, sans émettre de modification. */\r\n patch(values: Record<string, any>): void {\r\n for (const field of this.fields)\r\n this.form.get(field.PropertyName!)!.setValue(values[this.propertyOf(field)] ?? null, { emitEvent: false });\r\n }\r\n\r\n /** Recopie la valeur d'une seule propriété, sans émettre de modification. */\r\n set(property: string, value: any): void {\r\n this.form.get(this.prefix + property)?.setValue(value ?? null, { emitEvent: false });\r\n }\r\n}\r\n","import { CdkDragDrop } from '@angular/cdk/drag-drop';\r\nimport { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';\r\nimport { of, Subject } from 'rxjs';\r\nimport { catchError, map, switchMap, takeUntil } from 'rxjs/operators';\r\n\r\nimport { FilterType, PropertyEditorEvent } from '@dflat-core/web/core-model';\r\nimport { additionalQueryOf, ApplicationService, BaseEntityEditor, ValidationService } from '@dflat-core/web/core-ux';\r\nimport { MetaEntityFormDataService } from '@dflat-core/web/meta-data';\r\nimport {\r\n FieldColumnSpans, FieldConditionalResults, FieldFilterTypes, MetaEntityField, MetaEntityFieldFilterViewModel,\r\n MetaEntityFormFieldView, MetaEntityFormView,\r\n} from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { FormEditorModel, FormEditorSection, FormEditorSectionKindOptions, FormEditorSectionKinds } from './form-editor-model';\r\nimport { FormEditorPanel } from './form-editor-panel';\r\n\r\n/**\r\n * Éditeur de formulaire de l'administrateur, affiché par l'écran Formulaires (MetaEntityFormComponent)\r\n * à la place du formulaire d'édition standard : onglet « Propriétés » (champs du formulaire, avec les\r\n * composants des formulaires) et onglet « Définition » (sections ajoutées, supprimées, réordonnées ;\r\n * champs ajoutés par le sélecteur des colonnes de l'entité, supprimés, déplacés et paramétrés). Les\r\n * propriétés d'une section et les paramètres d'un champ s'affichent comme un formulaire standard\r\n * (FormEditorPanel, alg-field). L'état édité est tenu par FormEditorModel ; chaque modification est\r\n * publiée dans le formulaire sélectionné (MetaEntityFormView.Sections) et l'action « Enregistrer »\r\n * de l'écran envoie le tout (MetaEntityFormController.ProcessSave).\r\n */\r\n@Component({\r\n selector: 'msw-form-editor',\r\n templateUrl: './form-editor.component.html',\r\n styleUrls: ['./form-editor.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class FormEditorComponent extends BaseEntityEditor<MetaEntityFormView> implements OnInit {\r\n readonly model = new FormEditorModel();\r\n readonly Kinds = FormEditorSectionKinds;\r\n\r\n readonly fieldTypeOptions = [\r\n { value: FieldFilterTypes.String, label: 'Texte' },\r\n { value: FieldFilterTypes.Text, label: 'Texte long' },\r\n { value: FieldFilterTypes.Integer, label: 'Entier' },\r\n { value: FieldFilterTypes.Decimal, label: 'Décimal' },\r\n { value: FieldFilterTypes.Date, label: 'Date' },\r\n { value: FieldFilterTypes.DateTime, label: 'Date et heure' },\r\n { value: FieldFilterTypes.CheckBox, label: 'Case à cocher' },\r\n { value: FieldFilterTypes.ComboBox, label: 'Liste déroulante' },\r\n { value: FieldFilterTypes.HorizComboBox, label: 'Liste horizontale' },\r\n { value: FieldFilterTypes.RadioButton, label: 'Boutons radio' },\r\n { value: FieldFilterTypes.Custom, label: \"Sélecteur d'entité\" },\r\n { value: FieldFilterTypes.TreeSelector, label: 'Sélecteur en arbre' },\r\n { value: FieldFilterTypes.Email, label: 'E-mail' },\r\n { value: FieldFilterTypes.Password, label: 'Mot de passe' },\r\n { value: FieldFilterTypes.WeekNumber, label: 'Numéro de semaine' },\r\n { value: FieldFilterTypes.TextWithButton, label: 'Texte avec bouton' },\r\n { value: FieldFilterTypes.TextZoneWithButton, label: 'Zone de texte avec bouton' },\r\n { value: FieldFilterTypes.DropFileZone, label: 'Dépôt de fichier' },\r\n ];\r\n\r\n /** Propriétés de la section sélectionnée, affichées comme un formulaire standard. */\r\n readonly sectionPanel = new FormEditorPanel('fedSection_', [{\r\n name: 'Section',\r\n fields: [\r\n { PropertyName: 'Name', Label: 'Titre', FilterType: FilterType.String, Required: true },\r\n { PropertyName: 'Kind', Label: 'Nature', FilterType: FilterType.ComboBox, Data: FormEditorSectionKindOptions, ValueMember: 'value', DisplayMember: 'label', IsClearable: false },\r\n { PropertyName: 'DataMetaEntityId', Label: 'Entité listée', FilterType: FilterType.ComboBox, Data: [], ValueMember: 'Id', DisplayMember: 'EntityName', IsClearable: false },\r\n { PropertyName: 'FilterPropertyName', Label: 'Critère de filtre (clé étrangère)', FilterType: FilterType.String },\r\n { PropertyName: 'IsHidden', Label: 'Masquée', FilterType: FilterType.CheckBox },\r\n ],\r\n }]);\r\n\r\n /** Paramètres du champ sélectionné, affichés comme un formulaire standard. */\r\n readonly fieldPanel = new FormEditorPanel('fedField_', [\r\n {\r\n name: 'Champ',\r\n fields: [\r\n { PropertyName: 'Label', Label: 'Libellé', FilterType: FilterType.String },\r\n { PropertyName: 'FieldFilterType', Label: 'Type de champ', FilterType: FilterType.ComboBox, Data: this.fieldTypeOptions, ValueMember: 'value', DisplayMember: 'label', IsClearable: false },\r\n {\r\n PropertyName: 'FieldColumnSpan', Label: 'Largeur', FilterType: FilterType.ComboBox, ValueMember: 'value', DisplayMember: 'label', IsClearable: false,\r\n Data: [{ value: FieldColumnSpans.Full, label: 'Toute la largeur' }, { value: FieldColumnSpans.Single, label: 'Une colonne' }],\r\n },\r\n { PropertyName: 'ColumnIndex', Label: 'Colonne', FilterType: FilterType.Integer },\r\n { PropertyName: 'IsRequired', Label: 'Obligatoire', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'IsReadOnly', Label: 'Lecture seule', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'IsHidden', Label: 'Masqué', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'IsClearable', Label: 'Effaçable', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'Highlight', Label: 'Mis en avant', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'KeepPlace', Label: 'Garde sa place si masqué', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'ToolTip', Label: 'Info-bulle', FilterType: FilterType.String },\r\n { PropertyName: 'Description', Label: 'Description', FilterType: FilterType.String },\r\n ],\r\n },\r\n {\r\n name: 'Validation',\r\n fields: [\r\n { PropertyName: 'MaxLength', Label: 'Longueur max.', FilterType: FilterType.Integer },\r\n { PropertyName: 'MinValue', Label: 'Valeur min.', FilterType: FilterType.Decimal },\r\n { PropertyName: 'MaxValue', Label: 'Valeur max.', FilterType: FilterType.Decimal },\r\n ],\r\n },\r\n {\r\n name: 'Liste de valeurs',\r\n fields: [\r\n { PropertyName: 'DisplayMember', Label: 'Propriété affichée', FilterType: FilterType.String },\r\n { PropertyName: 'ValueMember', Label: 'Propriété de valeur', FilterType: FilterType.String },\r\n { PropertyName: 'ExportPropertyName', Label: 'Propriété recevant le libellé choisi', FilterType: FilterType.String },\r\n { PropertyName: 'MultipleSelection', Label: 'Sélection multiple', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'IncludeAllOption', Label: 'Option « Tous »', FilterType: FilterType.CheckBox },\r\n ],\r\n },\r\n {\r\n name: \"Sélecteur d'entité\",\r\n fields: [\r\n { PropertyName: 'ModalEntityKey', Label: 'Entité ouverte (ex. Country)', FilterType: FilterType.String },\r\n { PropertyName: 'ModalPropertyName', Label: 'Colonne affichée', FilterType: FilterType.String },\r\n { PropertyName: 'ModalPropertyValue', Label: 'Colonne de valeur', FilterType: FilterType.String },\r\n { PropertyName: 'ModalTriggerProperty', Label: \"Clé étrangère qui reçoit l'identifiant\", FilterType: FilterType.String },\r\n { PropertyName: 'ModalTitle', Label: 'Titre de la fenêtre', FilterType: FilterType.String },\r\n ],\r\n },\r\n {\r\n name: \"Condition d'affichage\",\r\n fields: [\r\n { PropertyName: 'Conditioning', Label: 'Dépend du champ', FilterType: FilterType.ComboBox, Data: [], ValueMember: 'PropertyName', DisplayMember: 'Label', IsClearable: true },\r\n { PropertyName: 'ConditioningValues', Label: 'Valeurs déclenchantes (entiers, séparés par des virgules)', FilterType: FilterType.String },\r\n {\r\n PropertyName: 'FieldConditionalResult', Label: 'Effet de la condition', FilterType: FilterType.ComboBox, ValueMember: 'value', DisplayMember: 'label', IsClearable: true,\r\n Data: [{ value: FieldConditionalResults.Hide, label: 'Masqué' }, { value: FieldConditionalResults.ReadOnly, label: 'Lecture seule' }],\r\n },\r\n { PropertyName: 'ConditioningBoolValue', Label: \"Valeur déclenchante d'une case à cocher : cochée\", FilterType: FilterType.CheckBox },\r\n ],\r\n },\r\n {\r\n name: 'Section',\r\n fields: [\r\n { PropertyName: 'MoveTo', Label: 'Déplacer vers la section', FilterType: FilterType.ComboBox, Data: [], ValueMember: 'Name', DisplayMember: 'Name', IsClearable: true },\r\n ],\r\n },\r\n ]);\r\n\r\n /** Onglet affiché : 0 Propriétés, 1 Définition. */\r\n activeTab = 0;\r\n /** Formulaire dont la définition est chargée dans le modèle (undefined pendant le chargement). */\r\n loadedEntity: MetaEntityFormView = undefined;\r\n isLoading = false;\r\n message = '';\r\n freeProperty = '';\r\n\r\n /** Identifiant du formulaire dont la définition est chargée. */\r\n private loadedId: number = undefined;\r\n /** Formulaires dont il faut charger la définition : seul le dernier demandé est gardé. */\r\n private load$ = new Subject<MetaEntityFormView>();\r\n\r\n constructor(app: ApplicationService, validationService: ValidationService, private readonly data: MetaEntityFormDataService) {\r\n super(app, validationService);\r\n }\r\n\r\n ngOnInit(): void {\r\n // Chaque modification de la définition est publiée : le formulaire devient modifié pour l'écran.\r\n this.model.onChange = () => this.publishDefinition();\r\n\r\n this.load$.pipe(\r\n switchMap(entity => this.data.getFormEditor(entity.Id).pipe(\r\n map(context => ({ entity, context })),\r\n catchError(() => of(undefined)))),\r\n takeUntil(this.destroy$)\r\n ).subscribe(loaded => {\r\n this.isLoading = false;\r\n if (!loaded) {\r\n this.message = 'Erreur lors du chargement de la définition du formulaire.';\r\n return;\r\n }\r\n if (loaded.entity !== this.entity)\r\n return;\r\n this.model.load(loaded.context);\r\n this.loadedEntity = loaded.entity;\r\n this.loadedId = loaded.entity.Id;\r\n this.refreshPanels();\r\n });\r\n\r\n super.ngOnInit();\r\n }\r\n\r\n /**\r\n * Charge la définition du formulaire sélectionné. Une ligne réémise pendant l'édition (mêmes\r\n * modifications, pas encore enregistrées) garde la définition en cours ; après l'enregistrement,\r\n * elle est relue (identifiants des sections et des champs créés).\r\n */\r\n protected onEntityChanged(entity: MetaEntityFormView): void {\r\n if (entity && entity === this.loadedEntity)\r\n return;\r\n if (entity && entity.Id === this.loadedId && this.model.isDirty && this.facade.change.getModified(entity.Id)) {\r\n this.loadedEntity = entity;\r\n return;\r\n }\r\n\r\n this.loadedEntity = undefined;\r\n this.loadedId = undefined;\r\n this.message = '';\r\n this.model.load(null);\r\n this.refreshPanels();\r\n if (!entity || !(entity.Id > 0))\r\n return;\r\n\r\n this.isLoading = true;\r\n this.load$.next(entity);\r\n }\r\n\r\n /** Publie la définition éditée : l'action « Enregistrer » de l'écran l'envoie avec le formulaire. */\r\n private publishDefinition(): void {\r\n this.publishChanges({ Sections: this.model.toContext().Sections });\r\n }\r\n\r\n /** Vrai pour un formulaire pas encore enregistré : sa définition s'édite après sa création. */\r\n get isNew(): boolean {\r\n return !!this.entity && !(this.entity.Id > 0);\r\n }\r\n\r\n /** Ce qui empêcherait d'enregistrer la définition (titre en double, critère manquant...), sinon null. */\r\n get definitionError(): string | null {\r\n return this.loadedEntity && this.model.isDirty ? this.model.validate() : null;\r\n }\r\n\r\n get selectedSection(): FormEditorSection | null {\r\n return this.model.selectedSection;\r\n }\r\n\r\n get selectedField(): MetaEntityFormFieldView | null {\r\n return this.model.selectedField;\r\n }\r\n\r\n // ---- Sections -----------------------------------------------------------------------\r\n\r\n selectSection(section: FormEditorSection): void {\r\n this.model.selectSection(section);\r\n this.refreshPanels();\r\n }\r\n\r\n addSection(): void {\r\n this.model.addSection();\r\n this.refreshPanels();\r\n }\r\n\r\n onSectionDrop(event: CdkDragDrop<FormEditorSection[]>): void {\r\n this.model.moveSection(event.previousIndex, event.currentIndex);\r\n }\r\n\r\n removeSection(section: FormEditorSection, event: Event): void {\r\n event.stopPropagation();\r\n const count = section.FormFields?.length ?? 0;\r\n const detail = count > 0 ? ` et ses ${count} champ(s)` : '';\r\n if (confirm(`Supprimer la section « ${section.Name} »${detail} ?`)) {\r\n this.model.removeSection(section);\r\n this.refreshPanels();\r\n }\r\n }\r\n\r\n kindLabel(section: FormEditorSection): string {\r\n const kind = this.model.kindOf(section);\r\n if (kind === FormEditorSectionKinds.Related) return section.DataMetaEntityEntityName ?? 'Entités liées';\r\n if (kind === FormEditorSectionKinds.Fields) return `${section.FormFields?.length ?? 0} champ(s)`;\r\n return FormEditorSectionKindOptions.find(o => o.value === kind)?.label ?? '';\r\n }\r\n\r\n /** Applique à la section sélectionnée la propriété modifiée dans son volet. */\r\n readonly onSectionParam = (event: PropertyEditorEvent): void => {\r\n const section = this.selectedSection;\r\n if (!section || this.readonly) return;\r\n const property = this.sectionPanel.propertyOf(event.field);\r\n const value = this.sectionPanel.valueOf(event.field);\r\n\r\n switch (property) {\r\n case 'Kind':\r\n this.model.setKind(section, value);\r\n this.refreshPanels();\r\n return;\r\n case 'DataMetaEntityId':\r\n this.model.setDataEntity(section, value);\r\n this.sectionPanel.set('FilterPropertyName', section.FilterPropertyName);\r\n return;\r\n case 'IsHidden':\r\n section.IsHidden = !!value;\r\n break;\r\n default:\r\n section[property] = this.textOf(value);\r\n }\r\n this.model.touch();\r\n };\r\n\r\n // ---- Champs -------------------------------------------------------------------------\r\n\r\n selectField(field: MetaEntityFormFieldView): void {\r\n this.model.selectField(field);\r\n this.refreshPanels();\r\n }\r\n\r\n onFieldDrop(event: CdkDragDrop<MetaEntityFormFieldView[]>): void {\r\n if (this.selectedSection)\r\n this.model.moveField(this.selectedSection, event.previousIndex, event.currentIndex);\r\n }\r\n\r\n /**\r\n * Action « Ajouter » : ouvre le sélecteur des colonnes de l'entité du formulaire, sans celles qui\r\n * sont déjà dans le formulaire, et ajoute les colonnes choisies à la section sélectionnée.\r\n */\r\n onAddFields(): void {\r\n const form = this.model.form;\r\n if (!form || !this.model.hasFields(this.selectedSection) || this.readonly) return;\r\n this.message = '';\r\n\r\n const used = this.model.fields.map(f => f.PropertyName ?? '');\r\n const filter: MetaEntityFieldFilterViewModel = {\r\n MetaEntityKey: form.MetaEntityEntityKey,\r\n AdditionalQuery: used.length > 0 ? additionalQueryOf({ Property: 'FieldName', Operator: 'notin', Values: used }) : undefined,\r\n };\r\n this.app.selectorMapperService\r\n .openSelectorModal<MetaEntityField, MetaEntityFieldFilterViewModel>(MetaEntityKeys.MetaEntityField, 'Ajouter des champs', filter)\r\n .pipe(takeUntil(this.destroy$))\r\n .subscribe(columns => {\r\n (columns ?? []).forEach(column => this.model.addFreeField(column.FieldName, column.Label));\r\n this.refreshPanels();\r\n });\r\n }\r\n\r\n /** Ajoute une propriété qui n'est pas une colonne de la table (colonne de la vue, propriété calculée). */\r\n addFreeField(): void {\r\n this.message = '';\r\n if (this.model.addFreeField(this.freeProperty)) {\r\n this.freeProperty = '';\r\n this.refreshPanels();\r\n }\r\n else if (this.freeProperty.trim())\r\n this.message = `Le champ ${this.freeProperty.trim()} est déjà dans cette section.`;\r\n }\r\n\r\n removeField(field: MetaEntityFormFieldView, event: Event): void {\r\n event.stopPropagation();\r\n this.model.removeField(field);\r\n this.refreshPanels();\r\n }\r\n\r\n fieldTypeLabel(field: MetaEntityFormFieldView): string {\r\n return this.fieldTypeOptions.find(o => o.value === (field.FieldFilterType ?? 0))?.label ?? '';\r\n }\r\n\r\n /** Applique au champ sélectionné le paramètre modifié dans son volet. */\r\n readonly onFieldParam = (event: PropertyEditorEvent): void => {\r\n const field = this.selectedField;\r\n if (!field || this.readonly) return;\r\n const property = this.fieldPanel.propertyOf(event.field);\r\n const value = this.fieldPanel.valueOf(event.field);\r\n\r\n switch (property) {\r\n case 'Conditioning':\r\n this.model.setConditioning(field, value || null);\r\n this.refreshPanels();\r\n return;\r\n case 'MoveTo': {\r\n const target = this.model.sections.find(s => s.Name === value);\r\n if (target && !this.model.moveFieldToSection(field, target))\r\n this.message = `Le champ ${field.PropertyName} est déjà dans la section « ${target.Name} ».`;\r\n this.refreshPanels();\r\n return;\r\n }\r\n case 'IsRequired':\r\n this.setRequired(field, !!value);\r\n return;\r\n case 'FieldFilterType':\r\n field.FieldFilterType = value ?? FieldFilterTypes.String;\r\n this.model.touch();\r\n this.refreshFieldVisibility();\r\n return;\r\n }\r\n\r\n switch (event.field.FilterType) {\r\n case FilterType.CheckBox: field[property] = !!value; break;\r\n case FilterType.Integer:\r\n case FilterType.Decimal: field[property] = this.numberOf(value); break;\r\n case FilterType.ComboBox: field[property] = value ?? undefined; break;\r\n default: field[property] = this.textOf(value);\r\n }\r\n this.model.touch();\r\n };\r\n\r\n /** Obligatoire : indicateur du champ et validateur « requis » (ValidatorTypes, bit 32). */\r\n setRequired(field: MetaEntityFormFieldView, required: boolean): void {\r\n const REQUIRED = 32;\r\n field.IsRequired = required;\r\n field.ValidatorTypes = required ? (field.ValidatorTypes ?? 0) | REQUIRED : (field.ValidatorTypes ?? 0) & ~REQUIRED;\r\n this.model.touch();\r\n }\r\n\r\n // ---- Volets -------------------------------------------------------------------------\r\n\r\n /** Recopie la section et le champ sélectionnés dans leurs volets, et règle les champs affichés. */\r\n private refreshPanels(): void {\r\n const section = this.selectedSection;\r\n this.sectionPanel.field('DataMetaEntityId').Data = this.model.entities;\r\n if (section) {\r\n const related = this.model.kindOf(section) === FormEditorSectionKinds.Related;\r\n this.sectionPanel.patch({ ...section, Kind: this.model.kindOf(section), IsHidden: !!section.IsHidden });\r\n this.sectionPanel.show('DataMetaEntityId', related);\r\n this.sectionPanel.show('FilterPropertyName', related);\r\n }\r\n\r\n const field = this.selectedField;\r\n if (field) {\r\n this.fieldPanel.field('Conditioning').Data = this.model.conditioningCandidates(field)\r\n .map(f => ({ PropertyName: f.PropertyName, Label: `${f.Label || f.PropertyName} (${f.PropertyName})` }));\r\n this.fieldPanel.field('MoveTo').Data = this.model.sections\r\n .filter(s => s !== section && this.model.hasFields(s))\r\n .map(s => ({ Name: s.Name }));\r\n this.fieldPanel.patch({ ...field, Conditioning: this.model.conditioningOf(field), MoveTo: null });\r\n this.refreshFieldVisibility();\r\n }\r\n }\r\n\r\n /** Paramètres affichés selon le type du champ et sa condition d'affichage. */\r\n private refreshFieldVisibility(): void {\r\n const field = this.selectedField;\r\n if (!field) return;\r\n const type = field.FieldFilterType;\r\n const isList = type === FieldFilterTypes.ComboBox || type === FieldFilterTypes.HorizComboBox\r\n || type === FieldFilterTypes.RadioButton || type === FieldFilterTypes.TreeSelector;\r\n const isSelector = type === FieldFilterTypes.Custom;\r\n const isConditional = !!this.model.conditioningOf(field);\r\n\r\n ['DisplayMember', 'ValueMember', 'ExportPropertyName', 'MultipleSelection', 'IncludeAllOption']\r\n .forEach(property => this.fieldPanel.show(property, isList));\r\n ['ModalEntityKey', 'ModalPropertyName', 'ModalPropertyValue', 'ModalTriggerProperty', 'ModalTitle']\r\n .forEach(property => this.fieldPanel.show(property, isSelector));\r\n ['ConditioningValues', 'FieldConditionalResult', 'ConditioningBoolValue']\r\n .forEach(property => this.fieldPanel.show(property, isConditional));\r\n this.fieldPanel.show('MoveTo', (this.fieldPanel.field('MoveTo').Data as unknown[]).length > 0);\r\n }\r\n\r\n private textOf(value: unknown): string | undefined {\r\n return value === null || value === undefined || value === '' ? undefined : String(value);\r\n }\r\n\r\n private numberOf(value: unknown): number | undefined {\r\n if (value === null || value === undefined || value === '') return undefined;\r\n const number = Number(String(value).replace(',', '.'));\r\n return Number.isFinite(number) ? number : undefined;\r\n }\r\n}\r\n","<!-- Volet de propriétés (section ou champ sélectionné), au design des formulaires standard -->\r\n<ng-template #panelTpl let-panel=\"panel\" let-changed=\"changed\">\r\n <div class=\"property-container\">\r\n @for (section of panel.visibleSections; 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\">\r\n <alg-field [field]=\"field\" [form]=\"panel.form\" [readonly]=\"readonly\" (propertyChanged)=\"changed($event)\">\r\n </alg-field>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</ng-template>\r\n\r\n<div class=\"fed\">\r\n @if (entity) {\r\n <alg-tabset [showNavs]=\"true\" [pills]=\"false\" (onSelect)=\"activeTab = $event\">\r\n\r\n <!-- Propriétés : champs du formulaire, avec les composants des formulaires -->\r\n <alg-tab title=\"Propriétés\" [active]=\"activeTab === 0\" [class.fed__tab]=\"activeTab === 0\">\r\n <div class=\"property-container fed__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\">\r\n <alg-field [field]=\"field\" [form]=\"form\" [readonly]=\"readonly\"\r\n (propertyChanged)=\"onPropertyChanged($event)\">\r\n </alg-field>\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 : sections, champs et paramètres -->\r\n <alg-tab title=\"Définition\" [active]=\"activeTab === 1\" [class.fed__tab]=\"activeTab === 1\">\r\n <div *ngIf=\"message || definitionError\" class=\"fed__message fed__message--error\">{{ message || definitionError }}</div>\r\n <p *ngIf=\"isNew\" class=\"fed__empty\">Enregistrez d'abord le formulaire : ses sections et ses champs s'éditent ensuite ici.</p>\r\n <div *ngIf=\"isLoading\" class=\"fed__loading\">\r\n <i class=\"fa fa-circle-o-notch fa-spin\"></i>&nbsp;Chargement de la définition…\r\n </div>\r\n\r\n <div *ngIf=\"loadedEntity && model.form\" class=\"fed__body\">\r\n\r\n <!-- Sections : liste déplaçable, puis propriétés de la section sélectionnée -->\r\n <div class=\"fed__panel fed__sections\">\r\n <div class=\"fed__panel-hd\">\r\n <span class=\"fed__panel-title\">Sections <span class=\"fed__badge\">{{ model.sections.length }}</span></span>\r\n <button *ngIf=\"!readonly\" class=\"btn btn-sm btn-primary btn-flat\" type=\"button\" (click)=\"addSection()\" title=\"Ajouter une section\">\r\n <i class=\"fa fa-plus\"></i> Ajouter\r\n </button>\r\n </div>\r\n\r\n <div class=\"fed__list\" cdkDropList [cdkDropListData]=\"model.sections\" [cdkDropListDisabled]=\"readonly\"\r\n (cdkDropListDropped)=\"onSectionDrop($event)\">\r\n <p *ngIf=\"model.sections.length === 0\" class=\"fed__empty\">Aucune section.</p>\r\n <div *ngFor=\"let section of model.sections\"\r\n class=\"fed__item\"\r\n cdkDrag\r\n [class.fed__item--selected]=\"section === selectedSection\"\r\n [class.fed__item--hidden]=\"section.IsHidden\"\r\n (click)=\"selectSection(section)\">\r\n <div class=\"fed__placeholder\" *cdkDragPlaceholder></div>\r\n <span class=\"fed__drag\" cdkDragHandle title=\"Glisser pour déplacer\"><i class=\"fa fa-bars\"></i></span>\r\n <span class=\"fed__item-text\">\r\n <span class=\"fed__item-name\" [class.fed__item-name--error]=\"model.isDuplicateName(section)\">{{ section.Name || '(sans titre)' }}</span>\r\n <span class=\"fed__muted\">{{ kindLabel(section) }}</span>\r\n </span>\r\n <i *ngIf=\"section.IsHidden\" class=\"fa fa-eye-slash fed__muted\" title=\"Section masquée\"></i>\r\n <button *ngIf=\"!readonly\" class=\"fed__remove\" type=\"button\" (click)=\"removeSection(section, $event)\" title=\"Supprimer la section\">&#x2715;</button>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"selectedSection\" class=\"fed__props\">\r\n <ng-container *ngTemplateOutlet=\"panelTpl; context: { panel: sectionPanel, changed: onSectionParam }\"></ng-container>\r\n </div>\r\n </div>\r\n\r\n <!-- Champs de la section : liste déplaçable, ajout par le sélecteur des colonnes -->\r\n <div class=\"fed__panel fed__fields\">\r\n <div class=\"fed__panel-hd\">\r\n <span class=\"fed__panel-title\">\r\n {{ selectedSection ? selectedSection.Name : 'Champs' }}\r\n <span *ngIf=\"model.hasFields(selectedSection)\" class=\"fed__badge\">{{ selectedSection?.FormFields?.length ?? 0 }}</span>\r\n </span>\r\n <button *ngIf=\"!readonly && model.hasFields(selectedSection)\" class=\"btn btn-sm btn-primary btn-flat\" type=\"button\"\r\n (click)=\"onAddFields()\" title=\"Ajouter des champs : colonnes de l'entité qui ne sont pas encore dans le formulaire\">\r\n <i class=\"fa fa-plus\"></i> Ajouter\r\n </button>\r\n </div>\r\n\r\n <p *ngIf=\"!selectedSection\" class=\"fed__empty\">Sélectionnez ou ajoutez une section.</p>\r\n <p *ngIf=\"selectedSection && !model.hasFields(selectedSection)\" class=\"fed__empty\">\r\n <ng-container *ngIf=\"model.kindOf(selectedSection) === Kinds.Related; else specialTpl\">\r\n Cette section affiche, dans un onglet, les enregistrements de l'entité liée : elle n'a pas de champs.\r\n </ng-container>\r\n <ng-template #specialTpl>Le contenu de cette section est fourni par l'application : elle n'a pas de champs.</ng-template>\r\n </p>\r\n\r\n <ng-container *ngIf=\"selectedSection && model.hasFields(selectedSection)\">\r\n <div class=\"fed__list\" cdkDropList [cdkDropListData]=\"selectedSection.FormFields ?? []\" [cdkDropListDisabled]=\"readonly\"\r\n (cdkDropListDropped)=\"onFieldDrop($event)\">\r\n <p *ngIf=\"(selectedSection.FormFields?.length ?? 0) === 0\" class=\"fed__empty\">Aucun champ : utilisez « Ajouter ».</p>\r\n <div *ngFor=\"let field of selectedSection.FormFields; let i = index\"\r\n class=\"fed__item\"\r\n cdkDrag\r\n [class.fed__item--selected]=\"field === selectedField\"\r\n [class.fed__item--hidden]=\"field.IsHidden\"\r\n (click)=\"selectField(field)\">\r\n <div class=\"fed__placeholder\" *cdkDragPlaceholder></div>\r\n <span class=\"fed__drag\" cdkDragHandle title=\"Glisser pour déplacer\"><i class=\"fa fa-bars\"></i></span>\r\n <span class=\"fed__pos\">{{ i + 1 }}</span>\r\n <span class=\"fed__item-text\">\r\n <span class=\"fed__item-name\">{{ field.Label || field.PropertyName }}<span *ngIf=\"field.IsRequired\" class=\"fed__required\"> *</span></span>\r\n <span class=\"fed__muted\">{{ field.PropertyName }} · {{ fieldTypeLabel(field) }}</span>\r\n </span>\r\n <i *ngIf=\"field.IsReadOnly\" class=\"fa fa-lock fed__muted\" title=\"Lecture seule\"></i>\r\n <i *ngIf=\"field.IsHidden\" class=\"fa fa-eye-slash fed__muted\" title=\"Champ masqué\"></i>\r\n <button *ngIf=\"!readonly\" class=\"fed__remove\" type=\"button\" (click)=\"removeField(field, $event)\" title=\"Retirer le champ\">&#x2715;</button>\r\n </div>\r\n </div>\r\n\r\n <!-- Propriété qui n'est pas une colonne de la table : colonne de la vue, propriété calculée -->\r\n <div *ngIf=\"!readonly\" class=\"fed__free\">\r\n <input type=\"text\" maxlength=\"255\" placeholder=\"Autre propriété (colonne de la vue, ex. NewPassword)\"\r\n [(ngModel)]=\"freeProperty\" (keydown.enter)=\"addFreeField()\">\r\n <button class=\"btn btn-secondary btn-sm btn-flat\" type=\"button\" (click)=\"addFreeField()\" [disabled]=\"!freeProperty.trim()\">Ajouter</button>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- Paramètres du champ sélectionné -->\r\n <div class=\"fed__panel fed__settings\">\r\n <div class=\"fed__panel-hd\">\r\n <span class=\"fed__panel-title\">{{ selectedField ? (selectedField.Label || selectedField.PropertyName) : 'Paramètres du champ' }}</span>\r\n <span *ngIf=\"selectedField\" class=\"fed__muted\">{{ selectedField.PropertyName }}</span>\r\n </div>\r\n\r\n <p *ngIf=\"!selectedField\" class=\"fed__empty\">Sélectionnez un champ pour le paramétrer.</p>\r\n\r\n <div *ngIf=\"selectedField\" class=\"fed__props fed__props--scroll\">\r\n <ng-container *ngTemplateOutlet=\"panelTpl; context: { panel: fieldPanel, changed: onFieldParam }\"></ng-container>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </alg-tab>\r\n </alg-tabset>\r\n }\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur MetaEntityFormController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityFormComponent, dérivé de BaseMetaEntityFormComponent.\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 { MetaEntityFormFilterViewModel, MetaEntityFormView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityFormComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityFormComponent extends BaseComponent<MetaEntityFormFilterViewModel, MetaEntityFormView> {\r\n getTitle(): string {\r\n return 'Formulaires';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityForm;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYFORM;\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 'MFRV';\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/MetaEntityFormForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { FormEditorComponent } from '../form-editor/form-editor.component';\r\nimport { BaseMetaEntityFormComponent } from './generated/metaentityform.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormView : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityFormComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n * L'éditeur de formulaire (FormEditorComponent) remplace le formulaire d'édition standard : onglet\r\n * « Propriétés » et onglet « Définition » (sections et champs), enregistrés par l'action\r\n * « Enregistrer » de l'écran.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-form-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 MetaEntityFormComponent extends BaseMetaEntityFormComponent {\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n\r\n // Éditeur spécifique : propriétés et définition du formulaire, à la place du formulaire standard.\r\n this.editorComponent = FormEditorComponent;\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout: false, PropertyFlexGrow: 65 });\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 MetaEntityFormFieldController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityFormFieldComponent, dérivé de BaseMetaEntityFormFieldComponent.\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 { MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormFieldView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : MetaEntityFormFieldComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityFormFieldComponent extends BaseComponent<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView> {\r\n getTitle(): string {\r\n return 'Champs de formulaire';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityFormField;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYFORMFIELD;\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 'MFFV';\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 { BaseMetaEntityFormFieldComponent } from './generated/metaentityformfield.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormFieldView : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityFormFieldComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-form-field-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 MetaEntityFormFieldComponent extends BaseMetaEntityFormFieldComponent {\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 MetaEntityFormSectionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityFormSectionComponent, dérivé de BaseMetaEntityFormSectionComponent.\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 { MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormSectionView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityFormSectionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityFormSectionComponent extends BaseComponent<MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView> {\r\n getTitle(): string {\r\n return 'Sections de formulaire';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityFormSection;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYFORMSECTION;\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 'MFSV';\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/MetaEntityFormSectionForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseMetaEntityFormSectionComponent } from './generated/metaentityformsection.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormSectionView : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityFormSectionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-form-section-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 MetaEntityFormSectionComponent extends BaseMetaEntityFormSectionComponent {\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 MetaEntityKeywordController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityKeywordComponent, dérivé de BaseMetaEntityKeywordComponent.\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 { MetaEntityKeyword, MetaEntityKeywordFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityKeyword (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : MetaEntityKeywordComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityKeywordComponent extends BaseComponent<MetaEntityKeywordFilterViewModel, MetaEntityKeyword> {\r\n getTitle(): string {\r\n return 'Mot-clé de méta-entité';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityKeyword;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYKEYWORD;\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 'MEK';\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 { BaseMetaEntityKeywordComponent } from './generated/metaentitykeyword.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityKeyword : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityKeywordComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-keyword-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 MetaEntityKeywordComponent extends BaseMetaEntityKeywordComponent {\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 MetaEntityRelationController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityRelationComponent, dérivé de BaseMetaEntityRelationComponent.\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 { MetaEntityRelation, MetaEntityRelationFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityRelation (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityRelationComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityRelationComponent extends BaseComponent<MetaEntityRelationFilterViewModel, MetaEntityRelation> {\r\n getTitle(): string {\r\n return 'Relations entre entités';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityRelation;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYRELATION;\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 'MER';\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/MetaEntityRelationForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseMetaEntityRelationComponent } from './generated/metaentityrelation.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityRelation : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityRelationComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-relation-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 MetaEntityRelationComponent extends BaseMetaEntityRelationComponent {\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 MetaEntityRelationDefinitionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityRelationDefinitionComponent, dérivé de BaseMetaEntityRelationDefinitionComponent.\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 { MetaEntityRelationDefinition, MetaEntityRelationDefinitionFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityRelationDefinition (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : MetaEntityRelationDefinitionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityRelationDefinitionComponent extends BaseComponent<MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationDefinition> {\r\n getTitle(): string {\r\n return 'Définition de relation';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityRelationDefinition;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYRELATIONDEFINITION;\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 'MERD';\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 { BaseMetaEntityRelationDefinitionComponent } from './generated/metaentityrelationdefinition.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityRelationDefinition : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityRelationDefinitionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-relation-definition-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 MetaEntityRelationDefinitionComponent extends BaseMetaEntityRelationDefinitionComponent {\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 MetaEntityTranslationController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityTranslationComponent, dérivé de BaseMetaEntityTranslationComponent.\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 { MetaEntityTranslation, MetaEntityTranslationFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityTranslation (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : MetaEntityTranslationComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityTranslationComponent extends BaseComponent<MetaEntityTranslationFilterViewModel, MetaEntityTranslation> {\r\n getTitle(): string {\r\n return 'Traduction de méta-entité';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityTranslation;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYTRANSLATION;\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 'MET';\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 { BaseMetaEntityTranslationComponent } from './generated/metaentitytranslation.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityTranslation : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityTranslationComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-translation-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 MetaEntityTranslationComponent extends BaseMetaEntityTranslationComponent {\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 MetaEntityViewFieldController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityViewFieldComponent, dérivé de BaseMetaEntityViewFieldComponent.\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 { MetaEntityViewField, MetaEntityViewFieldFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityViewField (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityViewFieldComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityViewFieldComponent extends BaseComponent<MetaEntityViewFieldFilterViewModel, MetaEntityViewField> {\r\n getTitle(): string {\r\n return 'Champ de vue';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityViewField;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYVIEWFIELD;\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 'MVF';\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/MetaEntityViewFieldForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseMetaEntityViewFieldComponent } from './generated/metaentityviewfield.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityViewField : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityViewFieldComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-view-field-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 MetaEntityViewFieldComponent extends BaseMetaEntityViewFieldComponent {\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 ParameterController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ParameterComponent, dérivé de BaseParameterComponent.\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 { ParameterView, ParameterViewFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ParameterView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : ParameterComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseParameterComponent extends BaseComponent<ParameterViewFilterViewModel, ParameterView> {\r\n getTitle(): string {\r\n return 'Définition des paramètres';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Parameter;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PARAMETER;\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 'PTRV';\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/ParameterForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseParameterComponent } from './generated/parameter.component.generated';\r\n\r\n/**\r\n * Recherche et édition des ParameterView : code spécifique du composant (la partie générée\r\n * est BaseParameterComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-parameter-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 ParameterComponent extends BaseParameterComponent {\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 ParameterSectionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ParameterSectionComponent, dérivé de BaseParameterSectionComponent.\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 { ParameterSection, ParameterSectionFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ParameterSection (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : ParameterSectionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseParameterSectionComponent extends BaseComponent<ParameterSectionFilterViewModel, ParameterSection> {\r\n getTitle(): string {\r\n return 'Sections de paramètres';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ParameterSection;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PARAMETERSECTION;\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 'PTS';\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/ParameterSectionForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseParameterSectionComponent } from './generated/parametersection.component.generated';\r\n\r\n/**\r\n * Recherche et édition des ParameterSection : code spécifique du composant (la partie générée\r\n * est BaseParameterSectionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-parameter-section-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 ParameterSectionComponent extends BaseParameterSectionComponent {\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 ParameterValueController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ParameterValueComponent, dérivé de BaseParameterValueComponent.\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 { ParameterValueView, ParameterValueViewFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ParameterValueView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : ParameterValueComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseParameterValueComponent extends BaseComponent<ParameterValueViewFilterViewModel, ParameterValueView> {\r\n getTitle(): string {\r\n return 'Paramètres';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ParameterValue;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PARAMETERVALUE;\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 'PTVV';\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 { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { BaseParameterValueComponent } from './generated/parametervalue.component.generated';\r\n\r\n/**\r\n * Paramètres généraux (valeurs des paramètres) : code spécifique du composant (la partie générée est\r\n * BaseParameterValueComponent). Anciennement GlobalParameterComponent.\r\n */\r\n@Component({\r\n selector: 'alg-global-param',\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 ParameterValueComponent extends BaseParameterValueComponent {\r\n getTitle(): string {\r\n return 'Paramètres généraux';\r\n }\r\n\r\n constructor(app: ApplicationService, route: ActivatedRoute) {\r\n super(app, route);\r\n\r\n this.filterAction('add');\r\n }\r\n\r\n ngOnInit() {\r\n super.ngOnInit();\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout : true, PropertyFlexGrow : 68 });\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 PermissionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans PermissionComponent, dérivé de BasePermissionComponent.\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 { PermissionFilterViewModel, PermissionView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des PermissionView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : PermissionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BasePermissionComponent extends BaseComponent<PermissionFilterViewModel, PermissionView> {\r\n getTitle(): string {\r\n return 'Permissions';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Permission;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PERMISSION;\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 'PRM';\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 { BasePermissionComponent } from './generated/permission.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-permission',\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 PermissionComponent extends BasePermissionComponent {\r\n\r\n getIcon(): string {return 'circle-check-solid'};\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.filterAction('add');\r\n this.filterAction('delete');\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout : true, PropertyFlexGrow : 30 });\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 PresentationProfileItemController).\r\n// Ne pas modifier : le code spécifique s'écrit dans PresentationProfileItemComponent, dérivé de BasePresentationProfileItemComponent.\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 { PresentationProfileItemFilterViewModel, PresentationProfileItemView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des PresentationProfileItemView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : PresentationProfileItemComponent.\r\n */\r\n@Directive()\r\nexport abstract class BasePresentationProfileItemComponent extends BaseComponent<PresentationProfileItemFilterViewModel, PresentationProfileItemView> {\r\n getTitle(): string {\r\n return 'Colonnes de vue personnalisée';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.PresentationProfileItem;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PRESENTATIONPROFILEITEM;\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 'PROI';\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 { BasePresentationProfileItemComponent } from './generated/presentationprofileitem.component.generated';\r\n\r\n/**\r\n * Recherche et édition des PresentationProfileItemView : code spécifique du composant (la partie générée\r\n * est BasePresentationProfileItemComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-presentation-profile-item-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 PresentationProfileItemComponent extends BasePresentationProfileItemComponent {\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 ResourceTranslationController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ResourceTranslationComponent, dérivé de BaseResourceTranslationComponent.\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 { ResourceTranslationFilterViewModel, ResourceTranslationView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ResourceTranslationView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : ResourceTranslationComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseResourceTranslationComponent extends BaseComponent<ResourceTranslationFilterViewModel, ResourceTranslationView> {\r\n getTitle(): string {\r\n return 'Traduction';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ResourceTranslation;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_RESOURCETRANSLATION;\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 'RTRV';\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 ResourceKey,\r\n ResourceTranslationView\r\n} from '@dflat-core/web/meta-model';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseResourceTranslationComponent } from './generated/resourcetranslation.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-resource-translation',\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 ResourceTranslationComponent extends BaseResourceTranslationComponent {\r\n\r\n // Titre au pluriel (le titre généré est « Traduction »).\r\n getTitle(): string {\r\n return 'Traductions';\r\n }\r\n\r\n resourceKey : ResourceKey;\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.facade.actions.patch('add', {\r\n getParameter: () => {\r\n return {\r\n ResourceKeyId : this.resourceKey.Id,\r\n Key : this.resourceKey.Key\r\n } as Partial<ResourceTranslationView>\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 ResourceKeyController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ResourceKeyComponent, dérivé de BaseResourceKeyComponent.\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 { ResourceKey, ResourceKeyFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ResourceKey (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : ResourceKeyComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseResourceKeyComponent extends BaseComponent<ResourceKeyFilterViewModel, ResourceKey> {\r\n getTitle(): string {\r\n return 'Traductions';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ResourceKey;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_RESOURCEKEY;\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 'RKY';\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/ResourceKeyForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { SpecificSection } from '@dflat-core/web/core-model';\r\nimport { additionalQueryOf } from '@dflat-core/web/core-ux';\r\nimport { ResourceKey, ResourceTranslationFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ResourceTranslationComponent } from './resourcetranslation.component';\r\nimport { BaseResourceKeyComponent } from './generated/resourcekey.component.generated';\r\n\r\n\r\n@Component({\r\n selector: 'alg-resource-key',\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 ResourceKeyComponent extends BaseResourceKeyComponent {\r\n\r\n // Titre métier (le titre généré est « Traductions »).\r\n getTitle(): string {\r\n return 'Ressources';\r\n }\r\n\r\n specificSections: SpecificSection[];\r\n\r\n RESOURCE_TRANSLATION_SECTION: string = \"Traductions\";\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n this.facade.sections.registerSection(this.RESOURCE_TRANSLATION_SECTION, \r\n ResourceTranslationComponent, \r\n {\r\n layoutOverride : (component) => {\r\n component.facade.layout.setFixedLayout({IsVerticalLayout : false, PropertyFlexGrow : 50})\r\n },\r\n filterOverride : (selected) => {\r\n const filter: ResourceTranslationFilterViewModel = {\r\n AdditionalQuery: selected && selected.length > 0\r\n ? additionalQueryOf({ Property: 'ResourceKeyId', Operator: 'in', Values: selected.map(s => s.Id) }) : undefined,\r\n Offset: 0, \r\n Take: 50\r\n };\r\n return filter;\r\n },\r\n selectionOverride(component : ResourceTranslationComponent, selected : ResourceKey[]) {\r\n component.resourceKey = selected[0]\r\n },\r\n \r\n });\r\n\r\n this.facade.actions.hideAction(\"edit\");\r\n this.facade.actions.hideAction(\"add\");\r\n\r\n this.facade.layout.setFixedLayout({IsVerticalLayout : false, PropertyFlexGrow : 70});\r\n }\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 ResourceLanguageController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ResourceLanguageComponent, dérivé de BaseResourceLanguageComponent.\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 { ResourceLanguage, ResourceLanguageFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ResourceLanguage (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : ResourceLanguageComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseResourceLanguageComponent extends BaseComponent<ResourceLanguageFilterViewModel, ResourceLanguage> {\r\n getTitle(): string {\r\n return 'Langues';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ResourceLanguage;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_RESOURCELANGUAGE;\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 'RLG';\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/ResourceLanguageForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { LayoutPreferences } from '@dflat-core/web/core-ux';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseResourceLanguageComponent } from './generated/resourcelanguage.component.generated';\r\n\r\n\r\n@Component({\r\n selector: 'alg-resource-language',\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 ResourceLanguageComponent extends BaseResourceLanguageComponent {\r\n\r\n FIXED_LAYOUT : LayoutPreferences = {\r\n PropertyFlexGrow : 60,\r\n IsVerticalLayout: false\r\n }\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.facade.layout.setFixedLayout(this.FIXED_LAYOUT);\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 VersionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans VersionComponent, dérivé de BaseVersionComponent.\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 { Version, VersionFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des Version (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : VersionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseVersionComponent extends BaseComponent<VersionFilterViewModel, Version> {\r\n getTitle(): string {\r\n return 'Versions de la base';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Version;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_VERSION;\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 'VSN';\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 { BaseVersionComponent } from './generated/version.component.generated';\r\n\r\n/**\r\n * Recherche et édition des Version : code spécifique du composant (la partie générée\r\n * est BaseVersionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-version-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 VersionComponent extends BaseVersionComponent {\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 Meta).\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 { CustomFieldDataService, CustomFieldGroupDataService, CustomFieldGroupEntityDataService, CustomFieldGroupItemDataService, CustomFieldOptionsDataService, FilesDataService, KeywordDataService, MetaEntityDataService, MetaEntityFieldDataService, MetaEntityFormDataService, MetaEntityFormFieldDataService, MetaEntityFormSectionDataService, MetaEntityKeywordDataService, MetaEntityRelationDataService, MetaEntityRelationDefinitionDataService, MetaEntityTranslationDataService, MetaEntityViewFieldDataService, ParameterDataService, ParameterSectionDataService, ParameterValueDataService, PermissionDataService, PresentationProfileItemDataService, ResourceKeyDataService, ResourceLanguageDataService, ResourceTranslationDataService, VersionDataService } from '@dflat-core/web/meta-data';\r\nimport { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { CustomFieldComponent } from '../customfield.component';\r\nimport { CustomFieldGroupComponent } from '../customfieldgroup.component';\r\nimport { CustomFieldGroupEntityComponent } from '../customfieldgroupentity.component';\r\nimport { CustomFieldGroupItemComponent } from '../customfieldgroupitem.component';\r\nimport { CustomFieldOptionsComponent } from '../customfieldoptions.component';\r\nimport { FilesComponent } from '../files.component';\r\nimport { KeywordComponent } from '../keyword.component';\r\nimport { MetaEntityComponent } from '../metaentity.component';\r\nimport { MetaEntityFieldComponent } from '../metaentityfield.component';\r\nimport { MetaEntityFormComponent } from '../metaentityform.component';\r\nimport { MetaEntityFormFieldComponent } from '../metaentityformfield.component';\r\nimport { MetaEntityFormSectionComponent } from '../metaentityformsection.component';\r\nimport { MetaEntityKeywordComponent } from '../metaentitykeyword.component';\r\nimport { MetaEntityRelationComponent } from '../metaentityrelation.component';\r\nimport { MetaEntityRelationDefinitionComponent } from '../metaentityrelationdefinition.component';\r\nimport { MetaEntityTranslationComponent } from '../metaentitytranslation.component';\r\nimport { MetaEntityViewFieldComponent } from '../metaentityviewfield.component';\r\nimport { ParameterComponent } from '../parameter.component';\r\nimport { ParameterSectionComponent } from '../parametersection.component';\r\nimport { ParameterValueComponent } from '../parametervalue.component';\r\nimport { PermissionComponent } from '../permission.component';\r\nimport { PresentationProfileItemComponent } from '../presentationprofileitem.component';\r\nimport { ResourceKeyComponent } from '../resourcekey.component';\r\nimport { ResourceLanguageComponent } from '../resourcelanguage.component';\r\nimport { ResourceTranslationComponent } from '../resourcetranslation.component';\r\nimport { VersionComponent } from '../version.component';\r\n\r\n/** Composants des entités du module Meta (composants spécifiques), à déclarer dans son module Angular. */\r\nexport const MetaGeneratedComponents = [\r\n CustomFieldComponent,\r\n CustomFieldGroupComponent,\r\n CustomFieldGroupEntityComponent,\r\n CustomFieldGroupItemComponent,\r\n CustomFieldOptionsComponent,\r\n FilesComponent,\r\n KeywordComponent,\r\n MetaEntityComponent,\r\n MetaEntityFieldComponent,\r\n MetaEntityFormComponent,\r\n MetaEntityFormFieldComponent,\r\n MetaEntityFormSectionComponent,\r\n MetaEntityKeywordComponent,\r\n MetaEntityRelationComponent,\r\n MetaEntityRelationDefinitionComponent,\r\n MetaEntityTranslationComponent,\r\n MetaEntityViewFieldComponent,\r\n ParameterComponent,\r\n ParameterSectionComponent,\r\n ParameterValueComponent,\r\n PermissionComponent,\r\n PresentationProfileItemComponent,\r\n ResourceKeyComponent,\r\n ResourceLanguageComponent,\r\n ResourceTranslationComponent,\r\n VersionComponent,\r\n];\r\n\r\n/** Routes des composants des entités du module Meta (clé d'entité), à ajouter à RouterModule.forChild. */\r\nexport const MetaGeneratedRoutes: Routes = [\r\n { path: MetaEntityKeys.CustomField, component: CustomFieldComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldGroup, component: CustomFieldGroupComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldGroupEntity, component: CustomFieldGroupEntityComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldGroupItem, component: CustomFieldGroupItemComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldOptions, component: CustomFieldOptionsComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.Files, component: FilesComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.Keyword, component: KeywordComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntity, component: MetaEntityComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityField, component: MetaEntityFieldComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityForm, component: MetaEntityFormComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityFormField, component: MetaEntityFormFieldComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityFormSection, component: MetaEntityFormSectionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityKeyword, component: MetaEntityKeywordComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityRelation, component: MetaEntityRelationComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityRelationDefinition, component: MetaEntityRelationDefinitionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityTranslation, component: MetaEntityTranslationComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityViewField, component: MetaEntityViewFieldComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.Parameter, component: ParameterComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ParameterSection, component: ParameterSectionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ParameterValue, component: ParameterValueComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.Permission, component: PermissionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.PresentationProfileItem, component: PresentationProfileItemComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ResourceKey, component: ResourceKeyComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ResourceLanguage, component: ResourceLanguageComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ResourceTranslation, component: ResourceTranslationComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.Version, component: VersionComponent, canDeactivate: [CanDeactivateGuard] },\r\n];\r\n\r\n/**\r\n * Sélecteurs d'entité du module Meta (champs Custom des formulaires, ModalEntityKey = entité),\r\n * à enregistrer dans le constructeur de son module Angular : EntitySelectors.register(MetaGeneratedSelectors, injector).\r\n */\r\nexport const MetaGeneratedSelectors: EntitySelector[] = [\r\n { key: MetaEntityKeys.CustomField, component: CustomFieldComponent, title: 'Attributs', dataService: CustomFieldDataService },\r\n { key: MetaEntityKeys.CustomFieldGroup, component: CustomFieldGroupComponent, title: 'Famille d\\'attributs', dataService: CustomFieldGroupDataService },\r\n { key: MetaEntityKeys.CustomFieldGroupEntity, component: CustomFieldGroupEntityComponent, title: 'Entité d\\'un groupe de champs', dataService: CustomFieldGroupEntityDataService },\r\n { key: MetaEntityKeys.CustomFieldGroupItem, component: CustomFieldGroupItemComponent, title: 'Élément d\\'un groupe de champs', dataService: CustomFieldGroupItemDataService },\r\n { key: MetaEntityKeys.CustomFieldOptions, component: CustomFieldOptionsComponent, title: 'Option de champ personnalisé', dataService: CustomFieldOptionsDataService },\r\n { key: MetaEntityKeys.Files, component: FilesComponent, title: 'Fichiers', dataService: FilesDataService },\r\n { key: MetaEntityKeys.Keyword, component: KeywordComponent, title: 'Mots-clés', dataService: KeywordDataService },\r\n { key: MetaEntityKeys.MetaEntity, component: MetaEntityComponent, title: 'Modèle', dataService: MetaEntityDataService },\r\n { key: MetaEntityKeys.MetaEntityField, component: MetaEntityFieldComponent, title: 'Champ de méta-entité', dataService: MetaEntityFieldDataService },\r\n { key: MetaEntityKeys.MetaEntityForm, component: MetaEntityFormComponent, title: 'Formulaires', dataService: MetaEntityFormDataService },\r\n { key: MetaEntityKeys.MetaEntityFormField, component: MetaEntityFormFieldComponent, title: 'Champs de formulaire', dataService: MetaEntityFormFieldDataService },\r\n { key: MetaEntityKeys.MetaEntityFormSection, component: MetaEntityFormSectionComponent, title: 'Sections de formulaire', dataService: MetaEntityFormSectionDataService },\r\n { key: MetaEntityKeys.MetaEntityKeyword, component: MetaEntityKeywordComponent, title: 'Mot-clé de méta-entité', dataService: MetaEntityKeywordDataService },\r\n { key: MetaEntityKeys.MetaEntityRelation, component: MetaEntityRelationComponent, title: 'Relations entre entités', dataService: MetaEntityRelationDataService },\r\n { key: MetaEntityKeys.MetaEntityRelationDefinition, component: MetaEntityRelationDefinitionComponent, title: 'Définition de relation', dataService: MetaEntityRelationDefinitionDataService },\r\n { key: MetaEntityKeys.MetaEntityTranslation, component: MetaEntityTranslationComponent, title: 'Traduction de méta-entité', dataService: MetaEntityTranslationDataService },\r\n { key: MetaEntityKeys.MetaEntityViewField, component: MetaEntityViewFieldComponent, title: 'Champ de vue', dataService: MetaEntityViewFieldDataService },\r\n { key: MetaEntityKeys.Parameter, component: ParameterComponent, title: 'Définition des paramètres', dataService: ParameterDataService },\r\n { key: MetaEntityKeys.ParameterSection, component: ParameterSectionComponent, title: 'Sections de paramètres', dataService: ParameterSectionDataService },\r\n { key: MetaEntityKeys.ParameterValue, component: ParameterValueComponent, title: 'Paramètres', dataService: ParameterValueDataService },\r\n { key: MetaEntityKeys.Permission, component: PermissionComponent, title: 'Permissions', dataService: PermissionDataService },\r\n { key: MetaEntityKeys.PresentationProfileItem, component: PresentationProfileItemComponent, title: 'Colonnes de vue personnalisée', dataService: PresentationProfileItemDataService },\r\n { key: MetaEntityKeys.ResourceKey, component: ResourceKeyComponent, title: 'Traductions', dataService: ResourceKeyDataService },\r\n { key: MetaEntityKeys.ResourceLanguage, component: ResourceLanguageComponent, title: 'Langues', dataService: ResourceLanguageDataService },\r\n { key: MetaEntityKeys.ResourceTranslation, component: ResourceTranslationComponent, title: 'Traduction', dataService: ResourceTranslationDataService },\r\n { key: MetaEntityKeys.Version, component: VersionComponent, title: 'Versions de la base', dataService: VersionDataService },\r\n];\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, module Meta, 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 { CustomFieldGroup, CustomFieldGroupEntityFilterViewModel, CustomFieldGroupEntityView, CustomFieldGroupFilterViewModel, CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView, CustomFieldOptionsFilterViewModel, CustomFieldOptionsView, MetaEntityField, MetaEntityFieldFilterViewModel, MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView, MetaEntityFormFilterViewModel, MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView, MetaEntityFormView, MetaEntityKeyword, MetaEntityKeywordFilterViewModel, MetaEntityRelation, MetaEntityRelationDefinition, MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationFilterViewModel, MetaEntityTranslation, MetaEntityTranslationFilterViewModel, MetaEntityViewField, MetaEntityViewFieldFilterViewModel, ParameterValueView, ParameterValueViewFilterViewModel, ParameterView, ParameterViewFilterViewModel, PresentationProfileItemFilterViewModel, PresentationProfileItemView, ResourceTranslationFilterViewModel, ResourceTranslationView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { CustomFieldGroupComponent } from '../customfieldgroup.component';\r\nimport { CustomFieldGroupEntityComponent } from '../customfieldgroupentity.component';\r\nimport { CustomFieldGroupItemComponent } from '../customfieldgroupitem.component';\r\nimport { CustomFieldOptionsComponent } from '../customfieldoptions.component';\r\nimport { MetaEntityFieldComponent } from '../metaentityfield.component';\r\nimport { MetaEntityFormComponent } from '../metaentityform.component';\r\nimport { MetaEntityFormFieldComponent } from '../metaentityformfield.component';\r\nimport { MetaEntityFormSectionComponent } from '../metaentityformsection.component';\r\nimport { MetaEntityKeywordComponent } from '../metaentitykeyword.component';\r\nimport { MetaEntityRelationComponent } from '../metaentityrelation.component';\r\nimport { MetaEntityRelationDefinitionComponent } from '../metaentityrelationdefinition.component';\r\nimport { MetaEntityTranslationComponent } from '../metaentitytranslation.component';\r\nimport { MetaEntityViewFieldComponent } from '../metaentityviewfield.component';\r\nimport { ParameterComponent } from '../parameter.component';\r\nimport { ParameterValueComponent } from '../parametervalue.component';\r\nimport { PresentationProfileItemComponent } from '../presentationprofileitem.component';\r\nimport { ResourceTranslationComponent } from '../resourcetranslation.component';\r\n\r\n/**\r\n * Onglets des entités liées (relation 1..*) des entités du module Meta : 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(MetaGeneratedSectionService)).\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class MetaGeneratedSectionService 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 // Attributs (metadata/04-forms/CustomFieldForm.sql)\r\n [MetaEntityKeys.CustomField]: () => [\r\n EntitySections.related<CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView>('Éléments des groupes de champs', CustomFieldGroupItemComponent, 'CustomFieldId'),\r\n EntitySections.related<CustomFieldOptionsFilterViewModel, CustomFieldOptionsView>('Options de champ personnalisé', CustomFieldOptionsComponent, 'CustomFieldId'),\r\n EntitySections.related<MetaEntityFieldFilterViewModel, MetaEntityField>('Champs des méta-entités', MetaEntityFieldComponent, 'CustomFieldId'),\r\n EntitySections.related<PresentationProfileItemFilterViewModel, PresentationProfileItemView>('Colonnes de vue', PresentationProfileItemComponent, 'CustomFieldId'),\r\n ],\r\n // Famille d'attributs (metadata/04-forms/CustomFieldGroupForm.sql)\r\n [MetaEntityKeys.CustomFieldGroup]: () => [\r\n EntitySections.related<CustomFieldGroupEntityFilterViewModel, CustomFieldGroupEntityView>('Entités des groupes de champs', CustomFieldGroupEntityComponent, 'CustomFieldGroupId'),\r\n ],\r\n // Mots-clés (metadata/04-forms/KeywordForm.sql)\r\n [MetaEntityKeys.Keyword]: () => [\r\n EntitySections.related<MetaEntityKeywordFilterViewModel, MetaEntityKeyword>('Mot-clé de méta-entité', MetaEntityKeywordComponent, 'KeywordId'),\r\n ],\r\n // Modèle (metadata/04-forms/MetaEntityForm.sql)\r\n [MetaEntityKeys.MetaEntity]: () => [\r\n EntitySections.related<CustomFieldGroupFilterViewModel, CustomFieldGroup>('Groupe de champs personnalisés', CustomFieldGroupComponent, 'MetaEntityId'),\r\n EntitySections.related<MetaEntityFormFilterViewModel, MetaEntityFormView>('Formulaires', MetaEntityFormComponent, 'MetaEntityId'),\r\n EntitySections.related<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView>('Champs de formulaire (Data)', MetaEntityFormFieldComponent, 'DataMetaEntityId'),\r\n EntitySections.related<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView>('Champs de formulaire (Enum)', MetaEntityFormFieldComponent, 'EnumMetaEntityId'),\r\n EntitySections.related<MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView>('Sections de formulaire', MetaEntityFormSectionComponent, 'DataMetaEntityId'),\r\n EntitySections.related<MetaEntityRelationFilterViewModel, MetaEntityRelation>('Relation entre méta-entités (Foreign)', MetaEntityRelationComponent, 'ForeignMetaEntityId'),\r\n EntitySections.related<MetaEntityRelationFilterViewModel, MetaEntityRelation>('Relation entre méta-entités', MetaEntityRelationComponent, 'MetaEntityId'),\r\n EntitySections.related<MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationDefinition>('Définition de relation', MetaEntityRelationDefinitionComponent, 'MetaEntityId'),\r\n EntitySections.related<MetaEntityViewFieldFilterViewModel, MetaEntityViewField>('Champ de vue', MetaEntityViewFieldComponent, 'MetaEntityId'),\r\n ],\r\n // Champ de méta-entité (metadata/04-forms/MetaEntityFieldForm.sql)\r\n [MetaEntityKeys.MetaEntityField]: () => [\r\n EntitySections.related<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView>('Champs de formulaire', MetaEntityFormFieldComponent, 'MetaEntityFieldId'),\r\n EntitySections.related<MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationDefinition>('Définition de relation', MetaEntityRelationDefinitionComponent, 'MetaEntityFieldId'),\r\n EntitySections.related<MetaEntityTranslationFilterViewModel, MetaEntityTranslation>('Traduction de méta-entité', MetaEntityTranslationComponent, 'MetaEntityFieldId'),\r\n EntitySections.related<MetaEntityViewFieldFilterViewModel, MetaEntityViewField>('Champ de vue', MetaEntityViewFieldComponent, 'MetaEntityFieldId'),\r\n ],\r\n // Formulaires (metadata/04-forms/MetaEntityFormForm.sql)\r\n [MetaEntityKeys.MetaEntityForm]: () => [\r\n EntitySections.related<MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView>('Sections de formulaire', MetaEntityFormSectionComponent, 'MetaEntityFormId'),\r\n ],\r\n // Sections de formulaire (metadata/04-forms/MetaEntityFormSectionForm.sql)\r\n [MetaEntityKeys.MetaEntityFormSection]: () => [\r\n EntitySections.related<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView>('Champs de formulaire', MetaEntityFormFieldComponent, 'MetaEntityFormSectionId'),\r\n ],\r\n // Relations entre entités (metadata/04-forms/MetaEntityRelationForm.sql)\r\n [MetaEntityKeys.MetaEntityRelation]: () => [\r\n EntitySections.related<MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationDefinition>('Définition de relation', MetaEntityRelationDefinitionComponent, 'MetaEntityRelationId'),\r\n ],\r\n // Champ de vue (metadata/04-forms/MetaEntityViewFieldForm.sql)\r\n [MetaEntityKeys.MetaEntityViewField]: () => [\r\n EntitySections.related<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView>('Champs de formulaire', MetaEntityFormFieldComponent, 'MetaEntityViewFieldId'),\r\n ],\r\n // Définition des paramètres (metadata/04-forms/ParameterForm.sql)\r\n [MetaEntityKeys.Parameter]: () => [\r\n EntitySections.related<ParameterValueViewFilterViewModel, ParameterValueView>('Valeurs des paramètres', ParameterValueComponent, 'ParameterId'),\r\n ],\r\n // Sections de paramètres (metadata/04-forms/ParameterSectionForm.sql)\r\n [MetaEntityKeys.ParameterSection]: () => [\r\n EntitySections.related<ParameterViewFilterViewModel, ParameterView>('Paramètres', ParameterComponent, 'ParameterSectionId'),\r\n ],\r\n // Vues personnalisées (metadata/04-forms/PresentationProfileForm.sql)\r\n [MetaEntityKeys.PresentationProfile]: () => [\r\n EntitySections.related<PresentationProfileItemFilterViewModel, PresentationProfileItemView>('Colonnes de vue', PresentationProfileItemComponent, 'PresentationProfileId'),\r\n ],\r\n // Traductions (metadata/04-forms/ResourceKeyForm.sql)\r\n [MetaEntityKeys.ResourceKey]: () => [\r\n EntitySections.related<ResourceTranslationFilterViewModel, ResourceTranslationView>('Traductions', ResourceTranslationComponent, 'ResourceKeyId'),\r\n ],\r\n // Langues (metadata/04-forms/ResourceLanguageForm.sql)\r\n [MetaEntityKeys.ResourceLanguage]: () => [\r\n EntitySections.related<MetaEntityTranslationFilterViewModel, MetaEntityTranslation>('Traduction de méta-entité', MetaEntityTranslationComponent, 'ResourceLanguageId'),\r\n EntitySections.related<ResourceTranslationFilterViewModel, ResourceTranslationView>('Traductions', ResourceTranslationComponent, 'ResourceLanguageId'),\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","import { ColumnDisplayTypes, PresentationProfileItem } from '@dflat-core/web/meta-model';\r\n\r\n/** Options d'affichage d'une colonne de profil, éditées selon le type d'affichage. */\r\nexport type ColumnDisplayOption =\r\n | 'digits' | 'multiplier' | 'currency' | 'format' | 'nullCaseText' | 'handleError'\r\n | 'enum' | 'width' | 'baseUrl' | 'fixedSize';\r\n\r\n/** Description d'un type d'affichage (EnumColumnDisplayTypes) pour l'éditeur des profils. */\r\nexport interface ColumnDisplayTypeInfo {\r\n type: ColumnDisplayTypes;\r\n /** Libellé complet (liste des types). */\r\n label: string;\r\n /** Libellé court (indicateur de la colonne). */\r\n short: string;\r\n /** Icône Font Awesome 4.7 (sans le préfixe fa-). */\r\n icon: string;\r\n /** Options éditables pour ce type. */\r\n options: ColumnDisplayOption[];\r\n}\r\n\r\nconst COMMON: ColumnDisplayOption[] = ['nullCaseText', 'handleError'];\r\n\r\n/** Types d'affichage, dans l'ordre de la fenêtre d'édition d'une colonne. */\r\nexport const COLUMN_DISPLAY_TYPES: ColumnDisplayTypeInfo[] = [\r\n { type: ColumnDisplayTypes.Text, label: 'Texte', short: 'Texte', icon: 'font', options: ['nullCaseText'] },\r\n { type: ColumnDisplayTypes.Number, label: 'Nombre', short: 'Nombre', icon: 'hashtag', options: ['digits', 'multiplier', ...COMMON] },\r\n { type: ColumnDisplayTypes.Money, label: 'Montant', short: 'Montant', icon: 'eur', options: ['currency', ...COMMON] },\r\n { type: ColumnDisplayTypes.Percent, label: 'Pourcentage', short: '%', icon: 'percent', options: ['digits', 'multiplier', ...COMMON] },\r\n { type: ColumnDisplayTypes.Date, label: 'Date', short: 'Date', icon: 'calendar', options: ['format', 'nullCaseText'] },\r\n { type: ColumnDisplayTypes.DateTime, label: 'Date et heure', short: 'Date/h', icon: 'clock-o', options: ['format', 'nullCaseText'] },\r\n { type: ColumnDisplayTypes.Boolean, label: 'Oui / Non', short: 'Oui/Non', icon: 'check-square-o', options: ['nullCaseText'] },\r\n { type: ColumnDisplayTypes.EnumImage, label: 'Icône du type énuméré', short: 'Icône', icon: 'picture-o', options: ['enum', 'width', 'nullCaseText'] },\r\n { type: ColumnDisplayTypes.WideEnumImage, label: 'Grande icône du type énuméré', short: 'Icône L', icon: 'picture-o', options: ['enum', 'width', 'nullCaseText'] },\r\n { type: ColumnDisplayTypes.ImageFile, label: 'Image (fichier)', short: 'Image', icon: 'file-image-o', options: ['nullCaseText'] },\r\n { type: ColumnDisplayTypes.Base64Image, label: 'Image (base64)', short: 'Image', icon: 'file-image-o', options: ['nullCaseText'] },\r\n { type: ColumnDisplayTypes.Url, label: 'Lien', short: 'Lien', icon: 'link', options: ['baseUrl', 'nullCaseText'] },\r\n { type: ColumnDisplayTypes.FixedSizeInteger, label: 'Entier de taille fixe', short: '0042', icon: 'sort-numeric-asc', options: ['fixedSize', 'nullCaseText'] },\r\n];\r\n\r\n/** Type d'affichage d'un code, ou undefined (colonne sans affichage : affichage par défaut à l'enregistrement). */\r\nexport function getColumnDisplayType(type: number | null | undefined): ColumnDisplayTypeInfo | undefined {\r\n return type === null || type === undefined ? undefined : COLUMN_DISPLAY_TYPES.find(t => t.type === type);\r\n}\r\n\r\n/** Champs d'affichage d'une colonne de profil (type et options). */\r\nexport const COLUMN_DISPLAY_FIELDS: (keyof PresentationProfileItem)[] = [\r\n 'ColumnDisplayType', 'Currency', 'CurrencyPropertyName', 'Multiplier', 'MinIntegerDigits', 'MinFractionDigits',\r\n 'MaxFractionDigits', 'DisplayFormat', 'NullCaseText', 'HandleError', 'DisplayWidth', 'BaseUrl', 'CompletingCharacter',\r\n];\r\n\r\n/** Résumé lisible de l'affichage d'une colonne (infobulle de l'indicateur). */\r\nexport function describeColumnDisplay(item: PresentationProfileItem): string {\r\n const info = getColumnDisplayType(item.ColumnDisplayType);\r\n if (!info) return 'Affichage par défaut (selon le type de la colonne)';\r\n\r\n const parts: string[] = [info.label];\r\n if (info.options.includes('digits') && (item.MinFractionDigits != null || item.MaxFractionDigits != null))\r\n parts.push(`${item.MinFractionDigits ?? 0} à ${item.MaxFractionDigits ?? item.MinFractionDigits ?? 3} décimales`);\r\n if (info.options.includes('multiplier') && item.Multiplier != null && item.Multiplier !== 1)\r\n parts.push(`× ${item.Multiplier}`);\r\n if (info.options.includes('currency'))\r\n parts.push(item.Currency ? `devise ${item.Currency}` : item.CurrencyPropertyName ? `devise de ${item.CurrencyPropertyName}` : 'devise EUR');\r\n if (info.options.includes('format') && item.DisplayFormat)\r\n parts.push(item.DisplayFormat);\r\n if (item.NullCaseText)\r\n parts.push(`vide : « ${item.NullCaseText} »`);\r\n if (item.HandleError)\r\n parts.push('vide en évidence');\r\n return parts.join(' — ');\r\n}\r\n","import { CommonModule, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, LOCALE_ID, OnInit, Output } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { ColumnDisplayTypes, PresentationProfileItem } from '@dflat-core/web/meta-model';\r\n\r\nimport { COLUMN_DISPLAY_FIELDS, COLUMN_DISPLAY_TYPES, ColumnDisplayOption, ColumnDisplayTypeInfo, getColumnDisplayType } from '../column-display-types';\r\n\r\n/** Colonne proposée comme colonne de la devise d'un montant. */\r\nexport interface ColumnDisplayChoice {\r\n key: string;\r\n label: string;\r\n}\r\n\r\n/**\r\n * Fenêtre d'édition d'une colonne d'un profil de présentation (éditeur des profils) : libellé,\r\n * type d'affichage et options selon le type (décimales, multiplicateur, devise, format de date,\r\n * texte si vide...), drapeaux Verrouillée / Autorisée, avec un aperçu. « Appliquer » renvoie la\r\n * colonne modifiée (événement confirmed) ; l'éditeur la publie dans le profil, enregistré par\r\n * l'action « Enregistrer » de l'écran.\r\n */\r\n@Component({\r\n selector: 'alg-column-display-dialog',\r\n standalone: true,\r\n imports: [CommonModule, FormsModule],\r\n templateUrl: './column-display-dialog.component.html',\r\n styleUrls: ['./column-display-dialog.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n})\r\nexport class ColumnDisplayDialogComponent implements OnInit {\r\n /** Colonne éditée (copie : la colonne du profil ne change qu'à « Appliquer »). */\r\n @Input() item!: PresentationProfileItem;\r\n /** Libellé naturel de la colonne (libellé du champ de vue). */\r\n @Input() naturalLabel = '';\r\n /** Type d'affichage par défaut de la colonne, selon son type SQL. */\r\n @Input() defaultDisplayType: number | null = null;\r\n /** Table du type énuméré de la colonne (clé étrangère vers Enum<X>), s'il y en a un. */\r\n @Input() enumEntityName: string | null = null;\r\n /** Colonnes de la table, proposées comme colonne de la devise. */\r\n @Input() columns: ColumnDisplayChoice[] = [];\r\n /** Profil d'un rôle ou d'une source de données : le drapeau « Autorisée » est proposé. */\r\n @Input() isPerimeter = false;\r\n @Input() readonly = false;\r\n\r\n @Output() readonly confirmed = new EventEmitter<PresentationProfileItem>();\r\n @Output() readonly cancelled = new EventEmitter<void>();\r\n\r\n readonly types = COLUMN_DISPLAY_TYPES;\r\n /** Devise d'un montant : fixe, ou lue dans une colonne de la ligne. */\r\n currencyMode: 'fixed' | 'column' = 'fixed';\r\n model: PresentationProfileItem = {};\r\n\r\n readonly dateFormats = ['dd/MM/yyyy', 'dd/MM/yy', 'EEEE d MMMM yyyy', 'MMMM yyyy'];\r\n readonly dateTimeFormats = ['dd/MM/yyyy HH:mm:ss', 'dd/MM/yyyy HH:mm', 'HH:mm'];\r\n\r\n constructor(@Inject(LOCALE_ID) private readonly locale: string) {}\r\n\r\n ngOnInit(): void {\r\n this.model = { ...this.item };\r\n if (this.model.ColumnDisplayType === null || this.model.ColumnDisplayType === undefined)\r\n this.model.ColumnDisplayType = this.defaultDisplayType ?? ColumnDisplayTypes.Text;\r\n this.currencyMode = this.model.CurrencyPropertyName && !this.model.Currency ? 'column' : 'fixed';\r\n }\r\n\r\n get selectedType(): ColumnDisplayTypeInfo | undefined { return getColumnDisplayType(this.model.ColumnDisplayType); }\r\n\r\n has(option: ColumnDisplayOption): boolean { return !!this.selectedType?.options.includes(option); }\r\n\r\n isDefault(type: ColumnDisplayTypeInfo): boolean { return type.type === this.defaultDisplayType; }\r\n\r\n selectType(type: ColumnDisplayTypeInfo): void {\r\n if (this.readonly) return;\r\n this.model.ColumnDisplayType = type.type;\r\n }\r\n\r\n get isPercent(): boolean { return this.model.ColumnDisplayType === ColumnDisplayTypes.Percent; }\r\n\r\n get isDateTime(): boolean { return this.model.ColumnDisplayType === ColumnDisplayTypes.DateTime; }\r\n\r\n /** Format de date proposé par défaut (celui de la grille). */\r\n get defaultDateFormat(): string { return this.isDateTime ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy'; }\r\n\r\n /** Aperçu d'une valeur exemple avec l'affichage choisi (mêmes formats que la grille). */\r\n get preview(): string {\r\n try {\r\n const m = this.model;\r\n const multiplier = m.Multiplier ?? 1;\r\n const digits = this.digitsFormat;\r\n switch (m.ColumnDisplayType) {\r\n case ColumnDisplayTypes.Number:\r\n return formatNumber(1234.5678 * multiplier, this.locale, digits ?? '1.0-3');\r\n case ColumnDisplayTypes.Percent:\r\n return formatPercent((multiplier !== 1 ? 12.345 : 0.12345) * multiplier, this.locale, digits ?? '1.0-3');\r\n case ColumnDisplayTypes.Money: {\r\n const code = this.currencyMode === 'fixed' ? (m.Currency || 'EUR') : 'EUR';\r\n return formatCurrency(1234.5, this.locale, getCurrencySymbol(code, 'wide', this.locale), code)\r\n + (this.currencyMode === 'column' && m.CurrencyPropertyName ? ` (devise de ${m.CurrencyPropertyName})` : '');\r\n }\r\n case ColumnDisplayTypes.Date:\r\n case ColumnDisplayTypes.DateTime:\r\n return formatDate(new Date(), m.DisplayFormat || this.defaultDateFormat, this.locale);\r\n case ColumnDisplayTypes.Boolean:\r\n return 'OUI / NON';\r\n case ColumnDisplayTypes.FixedSizeInteger:\r\n return '42'.padStart(Math.max(m.DisplayWidth ?? 0, 2), m.CompletingCharacter || '0');\r\n case ColumnDisplayTypes.Url:\r\n return `${m.BaseUrl || '/'}/42`.replace('//', '/');\r\n case ColumnDisplayTypes.EnumImage:\r\n case ColumnDisplayTypes.WideEnumImage:\r\n return this.enumEntityName ? `Icône de la valeur (${this.enumEntityName})` : 'Icône de la valeur';\r\n case ColumnDisplayTypes.ImageFile:\r\n case ColumnDisplayTypes.Base64Image:\r\n return 'Image';\r\n default:\r\n return 'Texte de la colonne';\r\n }\r\n } catch {\r\n return 'Format invalide';\r\n }\r\n }\r\n\r\n /** Format numérique des options de chiffres (minEntiers.minDécimales-maxDécimales), ou null. */\r\n private get digitsFormat(): string | null {\r\n const m = this.model;\r\n if (m.MinIntegerDigits == null && m.MinFractionDigits == null && m.MaxFractionDigits == null) return null;\r\n const min = m.MinFractionDigits ?? 0;\r\n const max = Math.max(min, m.MaxFractionDigits ?? Math.max(min, 3));\r\n return `${m.MinIntegerDigits ?? 1}.${min}-${max}`;\r\n }\r\n\r\n apply(): void {\r\n if (this.readonly) { this.cancel(); return; }\r\n const result: PresentationProfileItem = { ...this.item, Label: this.model.Label || null, IsLocked: this.model.IsLocked, IsAllowed: this.model.IsAllowed };\r\n // Seules les options du type choisi sont gardées.\r\n COLUMN_DISPLAY_FIELDS.forEach(field => (result as any)[field] = null);\r\n result.ColumnDisplayType = this.model.ColumnDisplayType;\r\n const keep = (field: keyof PresentationProfileItem) => (result as any)[field] = this.emptyToNull((this.model as any)[field]);\r\n if (this.has('digits')) { keep('MinIntegerDigits'); keep('MinFractionDigits'); keep('MaxFractionDigits'); }\r\n if (this.has('multiplier')) keep('Multiplier');\r\n if (this.has('currency')) {\r\n if (this.currencyMode === 'fixed') result.Currency = this.emptyToNull(this.model.Currency?.trim().toUpperCase());\r\n else keep('CurrencyPropertyName');\r\n }\r\n if (this.has('format')) keep('DisplayFormat');\r\n if (this.has('nullCaseText')) keep('NullCaseText');\r\n if (this.has('handleError')) result.HandleError = this.model.HandleError ? true : null;\r\n if (this.has('width') || this.has('fixedSize')) keep('DisplayWidth');\r\n if (this.has('fixedSize')) keep('CompletingCharacter');\r\n if (this.has('baseUrl')) keep('BaseUrl');\r\n this.confirmed.emit(result);\r\n }\r\n\r\n cancel(): void { this.cancelled.emit(); }\r\n\r\n private emptyToNull<T>(value: T): T | null {\r\n return value === undefined || value === null || (value as any) === '' ? null : value;\r\n }\r\n}\r\n","<div class=\"cdd-header\">\r\n <h4 class=\"cdd-title\">\r\n Colonne <span class=\"cdd-title__key\">{{ item.ColumnKey }}</span>\r\n </h4>\r\n <button class=\"cdd-icon-btn\" type=\"button\" (click)=\"cancel()\" aria-label=\"Fermer\">&#x2715;</button>\r\n</div>\r\n\r\n<div class=\"cdd-body\">\r\n <!-- Libellé -->\r\n <div class=\"cdd-field\">\r\n <label class=\"cdd-label\" for=\"cdd-label\">Libellé</label>\r\n <input id=\"cdd-label\" class=\"cdd-input\" type=\"text\" [(ngModel)]=\"model.Label\" [placeholder]=\"naturalLabel || item.ColumnKey\" [disabled]=\"readonly\">\r\n <span class=\"cdd-hint\">Vide : libellé de la colonne ({{ naturalLabel || item.ColumnKey }}).</span>\r\n </div>\r\n\r\n <!-- Type d'affichage -->\r\n <div class=\"cdd-field\">\r\n <span class=\"cdd-label\">Affichage</span>\r\n <div class=\"cdd-types\" role=\"radiogroup\" aria-label=\"Type d'affichage\">\r\n @for (type of types; track type.type) {\r\n <button type=\"button\" class=\"cdd-type\" role=\"radio\"\r\n [class.cdd-type--active]=\"model.ColumnDisplayType === type.type\"\r\n [attr.aria-checked]=\"model.ColumnDisplayType === type.type\"\r\n [disabled]=\"readonly\"\r\n (click)=\"selectType(type)\">\r\n <i class=\"fa fa-{{ type.icon }}\"></i>\r\n <span class=\"cdd-type__label\">{{ type.label }}</span>\r\n @if (isDefault(type)) {\r\n <span class=\"cdd-type__default\" title=\"Affichage par défaut selon le type de la colonne\">défaut</span>\r\n }\r\n </button>\r\n }\r\n </div>\r\n </div>\r\n\r\n <!-- Options du type -->\r\n <div class=\"cdd-options\">\r\n @if (has('digits')) {\r\n <div class=\"cdd-row\">\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-minint\">Chiffres entiers min.</label>\r\n <input id=\"cdd-minint\" class=\"cdd-input\" type=\"number\" min=\"0\" [(ngModel)]=\"model.MinIntegerDigits\" placeholder=\"1\" [disabled]=\"readonly\">\r\n </div>\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-minfrac\">Décimales min.</label>\r\n <input id=\"cdd-minfrac\" class=\"cdd-input\" type=\"number\" min=\"0\" [(ngModel)]=\"model.MinFractionDigits\" placeholder=\"0\" [disabled]=\"readonly\">\r\n </div>\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-maxfrac\">Décimales max.</label>\r\n <input id=\"cdd-maxfrac\" class=\"cdd-input\" type=\"number\" min=\"0\" [(ngModel)]=\"model.MaxFractionDigits\" placeholder=\"3\" [disabled]=\"readonly\">\r\n </div>\r\n @if (has('multiplier')) {\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-mult\">Multiplicateur</label>\r\n <input id=\"cdd-mult\" class=\"cdd-input\" type=\"number\" step=\"any\" [(ngModel)]=\"model.Multiplier\" placeholder=\"1\" [disabled]=\"readonly\">\r\n </div>\r\n }\r\n </div>\r\n @if (isPercent) {\r\n <span class=\"cdd-hint\">Valeur enregistrée en pourcentage (12,5 pour 12,5 %) : multiplicateur 0,01.</span>\r\n }\r\n }\r\n\r\n @if (has('currency')) {\r\n <div class=\"cdd-field\">\r\n <span class=\"cdd-label\">Devise</span>\r\n <div class=\"cdd-choice\">\r\n <label><input type=\"radio\" name=\"cdd-currency\" value=\"fixed\" [(ngModel)]=\"currencyMode\" [disabled]=\"readonly\"> Devise fixe</label>\r\n <input class=\"cdd-input cdd-input--currency\" type=\"text\" maxlength=\"3\" [(ngModel)]=\"model.Currency\" placeholder=\"EUR\"\r\n [disabled]=\"readonly || currencyMode !== 'fixed'\" aria-label=\"Code de la devise\">\r\n </div>\r\n <div class=\"cdd-choice\">\r\n <label><input type=\"radio\" name=\"cdd-currency\" value=\"column\" [(ngModel)]=\"currencyMode\" [disabled]=\"readonly\"> Devise de la ligne, colonne</label>\r\n <select class=\"cdd-input\" [(ngModel)]=\"model.CurrencyPropertyName\" [disabled]=\"readonly || currencyMode !== 'column'\" aria-label=\"Colonne de la devise\">\r\n <option [ngValue]=\"null\">—</option>\r\n @for (column of columns; track column.key) {\r\n <option [ngValue]=\"column.key\">{{ column.label }} ({{ column.key }})</option>\r\n }\r\n </select>\r\n </div>\r\n <span class=\"cdd-hint\">Sans devise : EUR.</span>\r\n </div>\r\n }\r\n\r\n @if (has('format')) {\r\n <div class=\"cdd-field\">\r\n <label class=\"cdd-label\" for=\"cdd-format\">Format</label>\r\n <input id=\"cdd-format\" class=\"cdd-input\" type=\"text\" [(ngModel)]=\"model.DisplayFormat\" [placeholder]=\"defaultDateFormat\" [disabled]=\"readonly\">\r\n <div class=\"cdd-chips\">\r\n @for (format of (isDateTime ? dateTimeFormats : dateFormats); track format) {\r\n <button type=\"button\" class=\"cdd-chip\" [disabled]=\"readonly\" (click)=\"model.DisplayFormat = format\">{{ format }}</button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (has('enum')) {\r\n <div class=\"cdd-field\">\r\n <span class=\"cdd-label\">Type énuméré</span>\r\n @if (enumEntityName) {\r\n <span class=\"cdd-value\">{{ enumEntityName }}</span>\r\n <span class=\"cdd-hint\">Icônes simg/&lt;Module&gt;/&lt;Type&gt;/&lt;Valeur&gt;.svg ; infobulle : libellé de la valeur.</span>\r\n } @else {\r\n <span class=\"cdd-hint cdd-hint--warn\">Pas de clé étrangère vers une table Enum… : le type vient de l'attribut Enum de la propriété ; sans lui, la colonne s'affiche en texte.</span>\r\n }\r\n </div>\r\n }\r\n\r\n @if (has('width')) {\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-width\">Largeur (px)</label>\r\n <input id=\"cdd-width\" class=\"cdd-input\" type=\"number\" min=\"0\" [(ngModel)]=\"model.DisplayWidth\" [disabled]=\"readonly\">\r\n </div>\r\n }\r\n\r\n @if (has('fixedSize')) {\r\n <div class=\"cdd-row\">\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-size\">Taille</label>\r\n <input id=\"cdd-size\" class=\"cdd-input\" type=\"number\" min=\"0\" [(ngModel)]=\"model.DisplayWidth\" placeholder=\"10\" [disabled]=\"readonly\">\r\n </div>\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-char\">Caractère de complément</label>\r\n <input id=\"cdd-char\" class=\"cdd-input\" type=\"text\" maxlength=\"1\" [(ngModel)]=\"model.CompletingCharacter\" placeholder=\"0\" [disabled]=\"readonly\">\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (has('baseUrl')) {\r\n <div class=\"cdd-field\">\r\n <label class=\"cdd-label\" for=\"cdd-url\">Adresse de base</label>\r\n <input id=\"cdd-url\" class=\"cdd-input\" type=\"text\" [(ngModel)]=\"model.BaseUrl\" placeholder=\"/\" [disabled]=\"readonly\">\r\n </div>\r\n }\r\n\r\n @if (has('nullCaseText') || has('handleError')) {\r\n <div class=\"cdd-row\">\r\n @if (has('nullCaseText')) {\r\n <div class=\"cdd-field\">\r\n <label class=\"cdd-label\" for=\"cdd-null\">Texte si vide</label>\r\n <input id=\"cdd-null\" class=\"cdd-input\" type=\"text\" maxlength=\"100\" [(ngModel)]=\"model.NullCaseText\" placeholder=\"(rien)\" [disabled]=\"readonly\">\r\n </div>\r\n }\r\n @if (has('handleError')) {\r\n <label class=\"cdd-check\">\r\n <input type=\"checkbox\" [(ngModel)]=\"model.HandleError\" [disabled]=\"readonly\"> Valeur vide en évidence (rouge)\r\n </label>\r\n }\r\n </div>\r\n }\r\n </div>\r\n\r\n <!-- Aperçu -->\r\n <div class=\"cdd-preview\">\r\n <span class=\"cdd-label\">Aperçu</span>\r\n <span class=\"cdd-preview__value\">{{ preview }}</span>\r\n </div>\r\n\r\n <!-- Drapeaux -->\r\n <div class=\"cdd-row cdd-flags\">\r\n <label class=\"cdd-check\"><input type=\"checkbox\" [(ngModel)]=\"model.IsLocked\" [disabled]=\"readonly\"> Verrouillée (ne peut pas être retirée)</label>\r\n @if (isPerimeter) {\r\n <label class=\"cdd-check\"><input type=\"checkbox\" [(ngModel)]=\"model.IsAllowed\" [disabled]=\"readonly\"> Autorisée</label>\r\n }\r\n </div>\r\n</div>\r\n\r\n<div class=\"cdd-footer\">\r\n <button class=\"cdd-btn cdd-btn--secondary\" type=\"button\" (click)=\"cancel()\">Annuler</button>\r\n @if (!readonly) {\r\n <button class=\"cdd-btn cdd-btn--primary\" type=\"button\" (click)=\"apply()\">Appliquer</button>\r\n }\r\n</div>\r\n","import { ColumnDescriptor } from '@dflat-core/web/core-model';\r\nimport type { FilterEditorColumn, PpViewQueries } from '@dflat-core/web/core-ux';\r\nimport { PresentationContext, PresentationProfile, PresentationProfileItem, PresentationProfilePurposes, PresentationProfileScopes } from '@dflat-core/web/meta-model';\r\n\r\nexport const PP_GRP_STANDARD = 'standard';\r\nexport const PP_GRP_CUSTOM = 'custom';\r\n\r\nexport interface PpConfig {\r\n metaEntityKey: string;\r\n title?: string;\r\n purpose?: PresentationProfilePurposes;\r\n embedded?: boolean;\r\n /** Vue choisie à l'ouverture (à défaut, la vue affichée par la grille). */\r\n viewId?: number | null;\r\n supplierId?: number | null;\r\n roleId?: number | null;\r\n /** Onglet ouvert : colonnes (par défaut), ou filtres et tri. */\r\n tab?: 'columns' | 'filters';\r\n /** Colonnes de la grille, pour le filtre (types et valeurs des types énumérés). */\r\n filterColumns?: FilterEditorColumn[];\r\n /** Champs du FilterPanel de la grille, dont les valeurs s'enregistrent avec la vue (onglet « Filtres »). */\r\n panelFields?: FilterEditorColumn[];\r\n /** Tri et filtre en cours dans la grille (FilterPanel compris) : ceux d'une nouvelle vue copiée de la vue affichée. */\r\n gridQueries?: PpViewQueries;\r\n}\r\n\r\nexport interface PpGroup {\r\n id: string;\r\n label: string;\r\n isCustom: boolean;\r\n}\r\n\r\nexport interface PpResult {\r\n purpose: PresentationProfilePurposes;\r\n profileId: number | null;\r\n columns: PresentationProfileItem[];\r\n}\r\n\r\nexport interface PpExportSplit {\r\n columns: string[];\r\n customFieldIds: number[];\r\n}\r\n\r\n\r\nexport class PresentationProfileTransformer {\r\n /** Display types rendered as an image by the data grid (Display.Type_IMG, Type_WIDE_IMG, Type_IMG_FILE). */\r\n private static readonly IMAGE_DISPLAY_TYPES = ['img', 'wide-img', 'img-file'];\r\n\r\n /**\r\n * Build the display groups from a catalog: a \"standard\" group + one group per custom-field\r\n * group (by GroupId/GroupName provided by the backend), falling back to a single \"Attributs\".\r\n */\r\n static buildGroups(catalog: PresentationProfileItem[]): PpGroup[] {\r\n const groups: PpGroup[] = [];\r\n if (catalog.some(i => i.ColumnSourceType !== 2)) groups.push({ id: PP_GRP_STANDARD, label: 'Colonnes standard', isCustom: false });\r\n\r\n const seen = new Map<string, string>();\r\n for (const i of catalog) {\r\n if (i.ColumnSourceType !== 2) continue;\r\n const id = i.GroupId != null ? `cf-${i.GroupId}` : PP_GRP_CUSTOM;\r\n if (!seen.has(id)) seen.set(id, i.GroupName ?? 'Attributs');\r\n }\r\n seen.forEach((label, id) => groups.push({ id, label, isCustom: true }));\r\n return groups;\r\n }\r\n\r\n /**\r\n * Converts resolved PresentationProfileItem[] into ColumnDescriptor[] for the data grid.\r\n * Standard columns are matched from the backend descriptors by Property (ColumnKey) and keep their\r\n * display (type and options of the profile column, see SystemBaseController.GetGridColumns);\r\n * custom-field columns get a synthetic text descriptor.\r\n * item.Label is the custom override saved with the profile; it is null when the column keeps its\r\n * natural label, which is then the backend descriptor's Name (the column key only as a last resort).\r\n */\r\n static buildDescriptors(items: PresentationProfileItem[], backendDescriptors: ColumnDescriptor[]): ColumnDescriptor[] {\r\n const byProperty = new Map(backendDescriptors.map(d => [d.Property, d]));\r\n return items\r\n .filter(i => !!i.ColumnKey)\r\n .map(i => {\r\n const template = byProperty.get(i.ColumnKey!);\r\n const displayLabel = i.Label || template?.Name || i.ColumnKey!;\r\n if ((i.ColumnSourceType ?? 0) !== 2) {\r\n if (!template) return null;\r\n // Image column (enum icon, row image): the header stays empty; the label is only\r\n // used to pick columns.\r\n const isImage = PresentationProfileTransformer.IMAGE_DISPLAY_TYPES.includes(template.Display?.type ?? '');\r\n return {\r\n ...template,\r\n Name: isImage ? '' : displayLabel,\r\n FieldName: displayLabel,\r\n Display: template.Display ?? { type: 'text' },\r\n } as ColumnDescriptor;\r\n }\r\n return {\r\n Property: i.ColumnKey,\r\n Name: displayLabel,\r\n FieldName: displayLabel,\r\n Display: { type: 'text' },\r\n } as ColumnDescriptor;\r\n })\r\n .filter((d): d is ColumnDescriptor => d !== null);\r\n }\r\n\r\n /** User profile selection → unified PresentationContext for savePresentationProfile (Profile carries Items). */\r\n static toUserPreferenceContext(\r\n items: PresentationProfileItem[],\r\n key: string,\r\n purpose: number,\r\n label: string | null = null,\r\n profile: PresentationProfile | null = null,\r\n ): PresentationContext {\r\n return {\r\n IsUserProfile: true,\r\n Profile: {\r\n ...(profile ?? {}),\r\n Label: label ?? profile?.Label,\r\n PresentationProfilePurpose: purpose,\r\n MetaEntityKey: key,\r\n PresentationProfileScope: PresentationProfileScopes.User,\r\n Items: PresentationProfileTransformer.toSaveItems(items),\r\n } as PresentationProfile,\r\n } as PresentationContext;\r\n }\r\n\r\n /** Admin selection → unified PresentationContext for savePresentationProfile (Profile carries Items). */\r\n static toAdminConfigContext(items: PresentationProfileItem[], profile: PresentationProfile): PresentationContext {\r\n return {\r\n IsUserProfile: false,\r\n Profile: { ...profile, Items: PresentationProfileTransformer.toSaveItems(items) } as PresentationProfile,\r\n } as PresentationContext;\r\n }\r\n\r\n /** Normalises selected columns into persistable items (order = position). */\r\n private static toSaveItems(items: PresentationProfileItem[]): PresentationProfileItem[] {\r\n return items.map((item, i) => ({\r\n ColumnKey: item.ColumnKey,\r\n Label: item.Label || null,\r\n OrderNumber: i + 1,\r\n IsLocked: item.IsLocked ?? false,\r\n IsAllowed: item.IsAllowed ?? null,\r\n ColumnSourceType: item.ColumnSourceType ?? 1,\r\n CustomFieldId: item.CustomFieldId ?? null,\r\n CardSlot: item.CardSlot ?? null,\r\n ...PresentationProfileTransformer.displayOf(item),\r\n } as PresentationProfileItem));\r\n }\r\n\r\n /** Display settings of a column (type and options), as saved with the profile. */\r\n static displayOf(item: PresentationProfileItem): Partial<PresentationProfileItem> {\r\n return {\r\n ColumnDisplayType: item.ColumnDisplayType ?? null,\r\n Currency: item.Currency ?? null,\r\n CurrencyPropertyName: item.CurrencyPropertyName ?? null,\r\n Multiplier: item.Multiplier ?? null,\r\n MinIntegerDigits: item.MinIntegerDigits ?? null,\r\n MinFractionDigits: item.MinFractionDigits ?? null,\r\n MaxFractionDigits: item.MaxFractionDigits ?? null,\r\n DisplayFormat: item.DisplayFormat ?? null,\r\n NullCaseText: item.NullCaseText ?? null,\r\n HandleError: item.HandleError ?? null,\r\n DisplayWidth: item.DisplayWidth ?? null,\r\n BaseUrl: item.BaseUrl ?? null,\r\n CompletingCharacter: item.CompletingCharacter ?? null,\r\n } as Partial<PresentationProfileItem>;\r\n }\r\n\r\n /** Split selected items into standard column keys and custom-field ids (for export payloads). */\r\n static splitForExport(items: PresentationProfileItem[]): PpExportSplit {\r\n const cols: string[] = [];\r\n const ids: number[] = [];\r\n for (const item of items) {\r\n if ((item.ColumnSourceType ?? 0) === 2 && item.CustomFieldId != null) ids.push(item.CustomFieldId);\r\n else if (item.ColumnKey) cols.push(item.ColumnKey);\r\n }\r\n return { columns: cols, customFieldIds: ids };\r\n }\r\n}\r\n","import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';\r\nimport { ChangeDetectionStrategy, Component, DoCheck, Input, OnInit, TemplateRef, ViewEncapsulation } from '@angular/core';\r\nimport { ConditionalResults, FieldDescriptor, PropertyEditorEvent, Section } from '@dflat-core/web/core-model';\r\nimport {\r\n ApplicationService, BaseEntityEditor, FilterEditorColumn, FilterEditorSort, parseViewQuery, toViewQuery, ValidationService,\r\n ViewFilterGroup,\r\n} from '@dflat-core/web/core-ux';\r\nimport { PresentationProfileItemDataService } from '@dflat-core/web/meta-data';\r\nimport {\r\n MetaEntity, MetaEntityTypes, PresentationProfileFilterViewModel, PresentationProfileItem, PresentationProfileScopes,\r\n PresentationProfileView,\r\n} from '@dflat-core/web/meta-model';\r\nimport { DflatModalService } from '@dflat-core/web/core-ux';\r\nimport { combineLatest, of, Subject } from 'rxjs';\r\nimport { catchError, map, switchMap, take, takeUntil } from 'rxjs/operators';\r\nimport { ColumnDisplayDialogComponent } from '../presentation-profile/column-display-dialog/column-display-dialog.component';\r\nimport { ColumnDisplayTypeInfo, describeColumnDisplay, getColumnDisplayType } from '../presentation-profile/column-display-types';\r\nimport { PresentationProfileTransformer } from '../presentation-profile/presentation-profile-transformer';\r\n\r\n/**\r\n * Éditeur spécifique des profils de présentation, affiché par l'écran des profils\r\n * (PresentationProfileScreenComponent) à la place du formulaire standard : onglet « Propriétés »\r\n * (formulaire par défaut de l'entité : table, libellé, finalité, portée, puis utilisateur, source de\r\n * données ou rôle selon la portée ; avec les composants des formulaires) et onglet « Colonnes »\r\n * (colonnes affichées, ordre, libellés et affichage : un indicateur du type d'affichage et un bouton\r\n * qui ouvre la fenêtre d'édition de la colonne), puis onglets « Tri » et « Filtres » (tri et filtre\r\n * enregistrés dans la vue, SortQuery et FilterQuery). L'enregistrement passe par l'action\r\n * « Enregistrer » de l'écran (ou « Appliquer » de la fenêtre des vues) : les colonnes modifiées sont\r\n * publiées dans <c>Items</c> du profil, le tri et le filtre dans <c>SortQuery</c> et <c>FilterQuery</c>.\r\n */\r\n@Component({\r\n selector: 'alg-presentation-profile-editor',\r\n templateUrl: './presentation-profile-editor.component.html',\r\n styleUrls: [\r\n '../presentation-profile/presentation-profile-column-grid/presentation-profile-column.component.scss',\r\n './presentation-profile-editor.component.scss',\r\n ],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class PresentationProfileEditorComponent extends BaseEntityEditor<PresentationProfileView> implements OnInit, DoCheck {\r\n\r\n /** Onglet affiché : 0 « Propriétés », 1 « Colonnes », 2 « Tri », 3 « Filtres », 4 « Carte ». */\r\n activeTab: number = 0;\r\n\r\n /**\r\n * Contenu de l'onglet « Carte » (carte de la vue Grille), donné par la fenêtre des vues d'une grille,\r\n * qui l'enregistre avec la vue ; sans contenu, pas d'onglet « Carte ».\r\n */\r\n @Input() cardTemplate: TemplateRef<unknown> | null = null;\r\n\r\n /**\r\n * Champs du FilterPanel de la grille (fenêtre des vues d'une grille) : leurs valeurs s'enregistrent\r\n * avec le filtre de la vue (onglet « Filtres ») ; sans eux, les valeurs enregistrées sont gardées.\r\n */\r\n @Input() panelFields: FilterEditorColumn[] = [];\r\n\r\n /** Onglets affichés, dans l'ordre (numéros d'activeTab). */\r\n get visibleTabs(): number[] {\r\n return [\r\n ...(this.showProperties ? [0] : []), 1, 2,\r\n ...(this.isDefaultView ? [] : [3]),\r\n ...(this.cardTemplate ? [4] : []),\r\n ];\r\n }\r\n\r\n /** Onglet choisi par son rang parmi les onglets affichés. */\r\n selectTab(index: number): void {\r\n this.activeTab = this.visibleTabs[index] ?? 1;\r\n }\r\n\r\n /** Onglet affiché, ou « Colonnes » si l'onglet choisi n'est plus proposé (« Filtres » d'une vue par défaut). */\r\n get shownTab(): number {\r\n return this.visibleTabs.includes(this.activeTab) ? this.activeTab : 1;\r\n }\r\n\r\n /**\r\n * Onglet « Propriétés » affiché : masqué dans la fenêtre des vues d'une grille, où la table, la finalité\r\n * et la portée sont celles de la grille et la vue se choisit dans la liste de gauche.\r\n */\r\n @Input() set showProperties(value: boolean) {\r\n this._showProperties = value !== false;\r\n if (!this._showProperties && this.activeTab === 0)\r\n this.activeTab = 1;\r\n }\r\n get showProperties(): boolean { return this._showProperties; }\r\n private _showProperties = true;\r\n\r\n /** Tri de la vue (onglet « Tri »), modifié en place par l'éditeur des filtres. */\r\n viewSort: FilterEditorSort[] = [];\r\n /** Filtre de la vue (onglet « Filtres »), modifié en place par l'éditeur des filtres. */\r\n viewFilter: ViewFilterGroup = { Logic: 'and', Conditions: [], Groups: [] };\r\n /** Colonnes proposées au tri et au filtre : catalogue de la table, type d'après l'affichage. */\r\n filterColumns: FilterEditorColumn[] = [];\r\n /** Tri et filtre déjà publiés (JSON) : repère des changements faits dans les onglets. */\r\n private publishedQueries = '';\r\n /** Profil dont les colonnes sont chargées : les onglets ne s'affichent que pour lui. */\r\n loadedEntity: PresentationProfileView = undefined;\r\n isLoading = false;\r\n\r\n /** Colonnes de la table (catalogue). */\r\n allItems: PresentationProfileItem[] = [];\r\n /** Colonnes disponibles : celles du catalogue qui ne sont pas affichées, filtrées par la recherche. */\r\n filteredItems: PresentationProfileItem[] = [];\r\n /** Colonnes affichées, dans l'ordre. */\r\n orderedSelection: PresentationProfileItem[] = [];\r\n selectedIds = new Set<string>();\r\n searchText = '';\r\n naturalLabelByKey = new Map<string, string>();\r\n /** Colonne du catalogue par clé : affichage par défaut et type énuméré de la colonne. */\r\n private catalogByKey = new Map<string, PresentationProfileItem>();\r\n\r\n /**\r\n * Champs qui se choisissent à la création du profil et ne se modifient plus ensuite : ils\r\n * désignent le profil (table, finalité, portée). Utilisateur et rôles : onglet « Affectations ».\r\n */\r\n private static readonly frozenFields = ['MetaEntityKey', 'PresentationProfilePurpose', 'PresentationProfileScope'];\r\n /** Champs dont le changement demande de relire le catalogue des colonnes. */\r\n private static readonly catalogFields = ['MetaEntityKey', 'PresentationProfileScope', 'RoleId'];\r\n\r\n /** Profils dont il faut charger les colonnes : seul le dernier demandé est gardé. */\r\n private load$ = new Subject<PresentationProfileView>();\r\n\r\n get isPerimeter(): boolean {\r\n const scope = this.current?.PresentationProfileScope;\r\n return scope === PresentationProfileScopes.Role;\r\n }\r\n get selectedCount(): number { return this.orderedSelection.length; }\r\n\r\n /** Vue par défaut (portée Default) : pas d'onglet « Filtres », son filtre s'appliquerait à tous les utilisateurs. */\r\n get isDefaultView(): boolean {\r\n const scope = this.current?.PresentationProfileScope;\r\n return scope === undefined || scope === null || scope === PresentationProfileScopes.Default;\r\n }\r\n\r\n /** Dernier état du profil en cours d'édition : modifications non enregistrées comprises. */\r\n private get current(): PresentationProfileView {\r\n if (!this.entity) return undefined;\r\n return this.facade?.change.getModified(this.entity.Id) ?? this.entity;\r\n }\r\n\r\n constructor(app: ApplicationService, validationService: ValidationService,\r\n private itemData: PresentationProfileItemDataService,\r\n private modalService: DflatModalService) {\r\n super(app, validationService);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.load$.pipe(\r\n switchMap(entity => this.loadColumns$(entity).pipe(\r\n map(([catalog, items]) => ({ entity, catalog, items })),\r\n catchError(() => of(undefined)))),\r\n takeUntil(this.destroy$)\r\n ).subscribe(loaded => {\r\n this.isLoading = false;\r\n if (!loaded || loaded.entity.Id !== this.entity?.Id)\r\n return;\r\n this.showColumns(loaded.catalog, loaded.items);\r\n this.loadedEntity = this.entity;\r\n });\r\n\r\n super.ngOnInit();\r\n }\r\n\r\n /**\r\n * Champs du formulaire par défaut des profils ; la liste des entités propose les tables et les vues :\r\n * un écran servi par une vue (&lt;Table&gt;View...) a ses profils déclarés sur cette vue.\r\n */\r\n protected alterSections(sections: Section[]): Section[] {\r\n return sections.map(section => ({\r\n ...section,\r\n FieldViewModels: (section.FieldViewModels ?? []).map(field => {\r\n if (field.PropertyName !== 'MetaEntityKey' || !Array.isArray(field.Data))\r\n return field;\r\n return {\r\n ...field, Data: field.Data.filter((e: MetaEntity) => e.MetaEntityType === undefined\r\n || e.MetaEntityType === MetaEntityTypes.Table || e.MetaEntityType === MetaEntityTypes.SystemView)\r\n };\r\n })\r\n }));\r\n }\r\n\r\n /**\r\n * Champ masqué selon la valeur du champ dont il dépend (formulaire en base : le champ\r\n * Utilisateur, Source de données ou Rôle ne s'affiche que pour sa portée).\r\n */\r\n isFieldHidden(field: FieldDescriptor): boolean {\r\n if (field.IsHidden) return true;\r\n if (!field.IsConditional || field.ConditionalResult !== ConditionalResults.Hide || !field.ConditioningField) return false;\r\n const value = this.form.get(field.ConditioningField)?.value ?? this.current?.[field.ConditioningField];\r\n // Sans portée choisie, aucun des champs qui en dépendent n'est affiché.\r\n return value === null || value === undefined || (field.ConditioningFieldValue ?? []).includes(Number(value));\r\n }\r\n\r\n /** Champ en lecture seule : celui du formulaire, ou un champ d'identité d'un profil déjà créé. */\r\n isFieldReadonly(field: FieldDescriptor): boolean {\r\n return this.readonly || !!field.ReadOnly\r\n || (this.entity?.Id > 0 && PresentationProfileEditorComponent.frozenFields.includes(field.PropertyName));\r\n }\r\n\r\n /** Charge les colonnes du profil sélectionné ; un profil réémis avec ses modifications garde son affichage. */\r\n protected onEntityChanged(entity: PresentationProfileView): void {\r\n if (entity && this.loadedEntity && entity.Id === this.loadedEntity.Id && (entity === this.loadedEntity || !!entity.Items)) {\r\n this.loadedEntity = entity;\r\n return;\r\n }\r\n\r\n this.loadedEntity = undefined;\r\n this.resetColumns();\r\n if (!entity)\r\n return;\r\n\r\n this.isLoading = true;\r\n this.load$.next(entity);\r\n }\r\n\r\n /** La table ou la portée d'un profil change : le catalogue des colonnes est relu. */\r\n onPropertyChanged(event: PropertyEditorEvent): void {\r\n super.onPropertyChanged(event);\r\n if (this.entity && PresentationProfileEditorComponent.catalogFields.includes(event.field?.PropertyName)) {\r\n this.isLoading = true;\r\n this.load$.next(this.entity);\r\n }\r\n }\r\n\r\n /** Catalogue des colonnes de la table (selon la portée) et colonnes enregistrées du profil. */\r\n private loadColumns$(entity: PresentationProfileView) {\r\n const profile = this.facade.change.getModified(entity.Id) ?? entity;\r\n if (!profile.MetaEntityKey)\r\n return of([[], []] as [PresentationProfileItem[], PresentationProfileItem[]]);\r\n\r\n const scoped = profile.PresentationProfileScope === PresentationProfileScopes.Role;\r\n const catalogFilter: PresentationProfileFilterViewModel = {\r\n MetaEntityKey: profile.MetaEntityKey,\r\n PresentationProfileScope: scoped ? profile.PresentationProfileScope : undefined,\r\n RoleId: profile.PresentationProfileScope === PresentationProfileScopes.Role ? profile.RoleId ?? undefined : undefined,\r\n };\r\n\r\n const catalog$ = this.itemData.getCatalog(catalogFilter).pipe(catchError(() => of([] as PresentationProfileItem[])));\r\n // Des colonnes déjà modifiées et pas encore enregistrées priment sur celles du serveur.\r\n const items$ = profile.Items\r\n ? of(profile.Items)\r\n : entity.Id > 0\r\n ? this.itemData.getPresentationProfileItems(entity.Id).pipe(catchError(() => of([] as PresentationProfileItem[])))\r\n : of([] as PresentationProfileItem[]);\r\n return combineLatest([catalog$, items$]);\r\n }\r\n\r\n private showColumns(catalog: PresentationProfileItem[], rawItems: PresentationProfileItem[]): void {\r\n this.resetColumns();\r\n const known = catalog.filter(i => !!i.ColumnKey);\r\n this.naturalLabelByKey = new Map(known.map(i => [i.ColumnKey!, i.Label ?? i.ColumnKey!]));\r\n\r\n const savedByKey = new Map(rawItems.filter(i => !!i.ColumnKey).map(i => [i.ColumnKey!, i]));\r\n this.allItems = known.map(c => {\r\n const saved = savedByKey.get(c.ColumnKey!);\r\n return { ...c, IsAllowed: saved?.IsAllowed ?? false, IsLocked: saved?.IsLocked ?? false };\r\n });\r\n\r\n const catalogByKey = new Map(known.map(i => [i.ColumnKey!, i]));\r\n this.catalogByKey = catalogByKey;\r\n this.orderedSelection = rawItems\r\n .filter(i => !!i.ColumnKey)\r\n .sort((a, b) => (a.OrderNumber ?? 0) - (b.OrderNumber ?? 0))\r\n .map(i => ({ ...(catalogByKey.get(i.ColumnKey!) ?? {}), ...i } as PresentationProfileItem));\r\n this.orderedSelection.forEach(c => this.selectedIds.add(c.ColumnKey!));\r\n this.applyFilter();\r\n this.loadQueries(known);\r\n }\r\n\r\n /** Tri et filtre de la vue en cours d'édition (modifications non enregistrées comprises), et colonnes proposées. */\r\n private loadQueries(catalog: PresentationProfileItem[]): void {\r\n const typeOf = (displayType: number | null | undefined): FilterEditorColumn['type'] =>\r\n displayType === 2 || displayType === 3 ? 'date'\r\n : displayType === 1 || displayType === 4 || displayType === 5 || displayType === 12 ? 'number'\r\n : displayType === 6 ? 'bool' : 'text';\r\n this.filterColumns = catalog\r\n .filter(i => i.ColumnSourceType !== 2)\r\n .map(i => ({ key: i.ColumnKey!, label: i.Label || i.ColumnKey!, type: typeOf(i.ColumnDisplayType) } as FilterEditorColumn))\r\n .sort((a, b) => a.label.localeCompare(b.label, 'fr', { sensitivity: 'base' }));\r\n\r\n const profile = this.current;\r\n let sort: FilterEditorSort[] = [];\r\n try {\r\n const levels = profile?.SortQuery ? JSON.parse(profile.SortQuery) : [];\r\n sort = Array.isArray(levels)\r\n ? levels.filter(l => !!l?.property).map(l => ({ property: String(l.property), direction: l.direction === 'desc' ? 'desc' : 'asc' }))\r\n : [];\r\n }\r\n catch {\r\n sort = [];\r\n }\r\n this.viewSort = sort;\r\n this.viewFilter = parseViewQuery(profile?.FilterQuery) ?? { Logic: 'and', Conditions: [], Groups: [] };\r\n this.viewFilter.Groups = this.viewFilter.Groups ?? [];\r\n const loaded: { SortQuery: string, FilterQuery?: string } = this.currentQueries();\r\n if (this.isDefaultView)\r\n delete loaded.FilterQuery;\r\n this.publishedQueries = JSON.stringify(loaded);\r\n }\r\n\r\n /** Tri et filtre en cours, au format enregistré (chaîne vide : aucun). */\r\n private currentQueries(): { SortQuery: string, FilterQuery: string } {\r\n const sort = this.viewSort.filter(s => !!s.property);\r\n return { SortQuery: sort.length ? JSON.stringify(sort) : '', FilterQuery: toViewQuery(this.viewFilter) ?? '' };\r\n }\r\n\r\n /**\r\n * L'éditeur des filtres modifie le tri et le filtre en place, sans événement : un changement est\r\n * repéré à chaque vérification et publié (le profil devient modifié, « Enregistrer » l'envoie).\r\n */\r\n ngDoCheck(): void {\r\n if (!this.loadedEntity || this.readonly)\r\n return;\r\n const queries: { SortQuery: string, FilterQuery?: string } = this.currentQueries();\r\n // Vue par défaut : son filtre n'est pas modifiable ici (onglet masqué), il n'est pas renvoyé.\r\n if (this.isDefaultView)\r\n delete queries.FilterQuery;\r\n const json = JSON.stringify(queries);\r\n if (json === this.publishedQueries)\r\n return;\r\n this.publishedQueries = json;\r\n this.publishChanges(queries);\r\n }\r\n\r\n private resetColumns(): void {\r\n this.allItems = [];\r\n this.filteredItems = [];\r\n this.orderedSelection = [];\r\n this.selectedIds = new Set();\r\n this.searchText = '';\r\n this.naturalLabelByKey = new Map();\r\n this.catalogByKey = new Map();\r\n this.viewSort = [];\r\n this.viewFilter = { Logic: 'and', Conditions: [], Groups: [] };\r\n this.filterColumns = [];\r\n this.publishedQueries = '';\r\n }\r\n\r\n /** Publie les colonnes choisies : le profil devient modifié, l'action « Enregistrer » les envoie. */\r\n onColumnsChanged(): void {\r\n const profile = this.current;\r\n if (!profile || this.readonly) return;\r\n this.publishChanges({ Items: PresentationProfileTransformer.toAdminConfigContext(this.orderedSelection, profile).Profile.Items });\r\n }\r\n\r\n getCatalogLabel(item: PresentationProfileItem): string {\r\n return this.naturalLabelByKey.get(item.ColumnKey ?? '') ?? item.ColumnKey ?? '';\r\n }\r\n\r\n /** Type d'affichage de la colonne (indicateur), ou undefined : affichage par défaut à l'enregistrement. */\r\n getDisplayType(item: PresentationProfileItem): ColumnDisplayTypeInfo | undefined {\r\n return getColumnDisplayType(item.ColumnDisplayType);\r\n }\r\n\r\n /** Résumé de l'affichage de la colonne (infobulle de l'indicateur). */\r\n describeDisplay(item: PresentationProfileItem): string {\r\n return describeColumnDisplay(item);\r\n }\r\n\r\n /**\r\n * Ouvre la fenêtre d'édition de la colonne (libellé, affichage et options, drapeaux) ; la colonne\r\n * modifiée remplace celle de la liste et le profil devient modifié.\r\n */\r\n openColumn(item: PresentationProfileItem): void {\r\n const catalog = this.catalogByKey.get(item.ColumnKey ?? '');\r\n const ref = this.modalService.show(ColumnDisplayDialogComponent, {\r\n class: 'modal-lg',\r\n keyboard: true,\r\n initialState: {\r\n item: { ...item },\r\n naturalLabel: this.getCatalogLabel(item),\r\n defaultDisplayType: item.ColumnSourceType === 2 ? null : catalog?.ColumnDisplayType ?? null,\r\n enumEntityName: catalog?.EnumEntityName ?? null,\r\n columns: this.allItems\r\n .filter(i => i.ColumnSourceType !== 2 && !!i.ColumnKey)\r\n .map(i => ({ key: i.ColumnKey!, label: i.Label ?? i.ColumnKey! })),\r\n isPerimeter: this.isPerimeter,\r\n readonly: this.readonly,\r\n },\r\n });\r\n if (!ref.content) return;\r\n\r\n ref.content.confirmed.pipe(take(1)).subscribe(result => {\r\n this.orderedSelection = this.orderedSelection.map(i => i.ColumnKey === item.ColumnKey ? { ...i, ...result } : i);\r\n this.onColumnsChanged();\r\n ref.hide();\r\n });\r\n ref.content.cancelled.pipe(take(1)).subscribe(() => ref.hide());\r\n }\r\n\r\n onSearch(): void { this.applyFilter(); }\r\n\r\n /** Colonnes disponibles : catalogue sans les colonnes affichées, restreint au texte cherché. */\r\n private applyFilter(): void {\r\n let items = this.allItems.filter(i => !this.selectedIds.has(i.ColumnKey ?? ''));\r\n if (this.searchText?.trim()) {\r\n const q = this.searchText.toLowerCase();\r\n items = items.filter(i =>\r\n (i.Label ?? i.ColumnKey ?? '').toLowerCase().includes(q) ||\r\n (i.ColumnKey ?? '').toLowerCase().includes(q)\r\n );\r\n }\r\n this.filteredItems = items;\r\n }\r\n\r\n /** Affiche une colonne disponible : elle passe à la fin des colonnes affichées. */\r\n addItem(item: PresentationProfileItem): void {\r\n if (this.readonly) return;\r\n this.selectedIds.add(item.ColumnKey ?? '');\r\n this.orderedSelection = [...this.orderedSelection, { ...item, Label: null }];\r\n this.applyFilter();\r\n this.onColumnsChanged();\r\n }\r\n\r\n /** Affiche toutes les colonnes disponibles listées. */\r\n addAll(): void {\r\n if (this.readonly || this.filteredItems.length === 0) return;\r\n this.filteredItems.forEach(i => this.selectedIds.add(i.ColumnKey ?? ''));\r\n this.orderedSelection = [...this.orderedSelection, ...this.filteredItems.map(i => ({ ...i, Label: null as string | null | undefined }))];\r\n this.applyFilter();\r\n this.onColumnsChanged();\r\n }\r\n\r\n removeFromSelection(item: PresentationProfileItem): void {\r\n if (this.readonly) return;\r\n const key = item.ColumnKey ?? '';\r\n this.selectedIds.delete(key);\r\n this.orderedSelection = this.orderedSelection.filter(i => i.ColumnKey !== key);\r\n this.applyFilter();\r\n this.onColumnsChanged();\r\n }\r\n\r\n onDrop(event: CdkDragDrop<PresentationProfileItem[]>): void {\r\n if (this.readonly || event.previousIndex === event.currentIndex) return;\r\n moveItemInArray(this.orderedSelection, event.previousIndex, event.currentIndex);\r\n this.onColumnsChanged();\r\n }\r\n}\r\n","<div class=\"pp-editor\">\r\n @if (entity) {\r\n <alg-tabset [showNavs]=\"true\" [pills]=\"false\" (onSelect)=\"selectTab($event)\">\r\n\r\n <!--Propriétés : table, libellé, finalité et portée du profil, avec les composants des formulaires\r\n (masqué dans la fenêtre des vues d'une grille : la vue y est choisie à gauche)-->\r\n @if (showProperties) {\r\n <alg-tab title=\"Propriétés\" [active]=\"shownTab === 0\" [class.pp-editor-tab]=\"shownTab === 0\">\r\n <div class=\"property-container pp-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]=\"isFieldHidden(field)\">\r\n <alg-field [field]=\"field\" [form]=\"form\" [readonly]=\"isFieldReadonly(field)\"\r\n (propertyChanged)=\"onPropertyChanged($event)\">\r\n </alg-field>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </alg-tab>\r\n }\r\n\r\n <!--Colonnes : colonnes affichées par la grille, leur ordre et leurs libellés-->\r\n <alg-tab title=\"Colonnes\" [active]=\"shownTab === 1\" [class.pp-editor-tab]=\"shownTab === 1\">\r\n <div class=\"gcc pp-editor-columns\">\r\n <div *ngIf=\"isLoading\" class=\"gcc__loading\">\r\n <span class=\"gcc__spinner-icon fa fa-circle-o-notch fa-spin\"></span>\r\n Chargement des colonnes…\r\n </div>\r\n <div *ngIf=\"!isLoading && allItems.length === 0 && orderedSelection.length === 0\" class=\"gcc__hint\">\r\n Choisissez la table du profil dans l'onglet « Propriétés ».\r\n </div>\r\n <ng-container *ngIf=\"!isLoading && (allItems.length > 0 || orderedSelection.length > 0)\">\r\n <div class=\"gcc__panels\">\r\n\r\n <!-- ── Colonnes disponibles : celles de la table qui ne sont pas affichées ── -->\r\n <div class=\"gcc__browse\">\r\n <div class=\"gcc__panel-hd\">\r\n <span class=\"gcc__panel-label\">Colonnes disponibles</span>\r\n <span class=\"gcc__badge\">{{ filteredItems.length }}</span>\r\n <input class=\"gcc__search\" type=\"text\" placeholder=\"Rechercher…\"\r\n [(ngModel)]=\"searchText\" (ngModelChange)=\"onSearch()\">\r\n <button *ngIf=\"!readonly\" class=\"pp-editor-add-all\" type=\"button\" [disabled]=\"filteredItems.length === 0\"\r\n (click)=\"addAll()\" title=\"Afficher toutes les colonnes listées\">Tout ajouter</button>\r\n </div>\r\n\r\n <div class=\"gcc__table-wrap\">\r\n <table class=\"gcc__browse-table\">\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredItems\"\r\n class=\"gcc__browse-row\"\r\n [class.gcc__browse-row--custom]=\"item.ColumnSourceType === 2\"\r\n title=\"Afficher cette colonne\"\r\n (click)=\"addItem(item)\">\r\n <td class=\"gcc__col-name\">\r\n <div class=\"gcc__col-key\">{{ item.ColumnKey }}</div>\r\n <div *ngIf=\"item.Label && item.Label !== item.ColumnKey\" class=\"gcc__sub\">{{ item.Label }}</div>\r\n </td>\r\n <td class=\"pp-editor-add\"><i *ngIf=\"!readonly\" class=\"fa fa-plus\"></i></td>\r\n </tr>\r\n <tr *ngIf=\"filteredItems.length === 0\">\r\n <td colspan=\"2\" class=\"gcc__browse-empty\">\r\n {{ searchText ? 'Aucune colonne trouvée' : 'Toutes les colonnes sont affichées' }}\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n\r\n <!-- ── Panel 4: Ordered selection with admin flags ────────────── -->\r\n <div class=\"gcc__selection\">\r\n <div class=\"gcc__panel-hd\">\r\n <span class=\"gcc__panel-label\">Colonnes affichées</span>\r\n <span *ngIf=\"selectedCount > 0\" class=\"gcc__badge gcc__badge--primary\">{{ selectedCount }}</span>\r\n </div>\r\n\r\n <div *ngIf=\"orderedSelection.length > 0\" class=\"gcc__sel-legend\">\r\n <span class=\"gcc__sel-legend__drag\"></span>\r\n <span class=\"gcc__sel-legend__pos\">#</span>\r\n <span class=\"gcc__sel-legend__code\">Colonne</span>\r\n <span class=\"gcc__sel-legend__label\">Étiquette</span>\r\n <span class=\"gcc__sel-legend__display\">Affichage</span>\r\n <ng-container *ngIf=\"isPerimeter\">\r\n <span class=\"gcc__sel-legend__flag\">Aut.</span>\r\n </ng-container>\r\n <span class=\"gcc__sel-legend__flag\">Ver.</span>\r\n <span class=\"gcc__sel-legend__remove\"></span>\r\n </div>\r\n\r\n <div *ngIf=\"orderedSelection.length === 0\" class=\"gcc__sel-empty\">\r\n <span class=\"fa fa-columns gcc__sel-empty__icon\"></span>\r\n <p>Choisissez des colonnes parmi les colonnes disponibles</p>\r\n </div>\r\n\r\n <div *ngIf=\"orderedSelection.length > 0\"\r\n class=\"gcc__sel-list\"\r\n cdkDropList\r\n [cdkDropListData]=\"orderedSelection\"\r\n (cdkDropListDropped)=\"onDrop($event)\">\r\n\r\n <div *ngFor=\"let item of orderedSelection; let i = index\"\r\n class=\"gcc__sel-item\"\r\n cdkDrag [cdkDragDisabled]=\"readonly\"\r\n [cdkDragData]=\"item\">\r\n\r\n <div class=\"gcc__sel-item__placeholder\" *cdkDragPlaceholder></div>\r\n\r\n <span class=\"gcc__sel-item__drag\" cdkDragHandle>\r\n <i class=\"fa fa-bars\"></i>\r\n </span>\r\n\r\n <span class=\"gcc__sel-item__pos\">{{ i + 1 }}</span>\r\n\r\n <span class=\"gcc__sel-item__code\"\r\n [class.gcc__sel-item__code--cf]=\"item.ColumnSourceType === 2\"\r\n [title]=\"item.ColumnKey\">\r\n <span class=\"gcc__sel-item__name\">{{ item.ColumnKey }}</span>\r\n <span *ngIf=\"getCatalogLabel(item) !== item.ColumnKey\" class=\"gcc__sub\">{{ getCatalogLabel(item) }}</span>\r\n </span>\r\n\r\n <input class=\"gcc__sel-item__label\" type=\"text\"\r\n [placeholder]=\"getCatalogLabel(item)\"\r\n [(ngModel)]=\"item.Label\" (ngModelChange)=\"onColumnsChanged()\" [disabled]=\"readonly\"\r\n (click)=\"$event.stopPropagation()\"\r\n title=\"Étiquette personnalisée\">\r\n\r\n <!-- Affichage : indicateur du type, ouvre la fenêtre d'édition de la colonne -->\r\n <span class=\"pp-display\" (click)=\"$event.stopPropagation()\">\r\n <button type=\"button\" class=\"pp-display__badge\"\r\n [class.pp-display__badge--default]=\"!getDisplayType(item)\"\r\n [title]=\"describeDisplay(item)\"\r\n (click)=\"openColumn(item)\">\r\n <i class=\"fa fa-{{ getDisplayType(item)?.icon ?? 'magic' }}\"></i>\r\n <span class=\"pp-display__text\">{{ getDisplayType(item)?.short ?? 'Auto' }}</span>\r\n </button>\r\n <button type=\"button\" class=\"pp-display__edit\" title=\"Modifier la colonne (libellé, affichage...)\" (click)=\"openColumn(item)\">\r\n <i class=\"fa fa-sliders\"></i>\r\n </button>\r\n </span>\r\n\r\n <!-- Perimeter scope: allowed flag -->\r\n <ng-container *ngIf=\"isPerimeter\">\r\n <label class=\"gcc__flag\" (click)=\"$event.stopPropagation()\">\r\n <input type=\"checkbox\" [(ngModel)]=\"item.IsAllowed\" (ngModelChange)=\"onColumnsChanged()\" [disabled]=\"readonly\" title=\"Autorisé\">\r\n </label>\r\n </ng-container>\r\n\r\n <!-- Always: locked flag -->\r\n <label class=\"gcc__flag\" (click)=\"$event.stopPropagation()\">\r\n <input type=\"checkbox\" [(ngModel)]=\"item.IsLocked\" (ngModelChange)=\"onColumnsChanged()\" [disabled]=\"readonly\" title=\"Verrouillé\">\r\n </label>\r\n\r\n <button class=\"gcc__sel-item__remove\" type=\"button\"\r\n (click)=\"removeFromSelection(item); $event.stopPropagation()\"\r\n title=\"Retirer\">&#x2715;</button>\r\n </div>\r\n\r\n </div>\r\n\r\n <!-- Pied de la sélection -->\r\n <div class=\"gcc__sel-footer\">\r\n <span class=\"gcc__sel-footer__info\">\r\n <ng-container *ngIf=\"selectedCount > 0\">\r\n {{ selectedCount }} colonne(s) — glissez pour réordonner\r\n </ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n </div><!-- /.gcc__panels -->\r\n </ng-container>\r\n </div>\r\n </alg-tab>\r\n\r\n <!--Tri : tri enregistré dans la vue, appliqué à la grille quand elle affiche la vue-->\r\n <alg-tab title=\"Tri\" [active]=\"shownTab === 2\" [class.pp-editor-tab]=\"shownTab === 2\">\r\n <div class=\"pp-editor-queries\">\r\n <alg-filter-editor [embedded]=\"true\" section=\"sort\" [columns]=\"filterColumns\" [sort]=\"viewSort\"\r\n [filter]=\"viewFilter\" [class.pp-editor-readonly]=\"readonly\"></alg-filter-editor>\r\n </div>\r\n </alg-tab>\r\n\r\n <!--Filtres : filtre enregistré dans la vue (groupes ET / OU, valeurs du FilterPanel), ajouté aux filtres\r\n de la grille ; pas sur une vue par défaut, qui s'applique à tous les utilisateurs (lignes masquées pour tous)-->\r\n @if (!isDefaultView) {\r\n <alg-tab title=\"Filtres\" [active]=\"shownTab === 3\" [class.pp-editor-tab]=\"shownTab === 3\">\r\n <div class=\"pp-editor-queries\">\r\n <alg-filter-editor [embedded]=\"true\" section=\"filters\" [columns]=\"filterColumns\" [sort]=\"viewSort\"\r\n [filter]=\"viewFilter\" [panelFields]=\"panelFields\" [class.pp-editor-readonly]=\"readonly\"></alg-filter-editor>\r\n </div>\r\n </alg-tab>\r\n }\r\n\r\n <!--Carte : carte de la vue Grille (fenêtre des vues d'une grille), à défaut la carte par défaut-->\r\n @if (cardTemplate) {\r\n <alg-tab title=\"Carte\" [active]=\"shownTab === 4\" [class.pp-editor-tab]=\"shownTab === 4\">\r\n <ng-container [ngTemplateOutlet]=\"cardTemplate\"></ng-container>\r\n </alg-tab>\r\n }\r\n </alg-tabset>\r\n }\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur PresentationProfileController).\r\n// Ne pas modifier : le code spécifique s'écrit dans PresentationProfileComponent, dérivé de BasePresentationProfileComponent.\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 { PresentationProfileFilterViewModel, PresentationProfileView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des PresentationProfileView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : PresentationProfileComponent.\r\n */\r\n@Directive()\r\nexport abstract class BasePresentationProfileComponent extends BaseComponent<PresentationProfileFilterViewModel, PresentationProfileView> {\r\n getTitle(): string {\r\n return 'Vues personnalisées';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.PresentationProfile;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PRESENTATIONPROFILE;\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 'PROV';\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/PresentationProfileForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Action, ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { PresentationProfileDataService } from '@dflat-core/web/meta-data';\r\nimport { PresentationProfileEditorComponent } from '../editor-components/presentation-profile-editor.component';\r\nimport { BasePresentationProfileComponent } from './generated/presentationprofile.component.generated';\r\n\r\n/**\r\n * Écran des vues personnalisées : grille standard des vues (vue PresentationProfileView : table,\r\n * finalité, portée, utilisateur, source de données ou rôle) et, à la place du formulaire d'édition\r\n * standard, l'éditeur des vues (PresentationProfileEditorComponent). Hors administrateur, le serveur\r\n * ne propose que les vues par défaut, en lecture seule, et les vues de l'utilisateur ; « Dupliquer »\r\n * copie une vue en une nouvelle vue de l'utilisateur. Nommé « Screen » : PresentationProfileComponent\r\n * est déjà le sélecteur de colonnes des grilles.\r\n */\r\n@Component({\r\n selector: 'alg-presentation-profile-screen',\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 PresentationProfileScreenComponent extends BasePresentationProfileComponent {\r\n private readonly profileData = inject(PresentationProfileDataService);\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n\r\n // Éditeur spécifique : propriétés et colonnes du profil, à la place du formulaire standard.\r\n this.editorComponent = PresentationProfileEditorComponent;\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout: false, PropertyFlexGrow: 65 });\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.facade.actions.addAction(new Action(\r\n 'duplicateView', 'Dupliquer', false, true, false, 'files-o', 'bg-orange',\r\n () => this.duplicateView(), null, () => true,\r\n ));\r\n }\r\n\r\n /** Copie la vue sélectionnée en une nouvelle vue de l'utilisateur, puis relit les vues. */\r\n private duplicateView(): void {\r\n const view = this.facade.selection.getSelected()?.[0];\r\n if (view?.Id == null)\r\n return;\r\n this.profileData.duplicateView({ PresentationProfileId: view.Id }).subscribe(result => {\r\n if (result?.Success)\r\n this.app.ToastrService?.success(result.ErrorMessage ?? 'Vue dupliquée');\r\n else if (result?.ErrorMessage)\r\n this.app.ToastrService?.error(result.ErrorMessage);\r\n this.refresh();\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","import { Utilities } from '@dflat-core/web/core';\r\nimport { ApplicationService, BaseEditorComponent, IIsCancel } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldGroup } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from \"@angular/core\";\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'alg-custom-field-group-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 CustomFieldGroupEditorComponent extends BaseEditorComponent<CustomFieldGroup> implements IIsCancel\r\n{\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroup;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? (\"Nouvelle famille d'attributs\") : (\"Famille d'attributs \" + this.id + \")\")): \"Famille d'attributs\";\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n public isCancel: boolean = false;\r\n CustomFieldId: number;\r\n constructor(\r\n app : ApplicationService,\r\n 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","\r\nimport { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldGroupEntityView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'msw-custom-field-group-entity-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 CustomFieldGroupEntityEditorComponent extends BaseEditorComponent<CustomFieldGroupEntityView> {\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? (\"Nouvelle famille d'attributs\") : (\"Famille d'attributs (\" + this.id + ')')): \"famille d'attributs\";\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroupEntity;\r\n }\r\n get PermissionKey(): string{\r\n return MetaPermissions.META_CUSTOMFIELDGROUPENTITY;\r\n }\r\n\r\n\r\n constructor(\r\n 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","\r\nimport { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldGroupItemView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n@Component({\r\n selector: 'msw-custom-field-group-item-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 CustomFieldGroupItemEditorComponent extends BaseEditorComponent<CustomFieldGroupItemView>{\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroupItem;\r\n }\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvel ') : ('Attribut item (' + this.id + ')')): 'Attribut';\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.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}\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 { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { Permission } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-permission-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 PermissionEditorComponent extends BaseEditorComponent<Permission> {\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Permission;\r\n }\r\n \r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvelle permission') : ('Permission (' + this.id + ')')): 'Permissions';\r\n }\r\n \r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.GetLink(this.getEntityKey());\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","import { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { ResourceTranslationView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-reslang-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 ResourceTranslationEditorComponent extends BaseEditorComponent<ResourceTranslationView> {\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ResourceTranslation;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId\r\n ? this.id === '0'\r\n ? 'Nouvelle traduction'\r\n : 'Traduction (' + this.id + ')'\r\n : 'Traductions';\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId\r\n ? MetaMenuItemProvider.GetLink(this.getEntityKey()) +\r\n '/' +\r\n this.id\r\n : MetaMenuItemProvider.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","import { Utilities } from '@dflat-core/web/core';\r\nimport { ImageFormats } from '@dflat-core/web/core-model';\r\nimport { AuthService } from '@dflat-core/web/core-services';\r\nimport {\r\n Action,\r\n ActionsComponent,\r\n AlertService,\r\n DialogType,\r\n downloadFile,\r\n IActionComponent\r\n} from '@dflat-core/web/core-ux';\r\nimport { FilesDataService } from '@dflat-core/web/meta-data';\r\nimport {\r\n FileDescriptor,\r\n FileTypes,\r\n GetFileDescriptorsViewModel\r\n} from '@dflat-core/web/meta-model';\r\nimport { Component, Input, OnInit, ViewChild, ChangeDetectionStrategy } from '@angular/core';\r\nimport { forkJoin, Observable } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'alg-entity-files',\r\n templateUrl: './entity-files.component.html',\r\n styleUrls: ['./entity-files.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class EntityFilesComponent implements IActionComponent, OnInit {\r\n \r\n // cast non base components into sections\r\n isSection?:boolean;\r\n\r\n @Input() entityId: number;\r\n @Input() entityKey: string;\r\n @Input() permissionKey: string;\r\n @ViewChild('actionComponent', { static: false })\r\n actionComponent: ActionsComponent;\r\n\r\n files: FileDescriptor[];\r\n originalFiles: FileDescriptor[];\r\n\r\n selected: FileDescriptor[] = [];\r\n actions: Action[];\r\n\r\n constructor(\r\n private fileService: FilesDataService,\r\n private authService: AuthService,\r\n private alertService: AlertService\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.refreshActions();\r\n this.actions = [ new Action('delete','Supprimer',false,true,true,'trash-o','bg-red',\r\n this.delete.bind(this),this.getActionPermissionKey('edit'),this.canDelete.bind(this)),];\r\n }\r\n\r\n handleCheckChanged(f: FileDescriptor) {\r\n if (f.IsSelected) this.selected.push(f);\r\n else {\r\n let index = this.selected.indexOf(f);\r\n if (index > -1) {\r\n this.selected.splice(index, 1);\r\n }\r\n }\r\n\r\n this.refreshActions();\r\n }\r\n\r\n refreshActions() {\r\n // Mise à jour des actions dans le menu\r\n if (!Utilities.IsNil(this.actionComponent))\r\n this.actionComponent.refreshActions();\r\n }\r\n\r\n handleActionSearchKeywords(keyword: string) {\r\n if (Utilities.IsNil(keyword) || keyword.length == 0)\r\n this.files = this.originalFiles;\r\n else\r\n this.files = this.originalFiles.filter(\r\n (f) =>\r\n f.IsSelected ||\r\n f.FileName.toLowerCase().includes(keyword.toLowerCase())\r\n );\r\n }\r\n\r\n toggleFilterView(): void {}\r\n showHistory(): void {}\r\n refresh(): void {}\r\n\r\n canDelete() {\r\n return (\r\n !Utilities.IsNil(this.selected) &&\r\n this.selected.length > 0\r\n );\r\n }\r\n getActionPermissionKey(action: 'add' | 'edit' | 'export' | any) {\r\n if (Utilities.IsNil(this.permissionKey)) {\r\n return null;\r\n }\r\n return `${this.permissionKey}.${action}`;\r\n }\r\n delete() {\r\n this.alertService.showDialog(\r\n 'Souhaitez-vous confirmer la suppression des fichiers sélectionnés ?',\r\n DialogType.Confirm,\r\n (res) => {\r\n this.fileService.deleteFiles(this.selected).subscribe({\r\n next: (deleteResult) => {\r\n if (deleteResult.Success) {\r\n this.loadData();\r\n } else {\r\n this.alertService.error(deleteResult.ErrorMessage);\r\n }\r\n },\r\n });\r\n },\r\n () => {},\r\n 'Oui',\r\n 'Non'\r\n );\r\n }\r\n // getFileName(FileD)\r\n public loadData() {\r\n let viewModel: GetFileDescriptorsViewModel = {\r\n EntityIds: [this.entityId],\r\n EntityKey: this.entityKey,\r\n };\r\n\r\n this.fileService.getFileDescriptors(viewModel).subscribe((res) => {\r\n this.originalFiles = res;\r\n this.files = res;\r\n this.selected = [];\r\n this.refreshActions();\r\n });\r\n }\r\n\r\n getImageUrl(extension: string) {\r\n let icon: string = 'file-solid';\r\n switch (extension.toLowerCase()) {\r\n case 'txt':\r\n icon = 'file-lines-solid';\r\n break;\r\n case 'csv':\r\n icon = 'file-csv-solid';\r\n break;\r\n case 'xls':\r\n case 'xlsx':\r\n icon = 'file-excel-solid';\r\n break;\r\n case 'doc':\r\n case 'docx':\r\n icon = 'file-word-solid';\r\n break;\r\n case 'pdf':\r\n icon = 'file-pdf-solid';\r\n break;\r\n case 'svg':\r\n case 'jpg':\r\n case 'gif':\r\n case 'png':\r\n case 'bmp':\r\n icon = 'file-image-solid';\r\n break;\r\n case 'log':\r\n icon = 'file-invoice-solid';\r\n break;\r\n case 'zip':\r\n icon = 'file-zipper-solid';\r\n break;\r\n default:\r\n break;\r\n }\r\n return `/assets/images/${icon}.svg`;\r\n }\r\n\r\n onDownloadFile(file: FileDescriptor) {\r\n this.fileService.getFile(file.FileId).subscribe(downloadFile);\r\n }\r\n\r\n onFileDrop(event) {\r\n if (\r\n Utilities.IsNil(event) ||\r\n Utilities.IsNil(event.addedFiles)\r\n )\r\n return;\r\n let permKey: string = `${this.permissionKey}.edit`;\r\n\r\n if (!this.authService.hasPermission(permKey)) {\r\n this.alertService.error(\r\n \"Vous n'avez pas l'autorisation d'ajouter des fichiers ici.\"\r\n );\r\n return;\r\n }\r\n\r\n // Création de la liste des fichiers à uploader\r\n let importedFiles: File[] = [];\r\n importedFiles.push(...event.addedFiles);\r\n\r\n // Vérification des conflits\r\n if (importedFiles.length > 0) {\r\n let toAdd: File[] = [];\r\n forkJoin(\r\n importedFiles.map((f) => {\r\n if (\r\n this.originalFiles.filter(\r\n (original) =>\r\n original.FileName.toLowerCase() ==\r\n f.name.toLowerCase()\r\n ).length > 0\r\n ) {\r\n let o = new Observable((o) => {\r\n this.alertService.showDialog(\r\n 'Souhaitez-vous écraser le fichier existant ?',\r\n DialogType.Confirm,\r\n (res) => {\r\n toAdd.push(f);\r\n o.next(f);\r\n o.complete();\r\n },\r\n () => {\r\n o.next(f);\r\n o.complete();\r\n },\r\n 'Oui',\r\n 'Non',\r\n `Le fichier ${f.name} existe déjà !`,\r\n 'Fichier existant'\r\n );\r\n });\r\n return o;\r\n } else {\r\n let o = new Observable((o) => {\r\n toAdd.push(f);\r\n o.next(f);\r\n o.complete();\r\n });\r\n return o;\r\n }\r\n })\r\n ).subscribe((res) => {\r\n forkJoin(\r\n toAdd.map((f) =>\r\n this.fileService.uploadFile(\r\n f,\r\n this.entityId,\r\n this.entityKey,\r\n FileTypes.Default,\r\n ImageFormats.Undefined,\r\n null\r\n )\r\n )\r\n ).subscribe((x) => this.loadData());\r\n });\r\n }\r\n }\r\n \r\n}\r\n","<alg-actions\r\n #actionComponent\r\n [title]=\"'Fichiers'\"\r\n [proxy]=\"this\"\r\n [showFilterButton]=\"false\"\r\n [showSearchBar]=\"true\"\r\n [showSearchButton]=\"false\"\r\n [showTitle]=\"false\"\r\n [showPaginator]=\"false\"\r\n [actions]=\"this.actions\"\r\n [selectedData]=\"this.selected\"\r\n >\r\n</alg-actions>\r\n\r\n<div class=\"drop-zone\" ngx-dropzone (change)=\"onFileDrop($event)\" [disableClick]=\"true\">\r\n <div class=\"file-container\" *ngFor=\"let f of files\">\r\n\r\n <div class=\"file-row\">\r\n <div style=\"line-height: 0;\">\r\n <input style=\"cursor: pointer;\"type=\"checkbox\" [(ngModel)]=\"f.IsSelected\" (ngModelChange)=\"handleCheckChanged(f)\">\r\n </div>\r\n \r\n <img [class]=\"f.Extension.toLowerCase()\" [src]=\"getImageUrl(f.Extension)\" [alt]=\"f.Extension\">\r\n <div class=\"span-filename\" (click)=\"onDownloadFile(f)\" data-toggle=\"tooltip\" [title]=\"f.FileName\">\r\n <span >{{f.FileName}}</span>\r\n </div>\r\n \r\n </div>\r\n\r\n <div class=\"file-info-container\">\r\n <div>{{f.LengthDescription}}</div>\r\n &nbsp;-&nbsp;\r\n <div>{{f.OwnerUser}}</div>\r\n &nbsp;-&nbsp;\r\n <div>{{f.LastModificationDate | date: 'dd/MM/yyyy HH:mm'}}</div>\r\n \r\n </div>\r\n\r\n </div>\r\n <!-- <ng-container *ngIf=\"this.files && this.files.length == 0\">\r\n Aucun fichier n'a été détecté\r\n </ng-container> -->\r\n</div>","import { ApplicationService, BaseEditorComponent, NewEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { MetaEntityField } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-meta-entity-field-editor',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html',\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 MetaEntityFieldEditorComponent extends NewEditorComponent<MetaEntityField> {\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityField;\r\n }\r\n \r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvel attribut') : ('Attribut (' + this.id + ')')): 'Attributs';\r\n }\r\n \r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.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","<div class=\"editor-container\">\r\n <div class=\"breadcrumb-panel\" *ngIf=\"(this.facade.editor.isStandaloneMode$| async)\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n <!-- entityConfigLoader\r\n #configLoader=\"entityConfigLoader\"\r\n [entityKey]=\"getEntityKey()\" -->\r\n\r\n <ng-container\r\n >\r\n <div class=\"property-editor-container\" [class.show-buttons]=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <alg-property-editor\r\n class=\"property-editor-container-inner\"\r\n #propertyGridComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-property-editor>\r\n </div>\r\n <div class=\"buttons-container\" *ngIf=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <div class=\"footer-buttons\" >\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!this.dirty\"\r\n (click)=\"handleDialogButtonClick(false)\">\r\n Sauvegarder\r\n </button>\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\">\r\n Annuler\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","import { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\n/** Réponse de l'utilisateur à la proposition d'enregistrer l'ordre des colonnes. */\r\nexport interface SaveViewPromptResult {\r\n /** true : enregistrer l'ordre des colonnes. */\r\n save: boolean;\r\n /** Libellé de la nouvelle vue (vue par défaut affichée). */\r\n label: string;\r\n}\r\n\r\n/**\r\n * Proposition d'enregistrer l'ordre des colonnes déplacées dans une grille : dans une nouvelle vue\r\n * (libellé à saisir) quand la vue par défaut est affichée, sinon dans la vue de l'utilisateur.\r\n * Contenu de la fenêtre standard des popups (DialogComponent : en-tête, boutons « Enregistrer » et\r\n * « Ne pas enregistrer »), ouverte par PpFacadeService ; le libellé saisi est le résultat (label).\r\n */\r\n@Component({\r\n selector: 'alg-save-view-prompt',\r\n standalone: true,\r\n imports: [CommonModule, FormsModule],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n template: `\r\n <div class=\"save-view-prompt\">\r\n <p *ngIf=\"isNewView && fromButton\">\r\n La vue par défaut de « {{ title }} » est en lecture seule.\r\n Enregistrer cette disposition dans une nouvelle vue personnalisée ?\r\n </p>\r\n <p *ngIf=\"isNewView && !fromButton\">\r\n Vous avez déplacé des colonnes de la vue par défaut de « {{ title }} ».\r\n Enregistrer cette disposition dans une nouvelle vue personnalisée ?\r\n </p>\r\n <p *ngIf=\"!isNewView\">\r\n Vous avez déplacé des colonnes de « {{ title }} ».\r\n Enregistrer cette disposition dans la vue « {{ viewLabel }} » ?\r\n </p>\r\n <div *ngIf=\"isNewView\" class=\"save-view-field\">\r\n <label for=\"save-view-label\">Nom de la vue</label>\r\n <input id=\"save-view-label\" class=\"form-control\" type=\"text\" maxlength=\"100\" [(ngModel)]=\"label\" />\r\n </div>\r\n </div>\r\n `,\r\n styles: [`\r\n .save-view-prompt { padding: 12px 16px; }\r\n .save-view-prompt p { margin: 0 0 12px; }\r\n .save-view-field { display: flex; flex-direction: column; gap: 4px; }\r\n .save-view-field label { margin: 0; font-weight: 600; }\r\n `],\r\n})\r\nexport class SaveViewPromptComponent {\r\n /** Titre de l'écran. */\r\n title = '';\r\n /** true : la vue par défaut est affichée, l'ordre est enregistré dans une nouvelle vue. */\r\n isNewView = true;\r\n /** Vue de l'utilisateur affichée (enregistrement dans cette vue). */\r\n viewLabel = '';\r\n /** true : ouverte par le bouton d'enregistrement de la grille, et non à l'abandon de l'écran. */\r\n fromButton = false;\r\n /** Nom de la nouvelle vue : résultat de la fenêtre (propertyCallback). */\r\n label = 'Ma vue';\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable, of } from 'rxjs';\r\nimport { catchError, map } from 'rxjs/operators';\r\n\r\nimport { PresentationProfileItemDataService } from '@dflat-core/web/meta-data';\r\nimport { PresentationContext, PresentationProfileFilterViewModel, PresentationProfileItem, PresentationProfilePurposes, PresentationProfileScopes } from '@dflat-core/web/meta-model';\r\n\r\nexport interface PpResolverConfig {\r\n metaEntityKey: string;\r\n purpose?: number;\r\n supplierId?: number | null;\r\n roleId?: number | null;\r\n}\r\n\r\n/** Effective profile for a grid — resolved entirely on the backend. */\r\nexport interface PpEffectiveProfile {\r\n /** Resolved, ordered columns ready to apply to the grid. */\r\n columns: PresentationProfileItem[];\r\n /** True when the user has a saved personal profile. */\r\n hasUserProfile: boolean;\r\n /** Id of the user's profile — useful to pass back on save. */\r\n userProfileId: number | null;\r\n}\r\n\r\n/**\r\n * Resolves the effective Presentation Profile for a grid in a SINGLE backend call\r\n * (PresentationProfileItemController.GetPresentationContext). All merging/resolution happens\r\n * server-side; the client returns ctx.Resolved as-is.\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class PresentationProfileResolver {\r\n constructor(private readonly itemData: PresentationProfileItemDataService) {}\r\n\r\n resolve(config: PpResolverConfig): Observable<PpEffectiveProfile> {\r\n return this.itemData.getPresentationContext(this.toFilter(config)).pipe(\r\n map((ctx: PresentationContext) => ({\r\n columns: ctx.Resolved ?? [],\r\n hasUserProfile: !!ctx.UserProfile?.Id,\r\n userProfileId: ctx.UserProfile?.Id ?? null,\r\n } as PpEffectiveProfile)),\r\n catchError(() => of({ columns: [], hasUserProfile: false, userProfileId: null } as PpEffectiveProfile)),\r\n );\r\n }\r\n\r\n /** Loads the whole context (catalog + default + user + resolved) — used by the selection modal. */\r\n loadContext(config: PpResolverConfig): Observable<PresentationContext> {\r\n return this.itemData.getPresentationContext(this.toFilter(config));\r\n }\r\n\r\n private toFilter(config: PpResolverConfig): PresentationProfileFilterViewModel {\r\n // Portée Source de données retirée (Découpage modulaire System/Meta/Identity, B.4) : supplierId est ignoré.\r\n const scopeType = config.roleId != null ? PresentationProfileScopes.Role : undefined;\r\n return {\r\n MetaEntityKey: config.metaEntityKey,\r\n PresentationProfilePurpose: config.purpose ?? PresentationProfilePurposes.Grid,\r\n PresentationProfileScope: scopeType,\r\n RoleId: config.roleId ?? undefined,\r\n } as PresentationProfileFilterViewModel;\r\n }\r\n}\r\n","/** Colonne proposée pour un emplacement de la carte. */\r\nexport interface CardColumnOption {\r\n key: string;\r\n label: string;\r\n}\r\n\r\n/** Emplacements d'une carte, dans l'ordre d'EnumCardSlots. */\r\nexport const CardSlotNames = ['title', 'text', 'detail', 'badge', 'image'] as const;\r\nexport type CardSlotName = typeof CardSlotNames[number];\r\n\r\n/** Clé de l'image par défaut de l'élément (EnumColumnSourceTypes.EntityImage). */\r\nexport const EntityImageKey = '@EntityImage';\r\n","import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';\r\nimport { FilterEditorColumn, FilterEditorSort, parseViewQuery, toViewQuery, ViewFilterGroup } from '@dflat-core/web/core-ux';\r\nimport { Injectable, OnDestroy } from '@angular/core';\r\nimport { Observable, Subject, forkJoin, of } from 'rxjs';\r\nimport { catchError, map, takeUntil } from 'rxjs/operators';\r\n\r\nimport { PresentationProfileDataService, PresentationProfileItemDataService } from '@dflat-core/web/meta-data';\r\nimport { PresentationProfile, PresentationProfileItem, PresentationProfilePurposes, PresentationProfileScopes, PresentationViews } from '@dflat-core/web/meta-model';\r\nimport { CardColumnOption, CardSlotName, CardSlotNames, EntityImageKey } from './card-slots';\r\nimport { PresentationProfileResolver } from './presentation-profile-resolver.service';\r\nimport { PpConfig, PpResult, PresentationProfileTransformer } from './presentation-profile-transformer';\r\n\r\n/** Vue personnalisée proposée à gauche de la fenêtre des colonnes. */\r\nexport interface PpView {\r\n id: number;\r\n label: string;\r\n isDefault: boolean;\r\n /** Vue affichée par la grille. */\r\n isCurrent: boolean;\r\n /** En-tête de la vue, tel que lu par GetUserViews. */\r\n profile: PresentationProfile;\r\n}\r\n\r\n/**\r\n * Fenêtre « Sélection des colonnes » : à gauche les vues personnalisées de la table (vue par défaut,\r\n * puis celles de l'utilisateur), qu'on choisit, renomme, duplique ou supprime ; au milieu toutes les\r\n * colonnes disponibles, attributs personnalisés compris ; à droite les colonnes de la vue choisie, dans\r\n * leur ordre. « Appliquer » enregistre les colonnes dans la vue choisie (une vue par défaut en lecture\r\n * seule donne une nouvelle vue de l'utilisateur) et l'affiche dans la grille.\r\n */\r\n@Injectable()\r\nexport class PresentationProfileService implements OnDestroy {\r\n constructor(\r\n private readonly data: PresentationProfileDataService,\r\n private readonly itemData: PresentationProfileItemDataService,\r\n private readonly resolver: PresentationProfileResolver,\r\n ) {}\r\n\r\n config!: PpConfig;\r\n isLoading = false;\r\n isSaving = false;\r\n\r\n /** Colonnes disponibles (catalogue de la table, attributs compris). */\r\n allColumns: PresentationProfileItem[] = [];\r\n filteredColumns: PresentationProfileItem[] = [];\r\n searchText = '';\r\n naturalLabelByKey = new Map<string, string>();\r\n\r\n /** Vues de la table, et droit de modifier la vue par défaut. */\r\n views: PpView[] = [];\r\n canEditDefault = false;\r\n /** Vue choisie à gauche, dont les colonnes sont à droite. */\r\n selectedView: PpView | null = null;\r\n /** Vue en cours de renommage, et libellé saisi. */\r\n renamingId: number | null = null;\r\n renameLabel = '';\r\n /** Message d'une action sur les vues (erreur du serveur). */\r\n message: string | null = null;\r\n\r\n loadedItemIds: string[] = [];\r\n orderedSelection: PresentationProfileItem[] = [];\r\n selectedIds: Set<string> = new Set();\r\n\r\n // ---------- Filtres et tri de la vue choisie ----------\r\n\r\n tab: 'columns' | 'filters' | 'sort' = 'columns';\r\n /** Filtre et tri de la vue choisie, modifiés par les onglets « Filtres » et « Tri ». */\r\n viewFilter: ViewFilterGroup = { Logic: 'and', Conditions: [], Groups: [] };\r\n viewSort: FilterEditorSort[] = [];\r\n /** Colonnes proposées au filtre : catalogue de la table, avec le type et les valeurs connus de la grille. */\r\n filterColumns: FilterEditorColumn[] = [];\r\n /** Tri et filtre de la vue choisie à son chargement (repère des changements). */\r\n private loadedQueries = { sort: '', filter: '' };\r\n\r\n private currentQueries(): { sort: string, filter: string } {\r\n const sort = this.viewSort.filter(s => !!s.property);\r\n return { sort: sort.length ? JSON.stringify(sort) : '', filter: toViewQuery(this.viewFilter) ?? '' };\r\n }\r\n\r\n get hasQueryChanges(): boolean {\r\n const current = this.currentQueries();\r\n return current.sort !== this.loadedQueries.sort || current.filter !== this.loadedQueries.filter;\r\n }\r\n\r\n /** Tri et filtre de la vue choisie (en-tête lu par GetUserViews). */\r\n private loadQueries(view: PpView | null): void {\r\n let sort: FilterEditorSort[] = [];\r\n try {\r\n const levels = view?.profile?.SortQuery ? JSON.parse(view.profile.SortQuery) : [];\r\n sort = Array.isArray(levels) ? levels.filter(l => !!l?.property).map(l => ({ property: String(l.property), direction: l.direction === 'desc' ? 'desc' : 'asc' })) : [];\r\n }\r\n catch {\r\n sort = [];\r\n }\r\n this.viewSort = sort;\r\n this.viewFilter = parseViewQuery(view?.profile?.FilterQuery) ?? { Logic: 'and', Conditions: [], Groups: [] };\r\n this.viewFilter.Groups = this.viewFilter.Groups ?? [];\r\n this.loadedQueries = this.currentQueries();\r\n }\r\n\r\n /** Colonnes du filtre : type d'après l'affichage du catalogue, à défaut celui de la grille. */\r\n private buildFilterColumns(catalog: PresentationProfileItem[]): void {\r\n const fromGrid = new Map((this.config.filterColumns ?? []).map(c => [c.key, c]));\r\n const typeOf = (displayType: number | null | undefined): FilterEditorColumn['type'] =>\r\n displayType === 2 || displayType === 3 ? 'date'\r\n : displayType === 1 || displayType === 4 || displayType === 5 || displayType === 12 ? 'number'\r\n : displayType === 6 ? 'bool' : 'text';\r\n this.filterColumns = catalog\r\n .map(i => fromGrid.get(i.ColumnKey!) ?? { key: i.ColumnKey!, label: i.Label || i.ColumnKey!, type: typeOf(i.ColumnDisplayType) })\r\n .sort((a, b) => a.label.localeCompare(b.label, 'fr', { sensitivity: 'base' }));\r\n }\r\n\r\n // ---------- Carte de la vue choisie (onglet « Carte ») ----------\r\n\r\n /** Emplacements de la carte, dans l'ordre d'EnumCardSlots. */\r\n readonly cardSlotList: { name: CardSlotName, label: string }[] = [\r\n { name: 'title', label: 'Titre' },\r\n { name: 'text', label: 'Texte' },\r\n { name: 'detail', label: 'Détail' },\r\n { name: 'badge', label: 'Badge' },\r\n { name: 'image', label: 'Image' },\r\n ];\r\n /** Colonnes proposées aux emplacements : libellé suivi du nom technique, par ordre alphabétique. */\r\n cardOptions: CardColumnOption[] = [];\r\n /** Images proposées : image de l'élément, colonnes image et icônes des types énumérés. */\r\n cardImageOptions: CardColumnOption[] = [];\r\n /** Colonne de chaque emplacement de la carte de la vue choisie (vide : rien). */\r\n cardSlots: Record<CardSlotName, string> = PresentationProfileService.emptySlots();\r\n /** Emplacements à leur chargement (repère des changements). */\r\n private loadedCardSlots = '';\r\n /** La vue choisie affiche la carte par défaut de la table (pas de carte propre). */\r\n usesDefaultCard = true;\r\n /** Libellé de la carte affichée par la vue choisie. */\r\n cardLabel = '';\r\n\r\n get hasCardChanges(): boolean {\r\n return JSON.stringify(this.cardSlots) !== this.loadedCardSlots;\r\n }\r\n\r\n private static emptySlots(): Record<CardSlotName, string> {\r\n return { title: '', text: '', detail: '', badge: '', image: '' };\r\n }\r\n\r\n /** Colonnes proposées aux emplacements de la carte, d'après le catalogue de la table. */\r\n private buildCardOptions(catalog: PresentationProfileItem[]): void {\r\n const byLabel = (a: CardColumnOption, b: CardColumnOption) => a.label.localeCompare(b.label, 'fr', { sensitivity: 'base' });\r\n // Libellé suivi du nom technique : des colonnes jointes portent le même libellé (« Libellé », « Nom »).\r\n const optionLabel = (i: PresentationProfileItem) => i.Label && i.Label !== i.ColumnKey ? `${i.Label} (${i.ColumnKey})` : i.ColumnKey!;\r\n this.cardOptions = catalog.map(i => ({ key: i.ColumnKey!, label: optionLabel(i) })).sort(byLabel);\r\n const imageTypes = [7, 8, 9, 10];\r\n this.cardImageOptions = [{ key: EntityImageKey, label: \"Image de l'élément\" },\r\n ...catalog.filter(i => imageTypes.includes(i.ColumnDisplayType ?? -1)).map(i => ({ key: i.ColumnKey!, label: optionLabel(i) })).sort(byLabel)];\r\n }\r\n\r\n /** Carte de la vue choisie : la sienne, à défaut la carte par défaut de la table. */\r\n private loadCard(view: PpView): void {\r\n this.cardSlots = PresentationProfileService.emptySlots();\r\n this.loadedCardSlots = JSON.stringify(this.cardSlots);\r\n this.usesDefaultCard = true;\r\n this.cardLabel = '';\r\n if (this.purpose !== PresentationProfilePurposes.Grid)\r\n return;\r\n this.data.getCardView({ MetaEntityKey: this.config.metaEntityKey, PresentationProfileId: view.id }).pipe(\r\n catchError(() => of(null)),\r\n takeUntil(this.destroy$),\r\n ).subscribe(result => {\r\n if (this.selectedView?.id !== view.id)\r\n return;\r\n const card = result?.Card;\r\n const slots = PresentationProfileService.emptySlots();\r\n for (const item of card?.Items ?? []) {\r\n const slot = CardSlotNames[item.CardSlot ?? -1];\r\n if (slot)\r\n slots[slot] = item.ColumnSourceType === 3 ? EntityImageKey : item.ColumnKey ?? '';\r\n }\r\n this.cardSlots = slots;\r\n this.loadedCardSlots = JSON.stringify(slots);\r\n this.usesDefaultCard = !card || card.PresentationProfileScope === PresentationProfileScopes.Default;\r\n this.cardLabel = card?.Label ?? '';\r\n });\r\n }\r\n\r\n /** « Carte par défaut » : plus de carte propre, la vue affichera la carte par défaut de la table. */\r\n resetCard(): void {\r\n this.cardSlots = PresentationProfileService.emptySlots();\r\n }\r\n\r\n /** Colonnes de la carte, avec leur emplacement. */\r\n private cardItems(): PresentationProfileItem[] {\r\n const byKey = new Map(this.allColumns.map(i => [i.ColumnKey, i]));\r\n const items: PresentationProfileItem[] = [];\r\n CardSlotNames.forEach((slot, index) => {\r\n const key = this.cardSlots[slot];\r\n if (!key)\r\n return;\r\n if (key === EntityImageKey)\r\n items.push({ ColumnKey: EntityImageKey, Label: \"Image de l'élément\", ColumnSourceType: 3, CardSlot: index } as PresentationProfileItem);\r\n else if (byKey.has(key))\r\n items.push({ ...byKey.get(key)!, Id: undefined, PresentationProfileId: undefined, CardSlot: index } as PresentationProfileItem);\r\n });\r\n return items;\r\n }\r\n\r\n /**\r\n * Carte modifiée : enregistrée pour la vue Grille donnée (une vue par défaut en lecture seule est\r\n * copiée par le serveur en une vue personnelle). Renvoie la vue Grille à afficher.\r\n */\r\n private saveCard(gridViewId: number | null): Observable<number | null> {\r\n if (gridViewId == null || !this.hasCardChanges || this.purpose !== PresentationProfilePurposes.Grid)\r\n return of(gridViewId);\r\n return this.data.saveGridCard({\r\n GridViewId: gridViewId,\r\n Profile: { MetaEntityKey: this.config.metaEntityKey, PresentationProfilePurpose: PresentationProfilePurposes.Card, Items: this.cardItems() } as PresentationProfile,\r\n }).pipe(\r\n map(res => {\r\n if (res?.Success === false)\r\n throw new Error(res.ErrorMessage ?? 'L\\'enregistrement de la carte a échoué');\r\n return res?.Id ?? gridViewId;\r\n }),\r\n );\r\n }\r\n\r\n readonly confirmed$ = new Subject<PpResult>();\r\n readonly cancelled$ = new Subject<void>();\r\n private destroy$ = new Subject<void>();\r\n\r\n private get purpose(): number { return this.config?.purpose ?? PresentationProfilePurposes.Grid; }\r\n\r\n get selectedCount(): number { return this.orderedSelection.length; }\r\n get isEmbedded(): boolean { return !!this.config?.embedded; }\r\n /** Vue choisie en lecture seule : vue par défaut, hors administrateur. */\r\n get isReadOnly(): boolean { return !!this.selectedView?.isDefault && !this.canEditDefault; }\r\n /** Vue modifiée dans l'éditeur standard (libellé, affichage d'une colonne...) : à enregistrer. */\r\n editedInEditor = false;\r\n\r\n get hasChanges(): boolean {\r\n const cur = this.orderedSelection.map(c => c.ColumnKey ?? '');\r\n if (this.editedInEditor || this.hasQueryChanges) return true;\r\n if (!this.loadedItemIds.length) return cur.length > 0;\r\n return cur.length !== this.loadedItemIds.length || cur.some((id, i) => id !== this.loadedItemIds[i]);\r\n }\r\n get allVisibleSelected(): boolean {\r\n return this.filteredColumns.length > 0 && this.filteredColumns.every(c => this.selectedIds.has(c.ColumnKey ?? ''));\r\n }\r\n get someVisibleSelected(): boolean {\r\n return this.filteredColumns.some(c => this.selectedIds.has(c.ColumnKey ?? '')) && !this.allVisibleSelected;\r\n }\r\n\r\n setup(config: PpConfig): void {\r\n this.config = config;\r\n this.tab = config?.tab ?? 'columns';\r\n this.loadData();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.destroy$.next();\r\n this.destroy$.complete();\r\n }\r\n\r\n getCatalogLabel(item: PresentationProfileItem): string {\r\n return this.naturalLabelByKey.get(item.ColumnKey ?? '') ?? item.ColumnKey ?? '';\r\n }\r\n\r\n /** Attribut personnalisé (et non colonne de la table ou de la vue). */\r\n isAttribute(item: PresentationProfileItem): boolean {\r\n return (item.ColumnSourceType ?? 0) === 2;\r\n }\r\n\r\n // ---------- Chargement ----------\r\n\r\n private loadData(): void {\r\n this.isLoading = true;\r\n forkJoin({\r\n ctx: this.resolver.loadContext({\r\n metaEntityKey: this.config.metaEntityKey,\r\n purpose: this.purpose,\r\n supplierId: this.config.supplierId,\r\n roleId: this.config.roleId,\r\n }).pipe(catchError(() => of(null))),\r\n views: this.loadViews(),\r\n }).pipe(takeUntil(this.destroy$)).subscribe(({ ctx, views }) => {\r\n const catalog = (ctx?.Catalog ?? []).filter(i => !!i.ColumnKey);\r\n this.naturalLabelByKey = new Map(catalog.map(i => [i.ColumnKey!, i.Label ?? i.ColumnKey!]));\r\n this.allColumns = catalog;\r\n this.buildFilterColumns(catalog);\r\n this.buildCardOptions(catalog);\r\n this.applyViews(views);\r\n this.applyFilter();\r\n\r\n const current = this.views.find(v => v.id === this.config.viewId) ?? this.views.find(v => v.isCurrent) ?? this.views[0] ?? null;\r\n if (current)\r\n this.selectView(current);\r\n else {\r\n // Sans vue : colonnes de la table, rien d'enregistré.\r\n this.setSelection(catalog.filter(c => !this.isAttribute(c)), []);\r\n this.isLoading = false;\r\n }\r\n });\r\n }\r\n\r\n private loadViews(): Observable<PresentationViews | null> {\r\n return this.data.getUserViews({ MetaEntityKey: this.config.metaEntityKey, PresentationProfilePurpose: this.purpose })\r\n .pipe(catchError(() => of(null)));\r\n }\r\n\r\n private applyViews(result: PresentationViews | null): void {\r\n this.canEditDefault = !!result?.CanEditDefault;\r\n this.views = (result?.Views ?? []).filter(v => v.Id != null).map(v => ({\r\n id: v.Id!,\r\n label: v.Label ?? '',\r\n isDefault: v.PresentationProfileScope === PresentationProfileScopes.Default,\r\n isCurrent: v.Id === result?.SelectedId,\r\n profile: v,\r\n }));\r\n }\r\n\r\n /** Relit les vues, puis choisit la vue donnée (à défaut la vue affichée). */\r\n private reloadViews(selectId?: number | null): void {\r\n this.loadViews().pipe(takeUntil(this.destroy$)).subscribe(result => {\r\n this.applyViews(result);\r\n const view = this.views.find(v => v.id === selectId) ?? this.views.find(v => v.isCurrent) ?? this.views[0] ?? null;\r\n if (view) this.selectView(view);\r\n });\r\n }\r\n\r\n /** Choisit une vue : ses colonnes, dans leur ordre, passent à droite. */\r\n selectView(view: PpView): void {\r\n if (this.renamingId != null && this.renamingId !== view.id)\r\n this.cancelRename();\r\n this.selectedView = view;\r\n this.editedInEditor = false;\r\n this.message = null;\r\n this.isLoading = true;\r\n this.loadQueries(view);\r\n this.loadCard(view);\r\n this.itemData.getPresentationProfileItems(view.id).pipe(\r\n map(items => items ?? []),\r\n catchError(() => of([] as PresentationProfileItem[])),\r\n takeUntil(this.destroy$),\r\n ).subscribe(items => {\r\n const catalogByKey = new Map(this.allColumns.map(i => [i.ColumnKey!, i]));\r\n const columns = [...items]\r\n .filter(i => !!i.ColumnKey && catalogByKey.has(i.ColumnKey))\r\n .sort((a, b) => (a.OrderNumber ?? 0) - (b.OrderNumber ?? 0))\r\n .map(i => ({ ...catalogByKey.get(i.ColumnKey!), ...i } as PresentationProfileItem));\r\n this.setSelection(columns, columns.map(c => c.ColumnKey!));\r\n this.isLoading = false;\r\n });\r\n }\r\n\r\n private setSelection(cols: PresentationProfileItem[], loadedIds: string[]): void {\r\n this.orderedSelection = [...cols];\r\n this.selectedIds = new Set(cols.map(c => c.ColumnKey ?? ''));\r\n this.loadedItemIds = loadedIds;\r\n }\r\n\r\n // ---------- Actions sur les vues ----------\r\n\r\n /**\r\n * « + » : nouvelle vue de l'utilisateur, copie de la vue choisie (à défaut de la vue par défaut), qui\r\n * devient la vue choisie. Copie de la vue affichée par la grille : avec le tri et le filtre en cours\r\n * dans la grille (tri, FilterPanel et filtre additionnel).\r\n */\r\n createView(): void {\r\n const source = this.selectedView ?? this.views.find(v => v.isDefault) ?? null;\r\n if (!source)\r\n return;\r\n const queries = source.isCurrent ? this.config.gridQueries : undefined;\r\n this.runViewAction(this.data.duplicateView({\r\n PresentationProfileId: source.id,\r\n Label: PresentationProfileService.NewViewLabel,\r\n ...(queries ? { SortQuery: queries.sortQuery, FilterQuery: queries.filterQuery } : {}),\r\n }), id => id);\r\n }\r\n\r\n /** Libellé proposé pour une nouvelle vue (numéroté par le serveur s'il est pris). */\r\n private static readonly NewViewLabel = 'Nouvelle vue';\r\n\r\n /** Duplique la vue en une nouvelle vue de l'utilisateur, qui devient la vue choisie. */\r\n duplicateView(view: PpView): void {\r\n this.runViewAction(this.data.duplicateView({ PresentationProfileId: view.id }), id => id);\r\n }\r\n\r\n /** Supprime une vue de l'utilisateur ; la vue choisie redevient la vue affichée. */\r\n deleteView(view: PpView): void {\r\n if (view.isDefault) return;\r\n this.runViewAction(this.data.deleteView({ PresentationProfileId: view.id }),\r\n () => this.selectedView?.id === view.id ? null : this.selectedView?.id ?? null);\r\n }\r\n\r\n startRename(view: PpView): void {\r\n this.renamingId = view.id;\r\n this.renameLabel = view.label;\r\n }\r\n\r\n cancelRename(): void {\r\n this.renamingId = null;\r\n this.renameLabel = '';\r\n }\r\n\r\n /** Renomme la vue ; ses colonnes et la vue affichée ne changent pas. */\r\n confirmRename(view: PpView): void {\r\n const label = this.renameLabel?.trim();\r\n if (!label || label === view.label) { this.cancelRename(); return; }\r\n this.cancelRename();\r\n this.runViewAction(this.data.renameView({ PresentationProfileId: view.id, Label: label }), () => view.id);\r\n }\r\n\r\n /** Peut-on renommer ou supprimer la vue (vue de l'utilisateur, ou administrateur) ? */\r\n canEdit(view: PpView): boolean {\r\n return !view.isDefault || this.canEditDefault;\r\n }\r\n\r\n private runViewAction(action: Observable<{ Success?: boolean; Id?: number; ErrorMessage?: string } | null>, nextId: (id: number | null) => number | null): void {\r\n this.message = null;\r\n action.pipe(catchError(() => of(null)), takeUntil(this.destroy$)).subscribe(res => {\r\n if (res?.Success === false || res == null)\r\n this.message = res?.ErrorMessage ?? 'L\\'action sur la vue a échoué';\r\n this.reloadViews(nextId(res?.Id ?? null));\r\n });\r\n }\r\n\r\n // ---------- Colonnes ----------\r\n\r\n onSearch(): void { this.applyFilter(); }\r\n\r\n private applyFilter(): void {\r\n let base = this.allColumns;\r\n if (this.searchText?.trim()) {\r\n const q = this.searchText.toLowerCase();\r\n base = base.filter(c =>\r\n (c.Label ?? c.ColumnKey ?? '').toLowerCase().includes(q) ||\r\n (c.ColumnKey ?? '').toLowerCase().includes(q)\r\n );\r\n }\r\n this.filteredColumns = [...base];\r\n }\r\n\r\n isSelected(col: PresentationProfileItem): boolean { return this.selectedIds.has(col.ColumnKey ?? ''); }\r\n\r\n toggleItem(col: PresentationProfileItem): void {\r\n const key = col.ColumnKey ?? '';\r\n if (this.selectedIds.has(key)) {\r\n this.selectedIds.delete(key);\r\n this.orderedSelection = this.orderedSelection.filter(c => c.ColumnKey !== key);\r\n } else {\r\n this.selectedIds.add(key);\r\n this.orderedSelection = [...this.orderedSelection, { ...col, Label: null }];\r\n }\r\n }\r\n\r\n toggleAll(): void {\r\n if (this.allVisibleSelected) {\r\n this.filteredColumns.forEach(c => this.selectedIds.delete(c.ColumnKey ?? ''));\r\n const visKeys = new Set(this.filteredColumns.map(c => c.ColumnKey ?? ''));\r\n this.orderedSelection = this.orderedSelection.filter(c => !visKeys.has(c.ColumnKey ?? ''));\r\n } else {\r\n const toAdd = this.filteredColumns.filter(c => !this.selectedIds.has(c.ColumnKey ?? ''));\r\n toAdd.forEach(c => this.selectedIds.add(c.ColumnKey ?? ''));\r\n this.orderedSelection = [...this.orderedSelection, ...toAdd.map(c => ({ ...c, Label: null as string | null | undefined }))];\r\n }\r\n }\r\n\r\n removeFromSelection(col: PresentationProfileItem): void {\r\n const key = col.ColumnKey ?? '';\r\n this.selectedIds.delete(key);\r\n this.orderedSelection = this.orderedSelection.filter(c => c.ColumnKey !== key);\r\n }\r\n\r\n onDrop(event: CdkDragDrop<PresentationProfileItem[]>): void {\r\n if (event.previousIndex === event.currentIndex) return;\r\n moveItemInArray(this.orderedSelection, event.previousIndex, event.currentIndex);\r\n }\r\n\r\n // ---------- Appliquer ----------\r\n\r\n /**\r\n * « Appliquer » : les colonnes sont enregistrées dans la vue choisie si elles ont changé (vue de\r\n * l'utilisateur, ou vue par défaut pour un administrateur ; sinon une nouvelle vue de l'utilisateur),\r\n * puis la vue est affichée dans la grille.\r\n */\r\n confirm(): void { this.performSave(); }\r\n\r\n /**\r\n * Reprend la vue modifiée dans l'éditeur standard (partie droite de la fenêtre) : libellé, colonnes\r\n * (ordre, libellés, affichage), tri et filtre ; « Appliquer » l'enregistre ensuite comme avant.\r\n * @param edited Vue telle que modifiée dans l'éditeur.\r\n */\r\n applyEdited(edited: PresentationProfile): void {\r\n const view = this.selectedView;\r\n if (!view || !edited)\r\n return;\r\n this.editedInEditor = true;\r\n if (edited.Label)\r\n view.profile = { ...view.profile, Label: edited.Label };\r\n if (edited.Items) {\r\n const catalogByKey = new Map(this.allColumns.map(i => [i.ColumnKey!, i]));\r\n const columns = [...edited.Items]\r\n .filter(i => !!i.ColumnKey)\r\n .sort((a, b) => (a.OrderNumber ?? 0) - (b.OrderNumber ?? 0))\r\n .map(i => ({ ...(catalogByKey.get(i.ColumnKey!) ?? {}), ...i } as PresentationProfileItem));\r\n this.orderedSelection = columns;\r\n this.selectedIds = new Set(columns.map(c => c.ColumnKey ?? ''));\r\n }\r\n if (edited.SortQuery !== undefined || edited.FilterQuery !== undefined)\r\n this.loadQueries({ ...view, profile: { ...view.profile, SortQuery: edited.SortQuery ?? view.profile.SortQuery, FilterQuery: edited.FilterQuery ?? view.profile.FilterQuery } });\r\n }\r\n\r\n save(): void { this.performSave(); }\r\n\r\n cancel(): void { this.cancelled$.next(); }\r\n\r\n private performSave(): void {\r\n const view = this.selectedView;\r\n const result: PpResult = { purpose: this.purpose, profileId: view?.id ?? null, columns: [...this.orderedSelection] };\r\n this.isSaving = true;\r\n this.message = null;\r\n\r\n const failed = (message?: string) => {\r\n this.isSaving = false;\r\n this.message = message ?? 'L\\'enregistrement de la vue a échoué';\r\n };\r\n // Vue enregistrée : sa carte, si elle a changé, puis la vue est affichée.\r\n const done = (id: number | null) => this.saveCard(id).subscribe({\r\n next: gridId => {\r\n this.isSaving = false;\r\n result.profileId = gridId;\r\n this.confirmed$.next(result);\r\n },\r\n error: err => failed(err?.message),\r\n });\r\n\r\n // Sans changement : la vue choisie est seulement affichée.\r\n if (view && !this.hasChanges) {\r\n this.data.selectView({\r\n MetaEntityKey: this.config.metaEntityKey,\r\n PresentationProfilePurpose: this.purpose,\r\n PresentationProfileId: view.isDefault ? undefined : view.id,\r\n }).pipe(catchError(() => of(null))).subscribe(() => done(view.id));\r\n return;\r\n }\r\n\r\n // Vue par défaut modifiée par un administrateur : enregistrée telle quelle, puis affichée.\r\n const queries = this.currentQueries();\r\n if (view?.isDefault && this.canEditDefault) {\r\n const ctx = PresentationProfileTransformer.toAdminConfigContext(this.orderedSelection,\r\n { ...view.profile, SortQuery: queries.sort, FilterQuery: queries.filter } as PresentationProfile);\r\n this.data.savePresentationProfile(ctx).subscribe({\r\n next: res => res?.Success === false ? failed(res.ErrorMessage) : this.data.selectView({\r\n MetaEntityKey: this.config.metaEntityKey, PresentationProfilePurpose: this.purpose,\r\n }).pipe(catchError(() => of(null))).subscribe(() => done(view.id)),\r\n error: () => failed(),\r\n });\r\n return;\r\n }\r\n\r\n // Vue de l'utilisateur, ou nouvelle vue (vue par défaut en lecture seule) : enregistrée et affichée par le serveur.\r\n const own = view && !view.isDefault ? view.profile : null;\r\n const ctx = PresentationProfileTransformer.toUserPreferenceContext(\r\n this.orderedSelection, this.config.metaEntityKey, this.purpose, null,\r\n { ...(own ? { Id: own.Id, Label: own.Label } : {}), SortQuery: queries.sort, FilterQuery: queries.filter } as PresentationProfile,\r\n );\r\n this.data.savePresentationProfile(ctx).subscribe({\r\n next: res => res?.Success === false ? failed(res.ErrorMessage) : done(res?.Id ?? null),\r\n error: () => failed(),\r\n });\r\n }\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport {\r\n ChangeDetectionStrategy, Component, ComponentRef, DoCheck, EventEmitter, Input, OnDestroy, OnInit, Output, TemplateRef, ViewChild,\r\n ViewContainerRef,\r\n} from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { PresentationProfile, PresentationProfilePurposes } from '@dflat-core/web/meta-model';\r\nimport { Guid } from 'guid-typescript';\r\nimport { Subject } from 'rxjs';\r\nimport { takeUntil } from 'rxjs/operators';\r\n\r\nimport { PresentationProfileEditorComponent } from '../editor-components/presentation-profile-editor.component';\r\nimport { PpConfig, PpResult } from './presentation-profile-transformer';\r\nimport { PresentationProfileService } from './presentation-profile.service';\r\n\r\n/**\r\n * Fenêtre des vues personnalisées d'une grille : à gauche les vues de la table (vue par défaut, vues de\r\n * l'utilisateur : nouvelle vue « + », renommer, dupliquer, supprimer), à droite l'éditeur standard de la\r\n * vue choisie, celui de l'écran « Vues personnalisées » (onglets Colonnes, Tri et Filtres), sur une façade\r\n * propre à la fenêtre, avec un onglet « Carte » : la carte de la vue, à défaut la carte par défaut de la\r\n * table. « Appliquer » reprend la vue modifiée dans l'éditeur, l'enregistre avec sa carte (une vue par\r\n * défaut en lecture seule donne une nouvelle vue de l'utilisateur) et l'affiche dans la grille.\r\n */\r\n@Component({\r\n selector: 'alg-presentation-profile',\r\n standalone: true,\r\n imports: [CommonModule, FormsModule, DragDropModule],\r\n providers: [PresentationProfileService],\r\n templateUrl: './presentation-profile.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n styleUrls: ['./presentation-profile.component.scss'],\r\n})\r\nexport class PresentationProfileComponent implements OnInit, DoCheck, OnDestroy {\r\n @Input() config!: PpConfig;\r\n @Output() readonly confirmed = new EventEmitter<PpResult>();\r\n @Output() readonly cancelled = new EventEmitter<void>();\r\n\r\n /** Emplacement de l'éditeur standard de la vue choisie. */\r\n @ViewChild('editorHost', { read: ViewContainerRef, static: true }) editorHost!: ViewContainerRef;\r\n /** Contenu de l'onglet « Carte » de l'éditeur. */\r\n @ViewChild('cardTab', { static: true }) cardTab!: TemplateRef<unknown>;\r\n\r\n /** Façade propre à la fenêtre : la vue choisie y est la ligne sélectionnée de l'éditeur. */\r\n private readonly guid = Guid.create();\r\n private editor?: ComponentRef<PresentationProfileEditorComponent>;\r\n /** Vue donnée à l'éditeur (repère du changement de vue choisie). */\r\n private editedViewId: number | null = null;\r\n\r\n private readonly destroy$ = new Subject<void>();\r\n\r\n constructor(readonly svc: PresentationProfileService, private readonly app: ApplicationService) {}\r\n\r\n /** Façade de l'éditeur de la fenêtre. */\r\n private get facade() {\r\n return this.app.EntityFacadeRegistryService.getFacade<PresentationProfile>(MetaEntityKeys.PresentationProfile, this.guid);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.svc.setup(this.config);\r\n this.svc.confirmed$.pipe(takeUntil(this.destroy$)).subscribe(r => this.confirmed.emit(r));\r\n this.svc.cancelled$.pipe(takeUntil(this.destroy$)).subscribe(() => this.cancelled.emit());\r\n\r\n this.editor = this.editorHost.createComponent(PresentationProfileEditorComponent);\r\n this.editor.setInput('entityKey', MetaEntityKeys.PresentationProfile);\r\n this.editor.setInput('guid', this.guid);\r\n // Pas d'onglet « Propriétés » : la vue se choisit à gauche, sa table est celle de la grille.\r\n this.editor.setInput('showProperties', false);\r\n // Onglet « Carte » : la carte d'une vue Grille.\r\n if ((this.config?.purpose ?? PresentationProfilePurposes.Grid) === PresentationProfilePurposes.Grid)\r\n this.editor.setInput('cardTemplate', this.cardTab);\r\n // Onglet « Filtres » : les filtres de l'écran (FilterPanel) de la grille.\r\n this.editor.setInput('panelFields', this.config?.panelFields ?? []);\r\n }\r\n\r\n /** La vue choisie à gauche change : l'éditeur la reçoit. */\r\n ngDoCheck(): void {\r\n const view = this.svc.selectedView;\r\n const id = view?.id ?? null;\r\n if (id === this.editedViewId)\r\n return;\r\n this.editedViewId = id;\r\n if (view)\r\n this.facade.selection.select([view.profile]);\r\n else\r\n this.facade.selection.clear();\r\n }\r\n\r\n /** « Appliquer » : la vue telle que modifiée dans l'éditeur est enregistrée, puis affichée dans la grille. */\r\n apply(): void {\r\n const view = this.svc.selectedView;\r\n if (view) {\r\n const edited = this.facade.change.getModified(view.id);\r\n if (edited)\r\n this.svc.applyEdited(edited);\r\n }\r\n this.svc.confirm();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.editor?.destroy();\r\n this.destroy$.next();\r\n this.destroy$.complete();\r\n }\r\n}\r\n","<!-- ── Header ─────────────────────────────────────────────────────────────── -->\r\n<div class=\"csl-header\">\r\n <div class=\"csl-header__left\">\r\n <h4 class=\"csl-title\">{{ svc.config?.title || 'Sélection des colonnes' }}</h4>\r\n </div>\r\n @if (!svc.isEmbedded) {\r\n <button class=\"csl-icon-btn\" type=\"button\" (click)=\"svc.cancel()\" aria-label=\"Fermer\">&#x2715;</button>\r\n }\r\n</div>\r\n\r\n<!-- ── Body : vues à gauche, éditeur standard de la vue choisie à droite ── -->\r\n<div class=\"csl-body\">\r\n <div class=\"csl-panels\">\r\n\r\n <!-- ── GAUCHE : vues personnalisées ─────────────────────────────────── -->\r\n <div class=\"csl-panel csl-panel--groups\">\r\n <div class=\"csl-panel__header\">\r\n <span class=\"csl-panel__label\">Vues personnalisées</span>\r\n <span class=\"csl-badge\">{{ svc.views.length }}</span>\r\n <button class=\"gps-profile-btn csl-add-view\" type=\"button\" title=\"Nouvelle vue (copie de la vue choisie)\"\r\n [disabled]=\"svc.isLoading || svc.isSaving\" (click)=\"svc.createView()\">\r\n <i class=\"fa fa-plus\"></i>\r\n </button>\r\n </div>\r\n <ul class=\"csl-group-list csl-scroll\">\r\n @for (view of svc.views; track view.id) {\r\n <li class=\"csl-group-item csl-view-item\"\r\n [class.csl-group-item--active]=\"svc.selectedView?.id === view.id\"\r\n [class.csl-group-item--standard]=\"view.isDefault\"\r\n [class.csl-group-item--profile]=\"!view.isDefault\"\r\n (click)=\"svc.selectView(view)\">\r\n @if (svc.renamingId === view.id) {\r\n <input class=\"gps-rename-input\" type=\"text\" maxlength=\"100\"\r\n [(ngModel)]=\"svc.renameLabel\"\r\n (click)=\"$event.stopPropagation()\"\r\n (keydown.enter)=\"svc.confirmRename(view)\"\r\n (keydown.escape)=\"svc.cancelRename()\">\r\n <div class=\"gps-rename-actions\" (click)=\"$event.stopPropagation()\">\r\n <button class=\"gps-rename-btn gps-rename-btn--ok\" type=\"button\" title=\"Renommer\" (click)=\"svc.confirmRename(view)\">\r\n <i class=\"fa fa-check\"></i>\r\n </button>\r\n <button class=\"gps-rename-btn gps-rename-btn--cancel\" type=\"button\" title=\"Annuler\" (click)=\"svc.cancelRename()\">\r\n <i class=\"fa fa-times\"></i>\r\n </button>\r\n </div>\r\n } @else {\r\n <span class=\"csl-group-item__name\" [title]=\"view.label\">\r\n @if (view.isDefault) { <i class=\"fa fa-lock csl-view-icon\" title=\"Vue par défaut\"></i> }\r\n {{ view.label }}\r\n </span>\r\n <div class=\"csl-group-item__meta\">\r\n @if (view.isCurrent) {\r\n <span class=\"csl-badge csl-badge--primary csl-badge--sm\" title=\"Vue affichée par la grille\">\r\n <i class=\"fa fa-eye\"></i>\r\n </span>\r\n }\r\n <div class=\"gps-profile-actions\" (click)=\"$event.stopPropagation()\">\r\n @if (svc.canEdit(view)) {\r\n <button class=\"gps-profile-btn\" type=\"button\" title=\"Renommer\" (click)=\"svc.startRename(view)\">\r\n <i class=\"fa fa-pencil\"></i>\r\n </button>\r\n }\r\n <button class=\"gps-profile-btn\" type=\"button\" title=\"Dupliquer\" (click)=\"svc.duplicateView(view)\">\r\n <i class=\"fa fa-files-o\"></i>\r\n </button>\r\n @if (!view.isDefault) {\r\n <button class=\"gps-profile-btn gps-profile-btn--danger\" type=\"button\" title=\"Supprimer\" (click)=\"svc.deleteView(view)\">\r\n <i class=\"fa fa-trash-o\"></i>\r\n </button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </li>\r\n }\r\n @empty {\r\n <li class=\"csl-group-section-label\">Aucune vue enregistrée</li>\r\n }\r\n </ul>\r\n @if (svc.isReadOnly) {\r\n <div class=\"csl-view-note\">\r\n <i class=\"fa fa-info-circle\"></i>\r\n Vue par défaut en lecture seule : « Appliquer » crée une nouvelle vue personnelle.\r\n </div>\r\n }\r\n </div>\r\n\r\n <!-- ── DROITE : éditeur standard de la vue choisie (Colonnes, Tri, Filtres, Carte) ── -->\r\n <div class=\"csl-tabbed csl-editor\">\r\n <ng-container #editorHost></ng-container>\r\n </div>\r\n\r\n <!-- Onglet « Carte » de l'éditeur : carte de la vue choisie, à défaut la carte par défaut de la table -->\r\n <ng-template #cardTab>\r\n <div class=\"csl-card\">\r\n <p class=\"csl-card__hint\">\r\n @if (svc.usesDefaultCard) {\r\n Cette vue affiche la carte par défaut de la table : vos choix lui donnent sa propre carte.\r\n } @else {\r\n Carte propre à la vue « {{ svc.selectedView?.label }} ».\r\n }\r\n </p>\r\n @for (slot of svc.cardSlotList; track slot.name) {\r\n <label class=\"csl-card__slot\">\r\n <span>{{ slot.label }}</span>\r\n <select class=\"form-control\" [id]=\"'card-slot-' + slot.name\" [(ngModel)]=\"svc.cardSlots[slot.name]\">\r\n <option value=\"\">{{ slot.name === 'image' ? 'Aucune' : 'Aucun' }}</option>\r\n @for (option of (slot.name === 'image' ? svc.cardImageOptions : svc.cardOptions); track option.key) {\r\n <option [value]=\"option.key\">{{ option.label }}</option>\r\n }\r\n </select>\r\n </label>\r\n }\r\n @if (!svc.usesDefaultCard && !(svc.selectedView?.isDefault)) {\r\n <div class=\"csl-card__actions\">\r\n <button class=\"csl-btn csl-btn--secondary\" type=\"button\" (click)=\"svc.resetCard()\"\r\n title=\"La vue n'a plus de carte propre : elle affiche la carte par défaut de la table\">\r\n Revenir à la carte par défaut\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n\r\n<!-- ── Footer ─────────────────────────────────────────────────────────────── -->\r\n<div class=\"csl-footer\">\r\n <span class=\"csl-footer__count\">\r\n @if (svc.message) {\r\n <span class=\"csl-footer__error\">{{ svc.message }}</span>\r\n } @else if (svc.selectedView) {\r\n Vue « {{ svc.selectedView.label }} » — « Appliquer » l'enregistre et l'affiche dans la grille\r\n }\r\n </span>\r\n <div class=\"csl-footer__actions\">\r\n @if (!svc.isEmbedded) {\r\n <button class=\"csl-btn csl-btn--secondary\" type=\"button\" (click)=\"svc.cancel()\">Annuler</button>\r\n }\r\n <button class=\"csl-btn csl-btn--primary\" type=\"button\"\r\n (click)=\"apply()\" [disabled]=\"!svc.selectedView || svc.isSaving || svc.isLoading\">\r\n @if (svc.isSaving) {\r\n <span class=\"csl-spinner csl-spinner--sm csl-spinner--light\"></span>&nbsp;\r\n }\r\n Appliquer\r\n </button>\r\n </div>\r\n</div>\r\n","import { Injectable } from '@angular/core';\r\nimport { DflatModalService } from '@dflat-core/web/core-ux';\r\nimport { Observable, Subject } from 'rxjs';\r\nimport { take } from 'rxjs/operators';\r\n\r\nimport { PpConfig, PpExportSplit, PpResult, PresentationProfileTransformer } from './presentation-profile-transformer';\r\nimport { PresentationProfileComponent } from './presentation-profile.component';\r\n\r\n@Injectable()\r\nexport class PresentationProfileActionService {\r\n constructor(private readonly modalService: DflatModalService) {}\r\n\r\n private readonly selectionSubject = new Subject<PpResult>();\r\n private readonly cancelledSubject = new Subject<void>();\r\n\r\n readonly selectionConfirmed$ = this.selectionSubject.asObservable();\r\n readonly selectionCancelled$ = this.cancelledSubject.asObservable();\r\n\r\n open(config: PpConfig): void {\r\n const ref = this.modalService.show(PresentationProfileComponent, {\r\n class: 'modal-xl',\r\n keyboard: true,\r\n initialState: { config },\r\n });\r\n if (!ref.content) return;\r\n\r\n ref.content.confirmed.pipe(take(1)).subscribe(result => {\r\n this.selectionSubject.next(result);\r\n ref.hide();\r\n });\r\n ref.content.cancelled.pipe(take(1)).subscribe(() => {\r\n this.cancelledSubject.next();\r\n ref.hide();\r\n });\r\n }\r\n\r\n splitForExport(columns: PpResult['columns']): PpExportSplit {\r\n return PresentationProfileTransformer.splitForExport(columns);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { DflatModalService, DialogComponent, DialogComponentParameter } from '@dflat-core/web/core-ux';\r\nimport { Observable, of } from 'rxjs';\r\nimport { catchError, filter, map, switchMap, take } from 'rxjs/operators';\r\nimport { ColumnDescriptor } from '@dflat-core/web/core-model';\r\nimport { GridColumnChoice, GridViewList, IPpService, PpCardView, PpGridConfig, PpViewQueries, SelectorMapperServiceBase } from '@dflat-core/web/core-ux';\r\nimport { PresentationProfileDataService } from '@dflat-core/web/meta-data';\r\nimport { PresentationProfile, PresentationProfileFilterViewModel, PresentationProfilePurposes, PresentationProfileScopes, PresentationProfileView } from '@dflat-core/web/meta-model';\r\nimport { SaveViewPromptComponent, SaveViewPromptResult } from './save-view-prompt/save-view-prompt.component';\r\nimport { PresentationProfileScreenComponent } from '../data-components/presentation-profile-screen.component';\r\nimport { PresentationProfileItem } from '@dflat-core/web/meta-model';\r\nimport { PpExportSplit, PresentationProfileTransformer } from './presentation-profile-transformer';\r\nimport { PresentationProfileActionService } from './presentation-profile-action-service';\r\nimport { PresentationProfileResolver, PpResolverConfig } from './presentation-profile-resolver.service';\r\n\r\n/** Global entry point for all Presentation Profile concerns. Bound to PP_SERVICE injection token. */\r\n@Injectable()\r\nexport class PpFacadeService implements IPpService {\r\n constructor(\r\n private readonly resolver: PresentationProfileResolver,\r\n private readonly actionService: PresentationProfileActionService,\r\n private readonly selectorMapper: SelectorMapperServiceBase,\r\n private readonly profileData: PresentationProfileDataService,\r\n private readonly modalService: DflatModalService,\r\n ) {}\r\n\r\n openColumnSelector(config: { title: string; metaEntityKey: string; supplierId?: number | null; roleId?: number | null; viewId?: number | null;\r\n tab?: 'columns' | 'filters'; filterColumns?: any[]; panelFields?: any[]; gridQueries?: PpViewQueries }): void {\r\n this.actionService.open({ ...config, purpose: PresentationProfilePurposes.Grid });\r\n }\r\n\r\n openProfileEditor(config: { title: string; metaEntityKey: string; viewId?: number | null }): Observable<unknown> {\r\n return this.selectorMapper.openComponentModal<PresentationProfileView, PresentationProfileFilterViewModel>(\r\n config.title,\r\n PresentationProfileScreenComponent,\r\n component => {\r\n // Écran des profils de la table, avec son éditeur et ses actions d'enregistrement.\r\n component.facade.layout.enablePropertyPanel();\r\n component.facade.layout.setShowPropertyPanel(true);\r\n ['add', 'save', 'delete'].forEach(name => component.facade.actions.showAction(name));\r\n component.facade.filter.setFilter({ MetaEntityKey: config.metaEntityKey } as Partial<PresentationProfileFilterViewModel>);\r\n // Positionné sur la vue affichée par la grille, dès les vues chargées.\r\n if (config.viewId != null)\r\n setTimeout(() => component.facade.data.data$?.pipe(\r\n filter(res => !!res?.Values?.length),\r\n take(1),\r\n ).subscribe(res => {\r\n const view = res.Values.find(v => v.Id === config.viewId);\r\n if (view)\r\n component.facade.selection.select([view]);\r\n }));\r\n },\r\n undefined,\r\n {},\r\n { okLabel: 'Fermer', showButtons: true, canClose: true },\r\n );\r\n }\r\n\r\n openExportSelector(config: { title: string; metaEntityKey: string; supplierId?: number | null; roleId?: number | null }): void {\r\n this.actionService.open({ ...config, purpose: PresentationProfilePurposes.Export });\r\n }\r\n\r\n loadViews(config: PpGridConfig): Observable<GridViewList> {\r\n return this.profileData.getUserViews({\r\n MetaEntityKey: config.metaEntityKey,\r\n PresentationProfilePurpose: PresentationProfilePurposes.Grid,\r\n }).pipe(\r\n map(res => ({\r\n views: (res?.Views ?? []).filter(v => v.Id != null).map(v => ({\r\n id: v.Id!,\r\n label: v.Label ?? '',\r\n isDefault: v.PresentationProfileScope === PresentationProfileScopes.Default,\r\n sortQuery: v.SortQuery ?? null,\r\n filterQuery: v.FilterQuery ?? null,\r\n })),\r\n selectedId: res?.SelectedId ?? null,\r\n canEditDefault: !!res?.CanEditDefault,\r\n } as GridViewList)),\r\n catchError(() => of({ views: [], selectedId: null, canEditDefault: false } as GridViewList)),\r\n );\r\n }\r\n\r\n selectView(config: PpGridConfig, viewId: number | null): Observable<unknown> {\r\n return this.profileData.selectView({\r\n MetaEntityKey: config.metaEntityKey,\r\n PresentationProfilePurpose: PresentationProfilePurposes.Grid,\r\n PresentationProfileId: viewId ?? undefined,\r\n });\r\n }\r\n\r\n saveColumnOrder(config: PpGridConfig & { title: string }, columnOrder: string[], queries?: PpViewQueries): void {\r\n if (!config?.metaEntityKey || !columnOrder?.length)\r\n return;\r\n\r\n // Vue affichée par la grille : celle de l'utilisateur est écrasée, la vue par défaut donne une nouvelle vue.\r\n this.loadViews(config).pipe(take(1)).subscribe(list => {\r\n const selected = list.views.find(v => v.id === list.selectedId);\r\n const ownView = selected && !selected.isDefault ? selected : null;\r\n\r\n this.askSaveView(config.title, !ownView, ownView?.label ?? '', false).subscribe(answer => {\r\n if (!answer.save)\r\n return;\r\n this.writeColumnOrder(config, columnOrder, ownView?.id ?? null, ownView ? null : answer.label, queries).subscribe();\r\n });\r\n });\r\n }\r\n\r\n confirmLeaveView(config: PpGridConfig & { title: string }, columnOrder: string[], queries?: PpViewQueries): Observable<boolean> {\r\n if (!config?.metaEntityKey || !columnOrder?.length)\r\n return of(true);\r\n return this.loadViews(config).pipe(\r\n take(1),\r\n switchMap(list => {\r\n const selected = list.views.find(v => v.id === list.selectedId);\r\n const ownView = selected && !selected.isDefault ? selected : null;\r\n return this.askSaveView(config.title, !ownView, ownView?.label ?? '', false).pipe(\r\n switchMap(answer => !answer.save\r\n ? of(true)\r\n : this.writeColumnOrder(config, columnOrder, ownView?.id ?? null, ownView ? null : answer.label, queries).pipe(map(() => false))),\r\n );\r\n }),\r\n catchError(() => of(true)),\r\n );\r\n }\r\n\r\n saveViewFilter(config: PpGridConfig & { title: string }, columnOrder: string[], queries: PpViewQueries): Observable<boolean> {\r\n if (!config?.metaEntityKey || !columnOrder?.length)\r\n return of(false);\r\n return this.loadViews(config).pipe(\r\n take(1),\r\n switchMap(list => {\r\n const selected = list.views.find(v => v.id === list.selectedId) ?? list.views.find(v => v.isDefault);\r\n if (!selected)\r\n return of(false);\r\n if (!selected.isDefault)\r\n return this.writeColumnOrder(config, columnOrder, selected.id, null, queries);\r\n if (!list.canEditDefault)\r\n return of(false);\r\n // Vue par défaut, administrateur : enregistrée telle quelle (le serveur garde son libellé technique).\r\n return this.resolver.loadContext({ ...config, purpose: PresentationProfilePurposes.Grid }).pipe(\r\n take(1),\r\n switchMap(ctx => {\r\n const resolved = new Map((ctx?.Resolved ?? []).map(i => [i.ColumnKey, i]));\r\n const catalog = new Map((ctx?.Catalog ?? []).map(i => [i.ColumnKey, i]));\r\n const items = columnOrder.map(key => resolved.get(key) ?? catalog.get(key)).filter((i): i is PresentationProfileItem => !!i);\r\n if (!items.length)\r\n return of(false);\r\n const request = PresentationProfileTransformer.toAdminConfigContext(items, {\r\n Id: selected.id,\r\n Label: selected.label,\r\n MetaEntityKey: config.metaEntityKey,\r\n PresentationProfilePurpose: PresentationProfilePurposes.Grid,\r\n PresentationProfileScope: PresentationProfileScopes.Default,\r\n SortQuery: queries.sortQuery,\r\n FilterQuery: queries.filterQuery,\r\n } as PresentationProfile);\r\n return this.profileData.savePresentationProfile(request).pipe(map(result => !!result && (result as any).Success !== false));\r\n }),\r\n );\r\n }),\r\n catchError(() => of(false)),\r\n );\r\n }\r\n\r\n saveCurrentColumnOrder(config: PpGridConfig & { title: string }, columnOrder: string[], queries?: PpViewQueries): Observable<boolean> {\r\n if (!config?.metaEntityKey || !columnOrder?.length)\r\n return of(false);\r\n\r\n return this.loadViews(config).pipe(\r\n take(1),\r\n switchMap(list => {\r\n const selected = list.views.find(v => v.id === list.selectedId);\r\n const ownView = selected && !selected.isDefault ? selected : null;\r\n if (ownView)\r\n return this.writeColumnOrder(config, columnOrder, ownView.id, null, queries);\r\n\r\n // Vue par défaut affichée : nom de la nouvelle vue demandé.\r\n return this.askSaveView(config.title, true, '', true).pipe(\r\n switchMap(answer => answer.save ? this.writeColumnOrder(config, columnOrder, null, answer.label, queries) : of(false)),\r\n );\r\n }),\r\n catchError(() => of(false)),\r\n );\r\n }\r\n\r\n /**\r\n * Fenêtre « Enregistrer la disposition des colonnes ? » : fenêtre standard des popups\r\n * (DialogComponent) avec SaveViewPromptComponent pour contenu ; « Ne pas enregistrer », la croix\r\n * ou Échap répondent non.\r\n */\r\n private askSaveView(title: string, isNewView: boolean, viewLabel: string, fromButton: boolean): Observable<SaveViewPromptResult> {\r\n const state = new DialogComponentParameter();\r\n state.showButtons = true;\r\n state.dialogOptions = {\r\n title: 'Enregistrer la disposition des colonnes ?',\r\n childComponentType: SaveViewPromptComponent,\r\n initialViewModel: { title, isNewView, viewLabel, fromButton },\r\n propertyCallback: 'label',\r\n okLabel: 'Enregistrer',\r\n cancelLabel: 'Ne pas enregistrer',\r\n enableDirtyCheck: false,\r\n };\r\n const ref = this.modalService.show(DialogComponent, { class: 'modal-md', initialState: state });\r\n const dialog = ref.content as DialogComponent | undefined;\r\n if (!dialog)\r\n return of({ save: false, label: '' });\r\n // Validé : le libellé saisi ; annulé : rien.\r\n return dialog.onClose.pipe(\r\n take(1),\r\n map(label => label === undefined || label === null\r\n ? { save: false, label: '' }\r\n : { save: true, label: (String(label).trim() || 'Ma vue') }),\r\n );\r\n }\r\n\r\n createView(config: PpGridConfig, queries?: PpViewQueries): Observable<boolean> {\r\n if (!config?.metaEntityKey)\r\n return of(false);\r\n return this.loadViews(config).pipe(\r\n take(1),\r\n switchMap(list => {\r\n const sourceId = list.selectedId ?? list.views.find(v => v.isDefault)?.id ?? null;\r\n if (sourceId == null)\r\n return of(false);\r\n return this.profileData.duplicateView({\r\n PresentationProfileId: sourceId,\r\n Label: PpFacadeService.NewViewLabel,\r\n ...(queries ? { SortQuery: queries.sortQuery, FilterQuery: queries.filterQuery } : {}),\r\n }).pipe(\r\n switchMap(result => result?.Success === false || result?.Id == null\r\n ? of(false)\r\n : this.selectView(config, result.Id).pipe(map(() => true))),\r\n );\r\n }),\r\n catchError(() => of(false)),\r\n );\r\n }\r\n\r\n loadCardView(config: PpGridConfig): Observable<PpCardView | null> {\r\n if (!config?.metaEntityKey)\r\n return of(null);\r\n return this.profileData.getCardView({ MetaEntityKey: config.metaEntityKey }).pipe(\r\n map(result => !result?.Card ? null : {\r\n id: result.Card.Id ?? null,\r\n label: result.Card.Label ?? '',\r\n items: (result.Card.Items ?? [])\r\n .filter(i => i.CardSlot != null && !!i.ColumnKey)\r\n .map(i => ({ key: i.ColumnKey!, slot: i.CardSlot!, sourceType: i.ColumnSourceType ?? 0 })),\r\n }),\r\n catchError(() => of(null)),\r\n );\r\n }\r\n\r\n loadViewColumns(config: PpGridConfig): Observable<GridColumnChoice[]> {\r\n if (!config?.metaEntityKey)\r\n return of([]);\r\n return this.resolver.loadContext({ ...config, purpose: PresentationProfilePurposes.Grid }).pipe(\r\n take(1),\r\n map(ctx => {\r\n const shown = new Set((ctx?.Resolved ?? []).map(i => i.ColumnKey));\r\n // Libellé : celui de la colonne dans la vue affichée, à défaut celui du catalogue ; jamais le\r\n // nom technique s'il y a un libellé.\r\n const resolvedLabels = new Map((ctx?.Resolved ?? []).filter(i => !!i.ColumnKey && !!i.Label).map(i => [i.ColumnKey!, i.Label!]));\r\n return (ctx?.Catalog ?? [])\r\n .filter(i => !!i.ColumnKey)\r\n .map(i => ({ key: i.ColumnKey!, label: resolvedLabels.get(i.ColumnKey!) || i.Label || i.ColumnKey!, visible: shown.has(i.ColumnKey) }));\r\n }),\r\n catchError(() => of([] as GridColumnChoice[])),\r\n );\r\n }\r\n\r\n /** Libellé proposé pour une vue créée par « Nouvelle vue » (numéroté par le serveur s'il est pris). */\r\n private static readonly NewViewLabel = 'Nouvelle vue';\r\n\r\n /**\r\n * Enregistre les colonnes données, dans leur ordre (colonnes de la grille, ajoutées ou retirées\r\n * comprises) : dans la vue de l'utilisateur, ou dans une nouvelle vue (libellé donné, « Ma vue » à\r\n * défaut), qui devient la vue affichée. Une colonne garde ses réglages de la vue affichée (largeur,\r\n * affichage) ; une colonne ajoutée prend ceux du catalogue.\r\n */\r\n private writeColumnOrder(config: PpGridConfig, columns: string[], viewId: number | null, label: string | null, queries?: PpViewQueries): Observable<boolean> {\r\n return this.resolver.loadContext({ ...config, purpose: PresentationProfilePurposes.Grid }).pipe(\r\n take(1),\r\n switchMap(ctx => {\r\n const resolved = new Map((ctx?.Resolved ?? []).map(i => [i.ColumnKey, i]));\r\n const catalog = new Map((ctx?.Catalog ?? []).map(i => [i.ColumnKey, i]));\r\n const items = columns\r\n .map(key => resolved.get(key) ?? catalog.get(key))\r\n .filter((i): i is PresentationProfileItem => !!i)\r\n .map(i => ({ ...i }));\r\n if (!items.length)\r\n return of(false);\r\n const request = PresentationProfileTransformer.toUserPreferenceContext(\r\n items, config.metaEntityKey, PresentationProfilePurposes.Grid, label,\r\n // Tri et filtre de la vue : envoyés (chaîne vide : aucun), sinon gardés par le serveur.\r\n { ...(viewId != null ? { Id: viewId } : {}), ...(queries ? { SortQuery: queries.sortQuery, FilterQuery: queries.filterQuery } : {}) } as PresentationProfile,\r\n );\r\n return this.profileData.savePresentationProfile(request).pipe(map(result => !!result && (result as any).Success !== false));\r\n }),\r\n catchError(() => of(false)),\r\n );\r\n }\r\n\r\n resolveColumns(config: { metaEntityKey: string; supplierId?: number | null; roleId?: number | null }): Observable<any[]> {\r\n return this.resolver.resolve(config as PpResolverConfig).pipe(map(r => r.columns));\r\n }\r\n\r\n buildDescriptors(ppColumns: any[], backendDescriptors: ColumnDescriptor[]): ColumnDescriptor[] {\r\n return PresentationProfileTransformer.buildDescriptors(ppColumns as PresentationProfileItem[], backendDescriptors);\r\n }\r\n\r\n splitForExport(columns: any[]): PpExportSplit {\r\n return PresentationProfileTransformer.splitForExport(columns as PresentationProfileItem[]);\r\n }\r\n\r\n get selectionConfirmed$(): Observable<{ purpose: number; columns: any[] }> {\r\n return this.actionService.selectionConfirmed$;\r\n }\r\n\r\n get gridSelectionConfirmed$(): Observable<any[]> {\r\n return this.actionService.selectionConfirmed$.pipe(\r\n filter(r => r.purpose === PresentationProfilePurposes.Grid),\r\n map(r => r.columns),\r\n );\r\n }\r\n}\r\n","import { ApplicationService, NewEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { ResourceLanguage } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-res-lang-editor',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class ResourceLanguageEditorComponent extends NewEditorComponent<ResourceLanguage> {\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ResourceLanguage;\r\n }\r\n \r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvelle langue') : ('Langue (' + this.id + ')')): 'Langues';\r\n }\r\n \r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.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}\r\n","<div class=\"editor-container\">\r\n <div class=\"breadcrumb-panel\" *ngIf=\"(this.facade.editor.isStandaloneMode$| async)\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n <!-- entityConfigLoader\r\n #configLoader=\"entityConfigLoader\"\r\n [entityKey]=\"getEntityKey()\" -->\r\n\r\n <ng-container\r\n >\r\n <div class=\"property-editor-container\" [class.show-buttons]=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <alg-property-editor\r\n class=\"property-editor-container-inner\"\r\n #propertyGridComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-property-editor>\r\n </div>\r\n <div class=\"buttons-container\" *ngIf=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <div class=\"footer-buttons\" >\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!this.dirty\"\r\n (click)=\"handleDialogButtonClick(false)\">\r\n Sauvegarder\r\n </button>\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\">\r\n Annuler\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","import {\r\n CustomFieldGroupEntityDataService,\r\n CustomFieldGroupItemDataService,\r\n} from '@dflat-core/web/meta-data';\r\nimport { CustomFieldGroupEntityView, CustomFieldGroupItemView } from '@dflat-core/web/meta-model';\r\nimport { Injectable, OnDestroy } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class CustomFieldService implements OnDestroy {\r\n constructor(\r\n private customFieldGroupItemDataService: CustomFieldGroupItemDataService,\r\n private customFieldGroupEntityDataService: CustomFieldGroupEntityDataService\r\n ) {\r\n this.loadCustomFieldEntities();\r\n }\r\n\r\n private destroy$: Subject<void> = new Subject<void>();\r\n ngOnDestroy(): void {\r\n this.CustomFieldGroupEntities.clear()\r\n }\r\n\r\n CustomFieldGroupEntities: Map<string, CustomFieldGroupEntityView[]> = new Map<string, CustomFieldGroupEntityView[]>();\r\n IsCustomFieldGroupEntitiesLoaded : boolean = false;\r\n\r\n CustomFieldGroupItems: CustomFieldGroupItemView[] = [];\r\n IsCustomFieldGroupItemsLoaded : boolean = false;\r\n\r\n loadCustomFieldEntities() {\r\n this.customFieldGroupEntityDataService.search({}).subscribe({\r\n next: (res) => {\r\n res.Values.forEach((elt) => {\r\n const key = `${elt.EntityKey}¤${elt.EntityId}`;\r\n if (!this.CustomFieldGroupEntities.has(key)) {\r\n this.CustomFieldGroupEntities.set(key, [elt]);\r\n } else this.CustomFieldGroupEntities.get(key).push(elt);\r\n });\r\n },\r\n complete: () => {\r\n this.IsCustomFieldGroupEntitiesLoaded = true;\r\n },\r\n });\r\n }\r\n\r\n isCustomFieldGroupEntityExistent(elt: CustomFieldGroupEntityView): boolean {\r\n const key = `${elt.EntityKey}¤${elt.EntityId}`;\r\n return (\r\n this.CustomFieldGroupEntities.has(key) &&\r\n this.CustomFieldGroupEntities.get(key).includes(elt)\r\n );\r\n }\r\n\r\n getCustomFieldGroupEntities(entitykey : string,entityId : number) : CustomFieldGroupEntityView []{\r\n const key = `${entitykey}¤${entityId}`;\r\n if(this.CustomFieldGroupEntities.has(key))\r\n return this.CustomFieldGroupEntities.get(key);\r\n return undefined;\r\n }\r\n\r\n loadCustomFieldGroupItems() {\r\n this.customFieldGroupItemDataService.search({}).subscribe({\r\n next: (res) => {\r\n this.CustomFieldGroupItems = res.Values\r\n },\r\n complete: () => {\r\n this.IsCustomFieldGroupItemsLoaded = true;\r\n },\r\n });\r\n }\r\n}\r\n","import { DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Injector, NgModule } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { AngularEditorModule } from '@kolkov/angular-editor';\r\nimport { NgSelectModule } from '@ng-select/ng-select';\r\nimport { NgxDropzoneModule } from 'ngx-dropzone';\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, FilterEditorComponent, PP_SERVICE } from '@dflat-core/web/core-ux';\r\nimport { MetaDataModule } from '@dflat-core/web/meta-data';\r\nimport { MetaModelModule } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaRootModule } from '@dflat-core/web/meta-root';\r\n\r\nimport { CustomFieldOptionsEditorComponent } from './custom-field-options/custom-field-options-editor.component';\r\nimport { CustomFieldEditorComponent } from './custom-field/custom-field-editor.component';\r\nimport { MetaGeneratedComponents, MetaGeneratedRoutes, MetaGeneratedSelectors } from './data-components/generated/meta-components.generated';\r\nimport { MetaGeneratedSectionService } from './data-components/generated/meta-sections.generated';\r\nimport { PresentationProfileScreenComponent } from './data-components/presentation-profile-screen.component';\r\nimport { CustomFieldGroupEditorComponent } from './editor-components/custom-field-group-editor.component';\r\nimport { CustomFieldGroupEntityEditorComponent } from './editor-components/custom-field-group-entity-editor.component';\r\nimport { CustomFieldGroupItemEditorComponent } from './editor-components/custom-field-group-item-editor.component';\r\nimport { PermissionEditorComponent } from './editor-components/permission-editor.component';\r\nimport { PresentationProfileEditorComponent } from './editor-components/presentation-profile-editor.component';\r\nimport { ResourceTranslationEditorComponent } from './editor-components/resource-translation-editor.component';\r\nimport { EntityFilesComponent } from './entity-files/entity-files.component';\r\nimport { FormEditorComponent } from './form-editor/form-editor.component';\r\nimport { MetaEntityFieldEditorComponent } from './meta-entity-field/meta-entity-field-editor.component';\r\nimport { PpFacadeService } from './presentation-profile/pp-facade.service';\r\nimport { PresentationProfileActionService } from './presentation-profile/presentation-profile-action-service';\r\nimport { PresentationProfileComponent } from './presentation-profile/presentation-profile.component';\r\nimport { ResourceLanguageEditorComponent } from './resource-language/resourcelanguage-editor.component';\r\nimport { CustomFieldActionService } from './services/custom-field-action-service';\r\nimport { CustomFieldService } from './services/custom-field-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/meta-components.generated.ts\r\n ...MetaGeneratedComponents,\r\n\r\n CustomFieldEditorComponent,\r\n CustomFieldOptionsEditorComponent,\r\n CustomFieldGroupEditorComponent,\r\n CustomFieldGroupItemEditorComponent,\r\n CustomFieldGroupEntityEditorComponent,\r\n EntityFilesComponent,\r\n FormEditorComponent,\r\n MetaEntityFieldEditorComponent,\r\n PermissionEditorComponent,\r\n PresentationProfileEditorComponent,\r\n PresentationProfileScreenComponent,\r\n ResourceLanguageEditorComponent,\r\n ResourceTranslationEditorComponent,\r\n];\r\n\r\n/**\r\n * Écrans du module Meta (Découpage modulaire System/Meta/Identity, C.5) : méta-modèle, formulaires,\r\n * profils de présentation, champs personnalisés, paramètres, fichiers, ressources et permissions.\r\n * SystemUxModule l'importe pour ses composants ; les routes sont dans MetaRoutingModule, chargé sous /mta.\r\n */\r\n@NgModule({\r\n imports: [\r\n DragDropModule,\r\n CommonModule,\r\n AngularEditorModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n CoreModelModule,\r\n CoreUxModule,\r\n CoreDataModule,\r\n PresentationProfileComponent,\r\n FilterEditorComponent,\r\n MetaModelModule,\r\n MetaDataModule,\r\n MetaRootModule,\r\n NgSelectModule,\r\n NgxDropzoneModule,\r\n ],\r\n declarations: [...components],\r\n exports: [...components],\r\n providers: [\r\n PresentationProfileActionService,\r\n PpFacadeService,\r\n { provide: PP_SERVICE, useExisting: PpFacadeService },\r\n CustomFieldActionService,\r\n CustomFieldService,\r\n ],\r\n})\r\nexport class MetaUxModule {\r\n constructor(injector: Injector) {\r\n // Sélecteurs d'entité des champs Custom (clés étrangères) des formulaires : voir generated/meta-components.generated.ts\r\n EntitySelectors.register(MetaGeneratedSelectors, injector);\r\n // Onglets des entités liées des composants générés : voir generated/meta-sections.generated.ts\r\n EntitySections.register(injector.get(MetaGeneratedSectionService));\r\n }\r\n}\r\n","import { Component } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nexport interface SchemaFieldDeleteData {\r\n hasData: boolean;\r\n dataCount: number;\r\n topValues: string[];\r\n fieldName: string;\r\n message: string;\r\n}\r\n\r\n@Component({\r\n selector: 'msw-schema-field-delete-dialog',\r\n standalone: true,\r\n imports: [CommonModule],\r\n template: `\r\n <div class=\"modal-header\">\r\n <h2>Suppression de champ Schema</h2>\r\n </div>\r\n <div class=\"modal-body\">\r\n <div class=\"data-info\">\r\n <h3>{{ data.fieldName }}</h3>\r\n\r\n <div class=\"data-status\" *ngIf=\"data.hasData; else noData\">\r\n <strong class=\"text-warning\">⚠ Données trouvées</strong>\r\n <p class=\"text-muted\">{{ data.dataCount }} enregistrement(s) contiennent ce champ</p>\r\n\r\n <div class=\"sample-values\">\r\n <strong>Exemples de valeurs:</strong>\r\n <ul>\r\n <li *ngFor=\"let value of data.topValues\" class=\"text-truncate\">\r\n {{ value || '(vide)' }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n <ng-template #noData>\r\n <div class=\"data-status\">\r\n <strong class=\"text-info\">✓ Aucune donnée</strong>\r\n <p class=\"text-muted\">Ce champ ne contient pas de données</p>\r\n </div>\r\n </ng-template>\r\n </div>\r\n\r\n <hr>\r\n\r\n <div class=\"action-info\">\r\n <p><strong>Choisissez une action:</strong></p>\r\n\r\n <div class=\"option\">\r\n <strong>Supprimer (Hard delete)</strong>\r\n <p class=\"text-danger\">Supprime le champ et sa colonne physique</p>\r\n </div>\r\n\r\n <div class=\"option\">\r\n <strong>Désactiver (Soft delete)</strong>\r\n <p class=\"text-warning\">Désactive le champ mais conserve les données</p>\r\n <p class=\"text-muted small\">✓ Recommandé si données présentes</p>\r\n <p class=\"text-muted small\">✓ Le champ peut être réactivé plus tard</p>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"modal-footer\">\r\n <button class=\"btn btn-secondary\" (click)=\"onCancel()\">Annuler</button>\r\n <button class=\"btn btn-warning\" (click)=\"onDeactivate()\">\r\n Désactiver\r\n </button>\r\n <button class=\"btn btn-danger\" *ngIf=\"!data.hasData\" (click)=\"onDelete()\">\r\n Supprimer\r\n </button>\r\n </div>\r\n `,\r\n styles: [`\r\n .data-info {\r\n background: #f5f5f5;\r\n padding: 16px;\r\n border-radius: 4px;\r\n margin-bottom: 16px;\r\n }\r\n\r\n .data-status {\r\n margin: 8px 0;\r\n }\r\n\r\n .sample-values {\r\n margin-top: 12px;\r\n background: white;\r\n padding: 8px;\r\n border-radius: 4px;\r\n max-height: 150px;\r\n overflow-y: auto;\r\n }\r\n\r\n .sample-values ul {\r\n margin: 8px 0 0 20px;\r\n padding: 0;\r\n }\r\n\r\n .sample-values li {\r\n margin: 4px 0;\r\n font-family: monospace;\r\n font-size: 12px;\r\n }\r\n\r\n .action-info {\r\n margin: 12px 0;\r\n }\r\n\r\n .option {\r\n margin: 12px 0;\r\n padding: 8px;\r\n border-left: 3px solid #ccc;\r\n padding-left: 12px;\r\n }\r\n\r\n .option p {\r\n margin: 4px 0;\r\n }\r\n\r\n .text-danger { color: #d32f2f; }\r\n .text-warning { color: #f57c00; }\r\n .text-info { color: #1976d2; }\r\n .text-muted { color: #999; }\r\n .text-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\r\n .small { font-size: 0.875rem; }\r\n `]\r\n})\r\nexport class SchemaFieldDeleteDialogComponent {\r\n data: SchemaFieldDeleteData;\r\n isCancel: boolean = true;\r\n selectedAction: string | null = null;\r\n\r\n constructor() { }\r\n\r\n onCancel(): void {\r\n this.isCancel = true;\r\n this.selectedAction = null;\r\n }\r\n\r\n onDelete(): void {\r\n this.isCancel = false;\r\n this.selectedAction = 'delete';\r\n }\r\n\r\n onDeactivate(): void {\r\n this.isCancel = false;\r\n this.selectedAction = 'deactivate';\r\n }\r\n}\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur EntityFilesController).\r\n// Ne pas modifier : le code spécifique s'écrit dans EntityFilesComponent, dérivé de BaseEntityFilesComponent.\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 { EntityFiles, EntityFilesFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des EntityFiles (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : EntityFilesComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseEntityFilesComponent extends BaseComponent<EntityFilesFilterViewModel, EntityFiles> {\r\n getTitle(): string {\r\n return 'Fichier d\\'entité';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.EntityFiles;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_ENTITYFILES;\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 'EFL';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\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 { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { CustomFieldOptionsEditorComponent } from './custom-field-options/custom-field-options-editor.component';\r\nimport { CustomFieldEditorComponent } from './custom-field/custom-field-editor.component';\r\nimport { MetaGeneratedRoutes } from './data-components/generated/meta-components.generated';\r\nimport { PresentationProfileScreenComponent } from './data-components/presentation-profile-screen.component';\r\nimport { CustomFieldGroupEditorComponent } from './editor-components/custom-field-group-editor.component';\r\nimport { CustomFieldGroupItemEditorComponent } from './editor-components/custom-field-group-item-editor.component';\r\nimport { PermissionEditorComponent } from './editor-components/permission-editor.component';\r\nimport { ResourceTranslationEditorComponent } from './editor-components/resource-translation-editor.component';\r\nimport { MetaEntityFieldEditorComponent } from './meta-entity-field/meta-entity-field-editor.component';\r\nimport { ResourceLanguageEditorComponent } from './resource-language/resourcelanguage-editor.component';\r\nimport { MetaUxModule } from './meta-ux.module';\r\n\r\n/**\r\n * Routes des écrans du module Meta, chargées par l'application sous /mta (Découpage modulaire\r\n * System/Meta/Identity) : { path: 'mta', loadChildren: () => import('@dflat-core/web/meta-ux').then(m => m.MetaRoutingModule) }.\r\n */\r\n@NgModule({\r\n imports: [\r\n MetaUxModule,\r\n RouterModule.forChild([\r\n // Routes des composants des entités (clé d'entité) : voir generated/meta-components.generated.ts\r\n ...MetaGeneratedRoutes,\r\n { path: MetaEntityKeys.Permission + '/:id', component: PermissionEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomField + '/:id', component: CustomFieldEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldOptions + '/:id', component: CustomFieldOptionsEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldGroup + '/:id', component: CustomFieldGroupEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldGroupItem + '/:id', component: CustomFieldGroupItemEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ResourceLanguage + '/:id', component: ResourceLanguageEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ResourceTranslation + '/:id', component: ResourceTranslationEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityField + '/:id', component: MetaEntityFieldEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.PresentationProfile, component: PresentationProfileScreenComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.GridColumnConfig, component: PresentationProfileScreenComponent, canDeactivate: [CanDeactivateGuard] },\r\n ]),\r\n ],\r\n})\r\nexport class MetaRoutingModule {}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAa,oCAAb,MAAa,0CAA0C,mBAA0C;CAE7F,eAAY;EACR,OAAO,eAAe;CAC1B;CAEA,SAAS,QAAe;EACpB,OAAO,SAAW,KAAK,OAAO,MAAQ,+BAAiC,wBAAwB,KAAK,KAAK,MAAO;CACpH;CAEA,QAAQ,QAAe;EACnB,OAAO,SAAS,qBAAqB,QAAQ,KAAK,aAAY,CAAE,IAAI,MAAM,KAAK,KAAK,qBAAqB,QAAQ,KAAK,aAAY,CAAE;CACxI;CAIA,YACI,KACA,OAAqB;EACrB,MAAM,KAAK,KAAK;EALb,KAAA,WAAoB;CAM3B;CAEA,WAAQ;EACJ,MAAM,SAAQ;EACd,KAAK,OAAO,OAAO,2BAA2B,OAAM,KAAK,eAAe,EAAE,CAAC;CAC/E;CAEA,eAAe,IAAsD;EACjE,IAAG,CAAC,UAAU,MAAM,EAAE,GACtB;GACI,MAAM,iBAAiB,GAAG,cAAc,EAAE,CAAC,gBAAgB,WAAU,QAAO,IAAI,iBAAiB,WAAW;GAC5G,IAAI,iBAAiB,IACnB,GAAG,cAAc,EAAE,CAAC,gBAAgB,OAAO,gBAAgB,CAAC;GAE9D,IAAG,GAAG,cAAc,SAAS,GACzB,GAAG,cAAc,IAAG;EAC5B;EACA,OAAO;CACX;CAtCS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiC,MAAA,CAAA,EAAA,OAAA,GAAA,mBAAA,GAAA,EAAA,OAAAA,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AkB;GAAC;GAC/H;IAAE,MAAM,eAAe;IAAqB,WAAW;IAAoC,eAAe,CAAC,kBAAkB;GAAC;GAC9H;IAAE,MAAM,eAAe;IAAkB,WAAW;IAAoC,eAAe,CAAC,kBAAkB;GAAC;EAC9H,CAAA,CACJ,EACJ,CAAA"}
1
+ {"version":3,"file":"dflat-core-web-meta-ux.mjs","names":["i2","i3","i2","i3","i2","i2","i2","i3.CustomFieldActionService","i5","i6","i2","i2","i3","i2","i2","i3.CustomFieldActionService","i4","i2","i2","i3","i2","i2","i3.CustomFieldActionService","i4","i2","i1","i2","i2","i1","i2","i2","i2.CustomFieldActionService","i3","i4","i2","i1","i2","takeUntil","i2","i4","i2","i2","i3","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i2","i3","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i2","i1","i2","i1","takeUntil","i2","i4","i2","i2","i3","i2","i3","i2","i3","i2","i3","i2","i3","i2","i3","i1","i3","i4","i2","i3","i1","i2","i1","takeUntil","i1","i2.PresentationProfileResolver","takeUntil","i1.PresentationProfileService","i2","i3","i1.PresentationProfileResolver","i2.PresentationProfileActionService","i3","i2","i3","i1","i1.CustomFieldComponent","i2.CustomFieldGroupComponent","i3.CustomFieldGroupEntityComponent","i4.CustomFieldGroupItemComponent","i5.CustomFieldOptionsComponent","i6.FilesComponent","i7.KeywordComponent","i8.MetaEntityComponent","i9.MetaEntityFieldComponent","i10.MetaEntityFormComponent","i11.MetaEntityFormFieldComponent","i12.MetaEntityFormSectionComponent","i13.MetaEntityKeywordComponent","i14.MetaEntityRelationComponent","i15.MetaEntityRelationDefinitionComponent","i16.MetaEntityTranslationComponent","i17.MetaEntityViewFieldComponent","i18.ParameterComponent","i19.ParameterSectionComponent","i20.ParameterValueComponent","i21.PermissionComponent","i22.PresentationProfileItemComponent","i23.ResourceKeyComponent","i24.ResourceLanguageComponent","i25.ResourceTranslationComponent","i26.VersionComponent","i1","i2","i1"],"sources":["../../meta-ux/src/lib/custom-field-options/custom-field-options-editor.component.ts","../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html","../../meta-ux/src/lib/custom-field/custom-field-editor.component.ts","../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html","../../meta-ux/src/lib/data-components/generated/customfieldoptions.component.generated.ts","../../meta-ux/src/lib/data-components/generated/customfieldgroupitem.component.generated.ts","../../meta-ux/src/lib/data-components/customfieldgroupitem.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/customfieldgroup.component.generated.ts","../../meta-ux/src/lib/data-components/customfieldgroup.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/services/custom-field-action-service.ts","../../meta-ux/src/lib/data-components/customfieldoptions.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/customfield.component.generated.ts","../../meta-ux/src/lib/data-components/customfield.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/customfieldgroupentity.component.generated.ts","../../meta-ux/src/lib/data-components/customfieldgroupentity.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/files.component.generated.ts","../../meta-ux/src/lib/data-components/files.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/keyword.component.generated.ts","../../meta-ux/src/lib/data-components/keyword.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityfield.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityfield.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentity.component.generated.ts","../../meta-ux/src/lib/data-components/metaentity.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/form-editor/form-editor-model.ts","../../meta-ux/src/lib/form-editor/form-editor-panel.ts","../../meta-ux/src/lib/form-editor/form-editor.component.ts","../../meta-ux/src/lib/form-editor/form-editor.component.html","../../meta-ux/src/lib/data-components/generated/metaentityform.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityform.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityformfield.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityformfield.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityformsection.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityformsection.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentitykeyword.component.generated.ts","../../meta-ux/src/lib/data-components/metaentitykeyword.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityrelation.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityrelation.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityrelationdefinition.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityrelationdefinition.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentitytranslation.component.generated.ts","../../meta-ux/src/lib/data-components/metaentitytranslation.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/metaentityviewfield.component.generated.ts","../../meta-ux/src/lib/data-components/metaentityviewfield.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/parameter.component.generated.ts","../../meta-ux/src/lib/data-components/parameter.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/parametersection.component.generated.ts","../../meta-ux/src/lib/data-components/parametersection.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/parametervalue.component.generated.ts","../../meta-ux/src/lib/data-components/parametervalue.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/permission.component.generated.ts","../../meta-ux/src/lib/data-components/permission.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/presentationprofileitem.component.generated.ts","../../meta-ux/src/lib/data-components/presentationprofileitem.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/resourcetranslation.component.generated.ts","../../meta-ux/src/lib/data-components/resourcetranslation.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/resourcekey.component.generated.ts","../../meta-ux/src/lib/data-components/resourcekey.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/resourcelanguage.component.generated.ts","../../meta-ux/src/lib/data-components/resourcelanguage.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/version.component.generated.ts","../../meta-ux/src/lib/data-components/version.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/data-components/generated/meta-components.generated.ts","../../meta-ux/src/lib/data-components/generated/meta-sections.generated.ts","../../meta-ux/src/lib/presentation-profile/column-display-types.ts","../../meta-ux/src/lib/presentation-profile/column-display-dialog/column-display-dialog.component.ts","../../meta-ux/src/lib/presentation-profile/column-display-dialog/column-display-dialog.component.html","../../meta-ux/src/lib/presentation-profile/presentation-profile-transformer.ts","../../meta-ux/src/lib/editor-components/presentation-profile-editor.component.ts","../../meta-ux/src/lib/editor-components/presentation-profile-editor.component.html","../../meta-ux/src/lib/data-components/generated/presentationprofile.component.generated.ts","../../meta-ux/src/lib/data-components/presentation-profile-screen.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../meta-ux/src/lib/editor-components/custom-field-group-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../meta-ux/src/lib/editor-components/custom-field-group-entity-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../meta-ux/src/lib/editor-components/custom-field-group-item-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../meta-ux/src/lib/editor-components/permission-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../meta-ux/src/lib/editor-components/resource-translation-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../meta-ux/src/lib/entity-files/entity-files.component.ts","../../meta-ux/src/lib/entity-files/entity-files.component.html","../../meta-ux/src/lib/meta-entity-field/meta-entity-field-editor.component.ts","../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html","../../meta-ux/src/lib/presentation-profile/save-view-prompt/save-view-prompt.component.ts","../../meta-ux/src/lib/presentation-profile/presentation-profile-resolver.service.ts","../../meta-ux/src/lib/presentation-profile/card-slots.ts","../../meta-ux/src/lib/presentation-profile/presentation-profile.service.ts","../../meta-ux/src/lib/presentation-profile/presentation-profile.component.ts","../../meta-ux/src/lib/presentation-profile/presentation-profile.component.html","../../meta-ux/src/lib/presentation-profile/presentation-profile-action-service.ts","../../meta-ux/src/lib/presentation-profile/pp-facade.service.ts","../../meta-ux/src/lib/resource-language/resourcelanguage-editor.component.ts","../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html","../../meta-ux/src/lib/services/custom-field-service.ts","../../meta-ux/src/lib/meta-ux.module.ts","../../meta-ux/src/lib/custom-field-group/custom-field-group-item/schema-field-delete-dialog.component.ts","../../meta-ux/src/lib/data-components/generated/entityfiles.component.generated.ts","../../meta-ux/src/lib/meta-routing.module.ts"],"sourcesContent":["import { Utilities } from '@dflat-core/web/core';\r\nimport { EntityViewModelWithFields } from '@dflat-core/web/core-model';\r\nimport { ApplicationService, BaseEditorComponent, IIsCancel, NewEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldOptionsView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from \"@angular/core\";\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'alg-custom-field-options-editor',\r\n // templateUrl: '../../../../core-ux/src/lib/components/base-editor/base-editor.component.html',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\n\r\nexport class CustomFieldOptionsEditorComponent extends NewEditorComponent<CustomFieldOptionsView> implements IIsCancel\r\n{\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldOptions;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? (\"Nouvelle option d'attribut\") : (\"Option d'attribut (\" + this.id + \")\")): \"Options d'attribut\";\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n public isCancel: boolean = false;\r\n CustomFieldId: number;\r\n constructor(\r\n app : ApplicationService,\r\n route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit(){\r\n super.ngOnInit();\r\n this.facade.config.addAlterViewModelFunction((vm)=> this.alterViewModel(vm));\r\n }\r\n\r\n alterViewModel(vm : EntityViewModelWithFields<CustomFieldOptionsView>) : EntityViewModelWithFields<CustomFieldOptionsView>{\r\n if(!Utilities.IsNil(vm))\r\n {\r\n const isDefaultIndex = vm.FieldSections[0].FieldViewModels.findIndex(obj => obj.PropertyName === 'IsDefault');\r\n if (isDefaultIndex > -1)\r\n vm.FieldSections[0].FieldViewModels.splice(isDefaultIndex, 1);\r\n\r\n if(vm.FieldSections.length > 1)\r\n vm.FieldSections.pop();\r\n }\r\n return vm\r\n }\r\n}\r\n","<div class=\"editor-container\">\r\n <div class=\"breadcrumb-panel\" *ngIf=\"(this.facade.editor.isStandaloneMode$| async)\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n <!-- entityConfigLoader\r\n #configLoader=\"entityConfigLoader\"\r\n [entityKey]=\"getEntityKey()\" -->\r\n\r\n <ng-container\r\n >\r\n <div class=\"property-editor-container\" [class.show-buttons]=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <alg-property-editor\r\n class=\"property-editor-container-inner\"\r\n #propertyGridComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-property-editor>\r\n </div>\r\n <div class=\"buttons-container\" *ngIf=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <div class=\"footer-buttons\" >\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!this.dirty\"\r\n (click)=\"handleDialogButtonClick(false)\">\r\n Sauvegarder\r\n </button>\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\">\r\n Annuler\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","import { ApplicationService, IActionComponent, IIsCancel, NewEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from \"@angular/core\";\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'alg-custom-field-editor',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\n\r\nexport class CustomFieldEditorComponent extends NewEditorComponent<CustomFieldView> implements IIsCancel,IActionComponent\r\n{\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomField;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvel attribut') : ('Attribut (' + this.id + ')')): 'Attributs';\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.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 public isCancel: boolean = false;\r\n\r\n}\r\n","<div class=\"editor-container\">\r\n <div class=\"breadcrumb-panel\" *ngIf=\"(this.facade.editor.isStandaloneMode$| async)\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n <!-- entityConfigLoader\r\n #configLoader=\"entityConfigLoader\"\r\n [entityKey]=\"getEntityKey()\" -->\r\n\r\n <ng-container\r\n >\r\n <div class=\"property-editor-container\" [class.show-buttons]=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <alg-property-editor\r\n class=\"property-editor-container-inner\"\r\n #propertyGridComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-property-editor>\r\n </div>\r\n <div class=\"buttons-container\" *ngIf=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <div class=\"footer-buttons\" >\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!this.dirty\"\r\n (click)=\"handleDialogButtonClick(false)\">\r\n Sauvegarder\r\n </button>\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\">\r\n Annuler\r\n </button>\r\n </div>\r\n </div>\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 CustomFieldOptionsController).\r\n// Ne pas modifier : le code spécifique s'écrit dans CustomFieldOptionsComponent, dérivé de BaseCustomFieldOptionsComponent.\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 { CustomFieldOptionsFilterViewModel, CustomFieldOptionsView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des CustomFieldOptionsView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : CustomFieldOptionsComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseCustomFieldOptionsComponent extends BaseComponent<CustomFieldOptionsFilterViewModel, CustomFieldOptionsView> {\r\n getTitle(): string {\r\n return 'Option de champ personnalisé';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldOptions;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_CUSTOMFIELDOPTIONS;\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 'CFO';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur CustomFieldGroupItemController).\r\n// Ne pas modifier : le code spécifique s'écrit dans CustomFieldGroupItemComponent, dérivé de BaseCustomFieldGroupItemComponent.\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 { CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des CustomFieldGroupItemView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : CustomFieldGroupItemComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseCustomFieldGroupItemComponent extends BaseComponent<CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView> {\r\n getTitle(): string {\r\n return 'Élément d\\'un groupe de champs';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroupItem;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_CUSTOMFIELDGROUPITEM;\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 'CFIV';\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 { ApplicationService, DialogType } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldGroupItemView, CustomFieldGroupTypes } from '@dflat-core/web/meta-model';\r\nimport { CustomFieldActionService } from '../services/custom-field-action-service';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { takeUntil } from 'rxjs';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { CustomFieldGroupItemDataService } from '@dflat-core/web/meta-data';\r\nimport { BaseCustomFieldGroupItemComponent } from './generated/customfieldgroupitem.component.generated';\r\n\r\n@Component({\r\n selector: 'msw-custom-field-group-item',\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 CustomFieldGroupItemComponent extends BaseCustomFieldGroupItemComponent {\r\n private initializationParams: Partial<CustomFieldGroupItemView> | null = null;\r\n\r\n // Titre métier (le titre généré est « Élément d'un groupe de champs »).\r\n getTitle(): string {\r\n return \"Liste des attributs\";\r\n }\r\n\r\n constructor(app: ApplicationService,\r\n protected route: ActivatedRoute,\r\n private cfactionService: CustomFieldActionService,\r\n private customFieldGroupItemDataService : CustomFieldGroupItemDataService,\r\n private toastr: ToastrService)\r\n {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n // Ordre des attributs du groupe : lignes déplacées à la souris dans la grille.\r\n this.facade.config.rowOrderProperty = 'OrderNumber';\r\n this.facade.config.rowRankProperty = 'OrderRank';\r\n\r\n this.cfactionService.onCustomFieldGroupAddSubject.asObservable().pipe(takeUntil(this.destroy$))\r\n .subscribe(()=>{ this.performLoadData();});\r\n\r\n // Override add action to include initialization parameters (MetaEntityId) from parent context\r\n this.facade.actions.patch('add', {\r\n action: () => {\r\n const initParams = this.getInitializationParameters();\r\n if (!Utilities.IsNil(initParams)) {\r\n this.facade.selection.createNewEntity(initParams);\r\n }\r\n this.cfactionService.addCustomFieldtoGroup(this.Filter.GroupId, initParams);\r\n },\r\n getParameter: () => this.getInitializationParameters()\r\n });\r\n\r\n // Override delete action for Schema group field deletion with safety check\r\n this.facade.actions.patch('delete',\r\n {\r\n action: () => {\r\n const selectedItems = this.facade.selection.Selected;\r\n if (!selectedItems || selectedItems.length === 0) {\r\n this.toastr.error('Aucun élément sélectionné');\r\n return;\r\n }\r\n const item = selectedItems[0];\r\n \r\n if (item.CustomFieldGroupType === CustomFieldGroupTypes.Schema) {\r\n this.checkAndDeleteSchemaField(item);\r\n } else {\r\n this.proceedWithDelete(item, false);\r\n }\r\n\r\n },\r\n isActive: () => {\r\n const selected = this.facade.selection.Selected;\r\n return selected && selected.length > 0;\r\n }\r\n });\r\n }\r\n\r\n private checkAndDeleteSchemaField(item: CustomFieldGroupItemView): void {\r\n const groupId = item?.GroupId;\r\n if (!groupId) {\r\n this.toastr.error('Groupe non identifié');\r\n return;\r\n }\r\n\r\n this.customFieldGroupItemDataService.checkSchemaFieldDeletion(item)\r\n .subscribe({\r\n next: (response: any) => {\r\n if (!response.Success) {\r\n if (response.Warnings?.includes('REFERENCE_PRESENT')) {\r\n this.toastr.warning(response.ErrorMessage);\r\n } else if (response.Warnings?.includes('DATA_PRESENT')) {\r\n this.showDataCheckDialog(response, item);\r\n } else {\r\n this.toastr.error(response.ErrorMessage);\r\n }\r\n return;\r\n }\r\n\r\n this.toastr.success(response.ErrorMessage);\r\n this.proceedWithDelete(item, true);\r\n },\r\n error: (error) => {\r\n this.toastr.error('Erreur lors de la vérification: ' + error.message);\r\n }\r\n });\r\n }\r\n\r\n private showDataCheckDialog(response: any, item: CustomFieldGroupItemView): void {\r\n const message = `Ce champ contient des données. Choisissez une action:\\n${response.ErrorMessage}`;\r\n this.alertService.showDialog(\r\n message,\r\n DialogType.Confirm,\r\n () => {this.proceedWithDelete(item, false);},\r\n () => {},\r\n 'Désactiver',\r\n 'Annuler',\r\n 'Suppression de champ'\r\n ).subscribe();\r\n }\r\n\r\n private proceedWithDelete(item: CustomFieldGroupItemView, isHardDelete: boolean): void {\r\n this.facade.actions.executeAction('delete', true);\r\n }\r\n\r\n private getInitializationParameters(): Partial<CustomFieldGroupItemView> | null {\r\n return this.initializationParams;\r\n }\r\n\r\n public setInitializationParameters(params: Partial<CustomFieldGroupItemView>): void {\r\n this.initializationParams = params;\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 CustomFieldGroupController).\r\n// Ne pas modifier : le code spécifique s'écrit dans CustomFieldGroupComponent, dérivé de BaseCustomFieldGroupComponent.\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 { CustomFieldGroup, CustomFieldGroupFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des CustomFieldGroup (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : CustomFieldGroupComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseCustomFieldGroupComponent extends BaseComponent<CustomFieldGroupFilterViewModel, CustomFieldGroup> {\r\n getTitle(): string {\r\n return 'Famille d\\'attributs';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroup;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_CUSTOMFIELDGROUP;\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 'CFG';\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/CustomFieldGroupForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 {\r\n CustomFieldGroup,\r\n CustomFieldGroupItemFilterViewModel,\r\n CustomFieldGroupItemView,\r\n CustomFieldGroupTypes,\r\n} from '@dflat-core/web/meta-model';\r\nimport { CustomFieldGroupItemComponent } from './customfieldgroupitem.component';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { SelectionType } from '@dflat-core/web/core-ux';\r\nimport { takeUntil } from 'rxjs';\r\nimport { Utilities } from '@dflat-core/web/core';\r\nimport { BaseCustomFieldGroupComponent } from './generated/customfieldgroup.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-custom-field-group',\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 CustomFieldGroupComponent extends BaseCustomFieldGroupComponent {\r\n\r\n FIELD_OPTIONS_SECTION: string = \"Attributs\";\r\n private initializationParams: Partial<CustomFieldGroup> | null = null;\r\n\r\n // Titre au pluriel (le titre généré est « Famille d'attributs »).\r\n getTitle(): string {\r\n return \"Familles d'attributs\";\r\n }\r\n\r\n constructor(\r\n app: ApplicationService,\r\n route: ActivatedRoute,\r\n ) {\r\n super(app, route); \r\n }\r\n \r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n this.facade.selection.setSelectionType(SelectionType.single);\r\n this.facade.selection.selected$.pipe(takeUntil(this.destroy$))\r\n .subscribe((selected) => {\r\n this.facade.setReadOnlyMode(this.isSchemaGroup(selected));\r\n });\r\n\r\n // Override add action to include initialization parameters (MetaEntityId, CustomFieldGroupType) from parent context\r\n this.facade.actions.patch('add', {\r\n getParameter: () => this.getInitializationParameters()\r\n });\r\n\r\n this.facade.sections.registerSection(this.FIELD_OPTIONS_SECTION,\r\n CustomFieldGroupItemComponent,\r\n {\r\n filterOverride : (selected) => {\r\n const filter: CustomFieldGroupItemFilterViewModel = {\r\n GroupId: selected && selected.length > 0 ? selected[0].Id : -1,\r\n SortColumn : 'OrderNumber',\r\n SortDirection : 'ASC',\r\n Offset: 0,\r\n Take: 25\r\n };\r\n return filter;\r\n },\r\n selectionOverride : (component: CustomFieldGroupItemComponent, selected : CustomFieldGroup[]) => {\r\n const initParams = {\r\n MetaEntityId: selected[0]?.MetaEntityId ?? -1,\r\n CustomFieldGroupType:CustomFieldGroupTypes.Extension\r\n } as Partial<CustomFieldGroupItemView>;\r\n component.setInitializationParameters(initParams);\r\n }\r\n });\r\n }\r\n\r\n private isSchemaGroup(selected: CustomFieldGroup[]): boolean {\r\n return selected?.[0]?.CustomFieldGroupType === CustomFieldGroupTypes.Schema;\r\n }\r\n\r\n private getInitializationParameters(): Partial<CustomFieldGroup> | null {\r\n return this.initializationParams;\r\n }\r\n\r\n public setInitializationParameters(params: Partial<CustomFieldGroup>): void {\r\n this.initializationParams = params;\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","import { Utilities } from '@dflat-core/web/core';\r\nimport {\r\n AlertService,\r\n FacadeModalService,\r\n MessageSeverity\r\n} from '@dflat-core/web/core-ux';\r\nimport {\r\n CustomFieldGroupEntityDataService,\r\n CustomFieldGroupItemDataService,\r\n CustomFieldOptionsDataService,\r\n MetaEntityFieldDataService,\r\n} from '@dflat-core/web/meta-data';\r\nimport {\r\n CustomFieldView,\r\n CustomFieldGroup,\r\n CustomFieldGroupEntityView,\r\n CustomFieldGroupItemView,\r\n CustomFieldOptionsView,\r\n MetaEntityField\r\n} from '@dflat-core/web/meta-model';\r\nimport { CustomFieldComponent } from '../data-components/customfield.component';\r\nimport { CustomFieldGroupComponent } from '../data-components/customfieldgroup.component';\r\nimport { CustomFieldOptionsEditorComponent } from '../custom-field-options/custom-field-options-editor.component';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, Subject } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class CustomFieldActionService {\r\n constructor(\r\n public alertService: AlertService,\r\n private customFieldOptionsDataService: CustomFieldOptionsDataService,\r\n private customFieldGroupItemDataService: CustomFieldGroupItemDataService,\r\n private customFieldGroupEntityDataService: CustomFieldGroupEntityDataService,\r\n private metaEntityFieldDataService: MetaEntityFieldDataService,\r\n private selector: FacadeModalService\r\n ) {}\r\n\r\n onCustomFieldAddSubject = new Subject<MetaEntityField>();\r\n addCustomField(metaEntityKey: string, existentCustomFields: number[]) {\r\n this.selector\r\n .openSelectorModal(\r\n 'Ajout des attributs',\r\n CustomFieldComponent,\r\n (component) => {}\r\n )\r\n .subscribe((res: CustomFieldView[]) => {\r\n // subscription.unsubscribe();\r\n\r\n let models: MetaEntityField[] = [];\r\n res.forEach((element) => {\r\n var mef: MetaEntityField = {\r\n MetaEntityKey: metaEntityKey,\r\n CustomFieldId: element.Id,\r\n };\r\n models.push(mef);\r\n });\r\n if (models.length > 0)\r\n this.metaEntityFieldDataService\r\n .saveEntities(models)\r\n .subscribe(\r\n (result) => {\r\n if (result.Success)\r\n this.alertService.showMessage(\r\n `Attributs`,\r\n `L'ajout de l'attribut a été effectuée avec succès`,\r\n MessageSeverity.Success\r\n );\r\n else this.alertService.handleSaveError(result);\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n err.error.Message,\r\n MessageSeverity.Error\r\n );\r\n },\r\n () => {\r\n this.onCustomFieldAddSubject.next({});\r\n }\r\n );\r\n return res;\r\n });\r\n }\r\n\r\n private onCustomFieldOptionAddSubject = new Subject<CustomFieldOptionsView>();\r\n customFieldOptionAdded$: Observable<CustomFieldOptionsView> =\r\n this.onCustomFieldOptionAddSubject.asObservable()!;\r\n addCustomFieldOption(customFieldId: number) {\r\n let modal = this.selector\r\n .openEditorModal(\r\n \"Ajout option d'attribut\",\r\n CustomFieldOptionsEditorComponent,\r\n (component: CustomFieldOptionsEditorComponent) => {},\r\n {}\r\n )\r\n .subscribe((component: CustomFieldOptionsEditorComponent) => {\r\n if (!component.isCancel) {\r\n var entity = component.entityViewModel.ViewModel;\r\n this.customFieldOptionsDataService\r\n .saveEntity(entity)\r\n .subscribe(\r\n (res) => {\r\n if (res.Success)\r\n this.alertService.showMessage(\r\n \"Option d'attribut\",\r\n `L'option a été ajoutée avec succès`,\r\n MessageSeverity.Success\r\n );\r\n else this.alertService.handleSaveError(res);\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n err.error.Message,\r\n MessageSeverity.Error\r\n );\r\n },\r\n () => {\r\n this.onCustomFieldOptionAddSubject.next(entity);\r\n }\r\n );\r\n }\r\n });\r\n\r\n return modal;\r\n }\r\n\r\n onCustomFieldGroupAddSubject = new Subject<CustomFieldGroup>();\r\n addCustomFieldtoGroup(groupId: number, initParams?: Partial<CustomFieldGroupItemView>) {\r\n this.selector\r\n .openSelectorModal('Ajout des attributs', CustomFieldComponent)\r\n .subscribe((res: CustomFieldView[]) => {\r\n let models: CustomFieldGroupItemView[] = res\r\n .map((element) => {return {\r\n GroupId: groupId,\r\n CustomFieldId: element.Id,\r\n ...initParams\r\n } as CustomFieldGroupItemView});\r\n if (models.length > 0)\r\n this.customFieldGroupItemDataService\r\n .saveEntities(models)\r\n .subscribe(\r\n (result) => {\r\n if (result.Success)\r\n this.alertService.showMessage(\r\n `Attributs`,\r\n `L'ajout de l'attribut a été effectuée avec succès`,\r\n MessageSeverity.Success\r\n );\r\n else this.alertService.handleSaveError(result);\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n // err.error.Message,\r\n \"Une erreur s'est produite lors de l'ajout de l'attribut à la famille\",\r\n MessageSeverity.Error\r\n );\r\n },\r\n () => {\r\n this.onCustomFieldGroupAddSubject.next({});\r\n }\r\n );\r\n return res;\r\n });\r\n }\r\n\r\n onCustomFieldGroupEntityAddSubject = new Subject<CustomFieldGroup>();\r\n addCustomFieldGroupEntity(entityId: number, entityKey: string) {\r\n \r\n if (Utilities.IsNil(entityKey))\r\n throw new Error('Le paramètre entityKey n\\'est pas spécifié !');\r\n\r\n this.selector\r\n .openSelectorModal(\r\n \"Ajouter une famille d'attributs\",\r\n CustomFieldGroupComponent,\r\n (component) => {}\r\n )\r\n .subscribe((res: CustomFieldGroup[]) => {\r\n if(Utilities.IsNil(res))\r\n return;\r\n let models: CustomFieldGroupEntityView[] = [];\r\n res.forEach((element) => {\r\n var cfge: CustomFieldGroupEntityView = {\r\n CustomFieldGroupId: element.Id,\r\n EntityId: entityId,\r\n EntityKey: entityKey,\r\n };\r\n models.push(cfge);\r\n });\r\n if (models.length > 0)\r\n this.customFieldGroupEntityDataService\r\n .saveEntities(models)\r\n .subscribe(\r\n (result) => {\r\n if (result.Success)\r\n this.alertService.showMessage(\r\n `Famille d'attribut`,\r\n `L'ajout des familles d'attribut a été effectuée avec succès`,\r\n MessageSeverity.Success\r\n );\r\n else this.alertService.handleSaveError(result);\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n \"Une erreur s'est produite lors de l'ajout des familles d'attributs \",\r\n MessageSeverity.Error\r\n );\r\n },\r\n () => {\r\n this.onCustomFieldGroupEntityAddSubject.next(\r\n {}\r\n );\r\n }\r\n );\r\n return res;\r\n });\r\n }\r\n}\r\n","import { Utilities } from '@dflat-core/web/core';\r\nimport { Action, ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldOptionsView } from '@dflat-core/web/meta-model';\r\nimport { CustomFieldActionService } from '../services/custom-field-action-service';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { takeUntil } from 'rxjs';\r\nimport { BaseCustomFieldOptionsComponent } from './generated/customfieldoptions.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-custom-field-options',\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 CustomFieldOptionsComponent extends BaseCustomFieldOptionsComponent {\r\n // Titre court, affiché en section de l'attribut (le titre généré est « Option de champ personnalisé »).\r\n getTitle(): string {\r\n return \"Options\";\r\n }\r\n\r\n constructor(\r\n app: ApplicationService,\r\n route: ActivatedRoute,\r\n private customFieldActionService: CustomFieldActionService\r\n ) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit() {\r\n super.ngOnInit();\r\n this.facade.actions.hideAction('edit');\r\n // Ordre des options : lignes déplacées à la souris dans la grille.\r\n this.facade.config.rowOrderProperty = 'OrderNumber';\r\n this.facade.config.rowRankProperty = 'OrderRank';\r\n const actionsToAdd = [\r\n new Action(\"Définir par défaut\",null, true, true, false, 'circle-check-solid', 'bg-orange', () => this.setIsDefault(),null,() => this.canSetIsDefault())\r\n ];\r\n this.facade.actions.addActions(actionsToAdd);\r\n this.facade.actions.patch('add', {\r\n action : () => this.add() , \r\n isActive : () => { return !Utilities.IsNil(this.Filter) && this.Filter.CustomFieldId > 0 }\r\n });\r\n \r\n this.customFieldActionService.customFieldOptionAdded$.pipe(takeUntil(this.destroy$))\r\n .subscribe(()=>{ this.performLoadData();});\r\n\r\n }\r\n\r\n add () {\r\n let partial : Partial<CustomFieldOptionsView> \r\n = { CustomFieldId : this.Filter.CustomFieldId };\r\n const hasSelection = this.facade.selection.hasSelection();\r\n \r\n this.facade.selection.createNewEntity(partial);\r\n let item = this.facade.selection.Selected[0];\r\n if(!hasSelection){\r\n item.IsDefault = true;\r\n item.IsDefaultImage = this.img;\r\n }\r\n }\r\n \r\n img =\"iVBORw0KGgoAAAANSUhEUgAAABgAAAAgCAYAAAAIXrg4AAACRElEQVRIS+2VMWhTURSG/3PvyyuSQQrlvdbBKkWQiiLqWivFQVDbJsXiIiIIFjcnBRcHFx1cOzkoiFBsHooIHaqQjopgQQcpDkHb5EXQxdTmvXeOJBhJ6ktz01hw6Nsu97//d8+555xH2OKPttgf24CWGf6/UiQZ16lcmdIFv+XVfwvaiqDs9T6EQOx0/uI/BwRe7wmCvKoYi1LDibGVrAnEKAKZOWCH9td3JNhfBYh8sIr+YbqCoBXECBBl3JtCuF1vRkQ39Hj+TscAeebuDSJ+r6B21Jsx849Ewhqk0ZXcRpDYCGS2py/S+jggQxzJaaXUniYmnwC8AGhBB1GWJov59bo/gNBzLoAxAkVDAAZahR67z1gCYQGQeSvtP6qWdE0YZZwpIZrelPHfhy5bqcL9BkBlEWTce0S41glEWO4mJvzrNY+GN5BbUNEh1wNhdFMQplmdzp8jgsQCqjU+5ya5JFkBHWkPwq910DVMk59XG8o5zkSe9uwqs36jgT4TiAi+WCEf27CK1huFnjMP0IgJAKA5K5U/Fadt2snRE3dRNA6aAAjyVqf8o20B1jx32TRFDMnZKb+/LUDZc9YUyDaJgJlL9kQxaQyQme6dUcL+XjvA4FUF9ZiVqjaiivgqE5+vn0/a0kk6u1xqOirqN8RzBiLQkoA+Ksi0SnQ9oDO5bw2a57u7ufzzEhNNEbBPa9UfN/iaDrtQ6UFrvPCyvmliS1pAoeectDQWacwvGEVgkndTjdEPx9TM+JE7MdxOUdvZ+wVUzsIhexJVnQAAAABJRU5ErkJggg==\";\r\n\r\n setIsDefault() { \r\n const datas = this.facade.selection.getCurrentData();\r\n const oldDefault = datas.find(x=>x.IsDefault);\r\n\r\n const selected = this.selectedEntities[0];\r\n selected.IsDefault = true;\r\n selected.IsDefaultImage = this.img;\r\n let toSave = [selected];\r\n\r\n if(oldDefault){\r\n oldDefault.IsDefault = false;\r\n oldDefault.IsDefaultImage = null;\r\n toSave.push(oldDefault);\r\n }\r\n this.facade.change.emitUpdated(toSave);\r\n }\r\n\r\n canSetIsDefault() : boolean {\r\n return !this.selectedEntities[0].IsDefault;\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 CustomFieldController).\r\n// Ne pas modifier : le code spécifique s'écrit dans CustomFieldComponent, dérivé de BaseCustomFieldComponent.\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 { CustomFieldFilterViewModel, CustomFieldView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des CustomFieldView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : CustomFieldComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseCustomFieldComponent extends BaseComponent<CustomFieldFilterViewModel, CustomFieldView> {\r\n getTitle(): string {\r\n return 'Attributs';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomField;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_CUSTOMFIELD;\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 'CFI';\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/CustomFieldForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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, filterFromId } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldOptionsFilterViewModel, CustomFieldView } from '@dflat-core/web/meta-model';\r\nimport { CustomFieldOptionsComponent } from './customfieldoptions.component';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { BaseCustomFieldComponent } from './generated/customfield.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-custom-field',\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 CustomFieldComponent extends BaseCustomFieldComponent {\r\n constructor(\r\n app: ApplicationService,\r\n route: ActivatedRoute,\r\n ) {\r\n super(app, route);\r\n }\r\n\r\n FIELD_OPTIONS_SECTION: string = \"Options d'attribut\";\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.facade.sections.registerSection(\r\n this.FIELD_OPTIONS_SECTION,\r\n CustomFieldOptionsComponent,\r\n {\r\n filterOverride: filterFromId<CustomFieldView, CustomFieldOptionsFilterViewModel>('CustomFieldId'),\r\n show:(selected : CustomFieldView[]) => selected.length == 1 && selected[0].CustomFieldType == 3,\r\n }\r\n );\r\n this.facade.actions.patch('showHistory', { isActive: () => true });\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 CustomFieldGroupEntityController).\r\n// Ne pas modifier : le code spécifique s'écrit dans CustomFieldGroupEntityComponent, dérivé de BaseCustomFieldGroupEntityComponent.\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 { CustomFieldGroupEntityFilterViewModel, CustomFieldGroupEntityView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des CustomFieldGroupEntityView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : CustomFieldGroupEntityComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseCustomFieldGroupEntityComponent extends BaseComponent<CustomFieldGroupEntityFilterViewModel, CustomFieldGroupEntityView> {\r\n getTitle(): string {\r\n return 'Entité d\\'un groupe de champs';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroupEntity;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_CUSTOMFIELDGROUPENTITY;\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 'CFGV';\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 { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldActionService } from '../services/custom-field-action-service';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Subscription, takeUntil } from 'rxjs';\r\nimport { BaseCustomFieldGroupEntityComponent } from './generated/customfieldgroupentity.component.generated';\r\n\r\n@Component({\r\n selector: 'msw-custom-field-group-entity',\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 CustomFieldGroupEntityComponent extends BaseCustomFieldGroupEntityComponent {\r\n // Titre métier (le titre généré est « Entité d'un groupe de champs »).\r\n getTitle(): string {\r\n return \"Famille d'attributs\";\r\n }\r\n\r\n constructor(app: ApplicationService,\r\n protected route: ActivatedRoute,\r\n private cfactionService: CustomFieldActionService)\r\n {\r\n super(app, route);\r\n }\r\n\r\n onCFGEAddSubscription : Subscription;\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n \r\n this.facade.layout.disablePropertyPanel();\r\n\r\n this.cfactionService.onCustomFieldGroupEntityAddSubject.asObservable().pipe(takeUntil(this.destroy$))\r\n .subscribe(()=>{ this.performLoadData();});\r\n \r\n this.facade.actions.patch('add',\r\n { \r\n action : () => { \r\n this.cfactionService.addCustomFieldGroupEntity(this.Filter.EntityId,this.Filter.EntityKey)\r\n } , \r\n isActive : () => { \r\n return true; \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 FilesController).\r\n// Ne pas modifier : le code spécifique s'écrit dans FilesComponent, dérivé de BaseFilesComponent.\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 { FilesFilterViewModel, FilesView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des FilesView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : FilesComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseFilesComponent extends BaseComponent<FilesFilterViewModel, FilesView> {\r\n getTitle(): string {\r\n return 'Fichiers';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Files;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_FILES;\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 'FILV';\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 { BaseFilesComponent } from './generated/files.component.generated';\r\n\r\n/**\r\n * Recherche et édition des FilesView : code spécifique du composant (la partie générée\r\n * est BaseFilesComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-files-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 FilesComponent extends BaseFilesComponent {\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 KeywordController).\r\n// Ne pas modifier : le code spécifique s'écrit dans KeywordComponent, dérivé de BaseKeywordComponent.\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 { Keyword, KeywordFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des Keyword (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : KeywordComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseKeywordComponent extends BaseComponent<KeywordFilterViewModel, Keyword> {\r\n getTitle(): string {\r\n return 'Mots-clés';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Keyword;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_KEYWORD;\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 'KWD';\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/KeywordForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseKeywordComponent } from './generated/keyword.component.generated';\r\n\r\n/**\r\n * Recherche et édition des Keyword : code spécifique du composant (la partie générée\r\n * est BaseKeywordComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-keyword-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 KeywordComponent extends BaseKeywordComponent {\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 MetaEntityFieldController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityFieldComponent, dérivé de BaseMetaEntityFieldComponent.\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 { MetaEntityField, MetaEntityFieldFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityField (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityFieldComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityFieldComponent extends BaseComponent<MetaEntityFieldFilterViewModel, MetaEntityField> {\r\n getTitle(): string {\r\n return 'Champ de méta-entité';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityField;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYFIELD;\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 'MEF';\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/MetaEntityFieldForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Utilities } from '@dflat-core/web/core';\r\nimport { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { MetaEntityFieldFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { CustomFieldActionService } from '../services/custom-field-action-service';\r\nimport { Component, ChangeDetectionStrategy } from \"@angular/core\";\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Subject, takeUntil } from 'rxjs';\r\nimport { BaseMetaEntityFieldComponent } from './generated/metaentityfield.component.generated';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'alg-meta-entity-field',\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 MetaEntityFieldComponent extends BaseMetaEntityFieldComponent {\r\n\r\n // Titre métier (le titre généré est « Champ de méta-entité »).\r\n getTitle(): string {\r\n return 'Attributs';\r\n }\r\n\r\n constructor(\r\n app: ApplicationService,\r\n private customFieldActionService : CustomFieldActionService,\r\n protected route: ActivatedRoute)\r\n {\r\n super(app, route);\r\n\r\n }\r\n \r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.customFieldActionService.onCustomFieldAddSubject.pipe(takeUntil(this.privateDestroy$))\r\n .subscribe(()=>{ this.performLoadData(); })\r\n\r\n \r\n this.facade.actions.hideAction('export');\r\n this.facade.actions.hideAction('edit');\r\n this.facade.actions.hideAction('save');\r\n \r\n this.facade.actions.patch('add',{ action : () => this.add()});\r\n this.facade.actions.patch('delete',\r\n { isActive : () => { const selected = this.selectedEntities;\r\n return selected.length == 1 && !Utilities.IsNil(selected[0].CustomFieldId);}\r\n });\r\n }\r\n\r\n\r\n private privateDestroy$ = new Subject<void>();\r\n public ngOnDestroy(){\r\n this.privateDestroy$.next();\r\n this.privateDestroy$.complete();\r\n }\r\n\r\n \r\n\r\n add() {\r\n const values = this.facade.selection.getCurrentData()\r\n .filter(x=>!Utilities.IsNil(x.CustomFieldId))\r\n .map(x=>x.CustomFieldId);\r\n const filter = this.facade.filter.filter$.value as MetaEntityFieldFilterViewModel;\r\n let entityKey = filter.MetaEntityKey;\r\n console.log(entityKey)\r\n this.customFieldActionService.addCustomField(this.Filter.MetaEntityKey,Array.from(values));\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 MetaEntityController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityComponent, dérivé de BaseMetaEntityComponent.\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 { MetaEntity, MetaEntityFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntity (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityComponent extends BaseComponent<MetaEntityFilterViewModel, MetaEntity> {\r\n getTitle(): string {\r\n return 'Modèle';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntity;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITY;\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 'MEY';\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/MetaEntityForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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","\r\nimport { SpecificSection } from '@dflat-core/web/core-model';\r\nimport { additionalQueryOf, IIsCancel } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldGroup, CustomFieldGroupFilterViewModel, CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView, MetaEntity, MetaEntityField, MetaEntityFieldFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { CustomFieldGroupComponent } from './customfieldgroup.component';\r\nimport { CustomFieldGroupItemComponent } from './customfieldgroupitem.component';\r\nimport { MetaEntityFieldComponent } from './metaentityfield.component';\r\nimport { Component, ChangeDetectionStrategy } from \"@angular/core\";\r\nimport { CustomFieldGroupTypes } from '@dflat-core/web/meta-model';\r\nimport { takeUntil } from 'rxjs';\r\nimport { BaseMetaEntityComponent } from './generated/metaentity.component.generated';\r\n@Component({\r\n selector: 'alg-meta-entity',\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 MetaEntityComponent extends BaseMetaEntityComponent implements IIsCancel{\r\n\r\n // Titre au pluriel (le titre généré est « Modèle »).\r\n getTitle(): string {\r\n return 'Modèles';\r\n }\r\n\r\n specificSections: SpecificSection[];\r\n META_ENTITY_FIELD_SECTION: string = \"Champs\";\r\n SCHEMA_SECTION: string = \"Extensions\";\r\n // EXTENSION_SECTION: string = \"Attributs Étendus\";\r\n CONTEXTUAL_SECTION: string = \"Famille d'attributs\";\r\n public isCancel: boolean = false;\r\n private selectedMetaEntity: MetaEntity | null = null;\r\n\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.specificSections = [];\r\n this.facade.actions.clearActions();\r\n this.facade.actions.showAction('export');\r\n this.facade.actions.showAction('save');\r\n\r\n // Track selected MetaEntity for child sections\r\n this.facade.selection.selected$.pipe(takeUntil(this.destroy$))\r\n .subscribe((selected) => {\r\n this.selectedMetaEntity = selected && selected.length > 0 ? selected[0] : null;\r\n });\r\n\r\n // 1. MetaEntityField section (unchanged)\r\n this.facade.sections.registerSection<MetaEntityField,MetaEntityFieldFilterViewModel>(\r\n this.META_ENTITY_FIELD_SECTION,\r\n MetaEntityFieldComponent,\r\n {\r\n filterOverride : (selected : MetaEntity[]) => {\r\n const filter: MetaEntityFieldFilterViewModel = {\r\n MetaEntityKey : selected[0].EntityKey ?? '',\r\n AdditionalQuery: selected && selected.length > 0\r\n ? additionalQueryOf({ Property: 'MetaEntityKey', Operator: 'in', Values: selected.map(s => s.EntityKey ?? '') })\r\n : undefined,\r\n Offset: 0,\r\n Take: 50\r\n };\r\n return filter;\r\n }\r\n });\r\n\r\n // 2. Schema Group (Type 1) - Admin-only structure, items directly, no header detail\r\n this.facade.sections.registerSection(this.SCHEMA_SECTION,\r\n CustomFieldGroupItemComponent,\r\n {\r\n filterOverride : (selected) => {\r\n const filter: CustomFieldGroupItemFilterViewModel = {\r\n MetaEntityId: selected && selected.length > 0 ? selected[0].Id : -1,\r\n GroupTypes: [CustomFieldGroupTypes.Schema],\r\n Offset: 0,\r\n Take: 50\r\n };\r\n return filter;\r\n },\r\n layoutOverride : (component : CustomFieldGroupItemComponent) => {\r\n component.facade.actions.hideActions(['edit']);\r\n },\r\n selectionOverride : (component: CustomFieldGroupItemComponent, selected : MetaEntity[]) => {\r\n const initParams = {\r\n MetaEntityId: selected[0]?.Id ?? -1,\r\n CustomFieldGroupType:CustomFieldGroupTypes.Extension\r\n } as Partial<CustomFieldGroupItemView>;\r\n component.setInitializationParameters(initParams);\r\n }\r\n });\r\n\r\n // 3. Extension Group (Type 2) - Global entity extension, header + items\r\n // 4. Contextual Groups (Type 3) - Scoped groups, headers + items\r\n this.facade.sections.registerSection(this.CONTEXTUAL_SECTION,\r\n CustomFieldGroupComponent,\r\n {\r\n filterOverride : (selected) => {\r\n const filter: CustomFieldGroupFilterViewModel = {\r\n MetaEntityId: selected && selected.length > 0 ? selected[0].Id : -1,\r\n GroupTypes: [CustomFieldGroupTypes.Extension,CustomFieldGroupTypes.Contextual],\r\n Offset: 0,\r\n Take: 50\r\n };\r\n return filter;\r\n },\r\n selectionOverride : (component: CustomFieldGroupComponent, selected : MetaEntity[]) => {\r\n const initParams = {\r\n MetaEntityId: selected[0]?.Id ?? -1,\r\n CustomFieldGroupType:CustomFieldGroupTypes.Contextual\r\n } as Partial<CustomFieldGroup>;\r\n component.setInitializationParameters(initParams);\r\n }\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","import {\r\n FieldFilterTypes, FormEditorContext, MetaEntity, MetaEntityFormFieldView, MetaEntityFormSectionView, MetaEntityFormView,\r\n} from '@dflat-core/web/meta-model';\r\n\r\n/** Section éditée : IsHidden (section masquée) vient du correctif System 01.07.04.28. */\r\nexport type FormEditorSection = MetaEntityFormSectionView & { IsHidden?: boolean };\r\n\r\n/** Nature d'une section de formulaire, déduite de ses indicateurs. */\r\nexport enum FormEditorSectionKinds {\r\n /** Section de champs. */\r\n Fields = 'fields',\r\n /** Onglet d'entités liées (relation 1..*) : DataMetaEntityId et FilterPropertyName. */\r\n Related = 'related',\r\n /** Champs personnalisés (attributs). */\r\n CustomFields = 'customfields',\r\n /** Fichiers de l'enregistrement. */\r\n Files = 'files',\r\n /** Historique de l'enregistrement. */\r\n TrackRecords = 'trackrecords',\r\n}\r\n\r\n/** Natures de section proposées par l'éditeur, avec leur libellé. */\r\nexport const FormEditorSectionKindOptions: { value: FormEditorSectionKinds; label: string }[] = [\r\n { value: FormEditorSectionKinds.Fields, label: 'Champs' },\r\n { value: FormEditorSectionKinds.Related, label: 'Entités liées (onglet)' },\r\n { value: FormEditorSectionKinds.CustomFields, label: 'Attributs' },\r\n { value: FormEditorSectionKinds.Files, label: 'Fichiers' },\r\n { value: FormEditorSectionKinds.TrackRecords, label: 'Historique' },\r\n];\r\n\r\n/**\r\n * État de l'éditeur de formulaire de l'administrateur, sans dépendance à Angular : sections et\r\n * champs du formulaire dans l'ordre d'affichage, sélection courante, ajouts, suppressions et\r\n * déplacements. FormEditorComponent l'affiche et publie toContext().Sections à chaque\r\n * modification ; à l'enregistrement, l'ordre des listes remplace les OrderNumber.\r\n */\r\nexport class FormEditorModel {\r\n form: MetaEntityFormView | null = null;\r\n sections: FormEditorSection[] = [];\r\n catalog: MetaEntityFormFieldView[] = [];\r\n entities: MetaEntity[] = [];\r\n\r\n selectedSection: FormEditorSection | null = null;\r\n selectedField: MetaEntityFormFieldView | null = null;\r\n\r\n /** Vrai dès qu'une modification n'est pas enregistrée. */\r\n isDirty = false;\r\n\r\n /** Appelé à chaque modification (l'éditeur publie alors la définition vers l'écran). */\r\n onChange?: () => void;\r\n\r\n /** Charge le formulaire lu par MetaEntityForm/GetFormEditor et sélectionne sa première section. */\r\n load(context: FormEditorContext | null | undefined): void {\r\n this.form = context?.Form ?? null;\r\n this.sections = (context?.Sections ?? []).map(section => ({ ...section, FormFields: [...(section.FormFields ?? [])] }));\r\n this.catalog = context?.Catalog ?? [];\r\n this.entities = context?.Entities ?? [];\r\n this.selectedSection = this.sections[0] ?? null;\r\n this.selectedField = null;\r\n this.isDirty = false;\r\n }\r\n\r\n /** Signale une modification faite directement sur une section ou un champ (saisie). */\r\n touch(): void {\r\n this.isDirty = true;\r\n this.onChange?.();\r\n }\r\n\r\n // ---- Sections -----------------------------------------------------------------------\r\n\r\n kindOf(section: FormEditorSection): FormEditorSectionKinds {\r\n if (section.DataMetaEntityId != null) return FormEditorSectionKinds.Related;\r\n if (section.IsCustomFieldSection) return FormEditorSectionKinds.CustomFields;\r\n if (section.IsFileSection) return FormEditorSectionKinds.Files;\r\n if (section.IsTrackRecordSection) return FormEditorSectionKinds.TrackRecords;\r\n return FormEditorSectionKinds.Fields;\r\n }\r\n\r\n /** Vrai pour une section qui porte des champs (les autres natures n'en affichent pas). */\r\n hasFields(section: FormEditorSection | null): boolean {\r\n return !!section && this.kindOf(section) === FormEditorSectionKinds.Fields;\r\n }\r\n\r\n /**\r\n * Change la nature d'une section. Une section d'entités liées reçoit la première table en\r\n * attendant le choix de l'administrateur ; ses champs sont conservés tant qu'elle n'est pas\r\n * enregistrée sous une autre nature que « Champs » (le formulaire ne les affiche plus).\r\n */\r\n setKind(section: FormEditorSection, kind: FormEditorSectionKinds): void {\r\n section.IsCustomFieldSection = kind === FormEditorSectionKinds.CustomFields;\r\n section.IsFileSection = kind === FormEditorSectionKinds.Files;\r\n section.IsTrackRecordSection = kind === FormEditorSectionKinds.TrackRecords;\r\n if (kind === FormEditorSectionKinds.Related) {\r\n section.DataMetaEntityId = section.DataMetaEntityId ?? this.entities[0]?.Id;\r\n this.setDataEntity(section, section.DataMetaEntityId);\r\n } else {\r\n section.DataMetaEntityId = undefined;\r\n section.DataMetaEntityEntityName = undefined;\r\n section.FilterPropertyName = undefined;\r\n }\r\n if (this.selectedSection === section && !this.hasFields(section))\r\n this.selectedField = null;\r\n this.touch();\r\n }\r\n\r\n /**\r\n * Table listée par une section d'entités liées. Le critère de filtre proposé est la clé\r\n * étrangère vers l'entité du formulaire (<Entité>Id), comme dans les scripts générés.\r\n */\r\n setDataEntity(section: FormEditorSection, metaEntityId: number | null | undefined): void {\r\n const entity = this.entities.find(e => e.Id === metaEntityId);\r\n section.DataMetaEntityId = entity?.Id;\r\n section.DataMetaEntityEntityName = entity?.EntityName;\r\n if (!section.FilterPropertyName && this.form?.MetaEntityEntityName)\r\n section.FilterPropertyName = this.form.MetaEntityEntityName.replace(/View$/, '') + 'Id';\r\n this.touch();\r\n }\r\n\r\n /** Ajoute une section de champs à la fin du formulaire, avec un titre libre, et la sélectionne. */\r\n addSection(): FormEditorSection {\r\n const section: FormEditorSection = {\r\n MetaEntityFormId: this.form?.Id,\r\n Name: this.uniqueSectionName('Nouvelle section'),\r\n IsCustomFieldSection: false,\r\n IsFileSection: false,\r\n IsTrackRecordSection: false,\r\n IsHidden: false,\r\n FormFields: [],\r\n };\r\n this.sections.push(section);\r\n this.selectSection(section);\r\n this.touch();\r\n return section;\r\n }\r\n\r\n /** Retire une section et ses champs (supprimés en base à l'enregistrement). */\r\n removeSection(section: FormEditorSection): void {\r\n const index = this.sections.indexOf(section);\r\n if (index < 0) return;\r\n this.sections.splice(index, 1);\r\n if (this.selectedSection === section) {\r\n this.selectedSection = this.sections[Math.min(index, this.sections.length - 1)] ?? null;\r\n this.selectedField = null;\r\n }\r\n this.touch();\r\n }\r\n\r\n /** Déplace une section de la position previousIndex à la position currentIndex. */\r\n moveSection(previousIndex: number, currentIndex: number): void {\r\n if (this.move(this.sections, previousIndex, currentIndex))\r\n this.touch();\r\n }\r\n\r\n selectSection(section: FormEditorSection | null): void {\r\n if (this.selectedSection === section) return;\r\n this.selectedSection = section;\r\n this.selectedField = null;\r\n }\r\n\r\n /** Titres en double (sans tenir compte de la casse) : une section est désignée par son titre. */\r\n isDuplicateName(section: FormEditorSection): boolean {\r\n const name = (section.Name ?? '').trim().toLowerCase();\r\n return this.sections.some(other => other !== section && (other.Name ?? '').trim().toLowerCase() === name);\r\n }\r\n\r\n private uniqueSectionName(base: string): string {\r\n const names = new Set(this.sections.map(s => (s.Name ?? '').trim().toLowerCase()));\r\n if (!names.has(base.toLowerCase())) return base;\r\n let index = 2;\r\n while (names.has(`${base} ${index}`.toLowerCase())) index++;\r\n return `${base} ${index}`;\r\n }\r\n\r\n // ---- Champs -------------------------------------------------------------------------\r\n\r\n /** Tous les champs du formulaire, section par section. */\r\n get fields(): MetaEntityFormFieldView[] {\r\n return this.sections.flatMap(section => section.FormFields ?? []);\r\n }\r\n\r\n /** Colonnes de l'entité qui ne sont dans aucune section, filtrées par nom ou libellé. */\r\n availableColumns(search = ''): MetaEntityFormFieldView[] {\r\n const used = new Set(this.fields.map(f => (f.PropertyName ?? '').toLowerCase()));\r\n const query = search.trim().toLowerCase();\r\n return this.catalog.filter(column =>\r\n !used.has((column.PropertyName ?? '').toLowerCase())\r\n && (!query || (column.PropertyName ?? '').toLowerCase().includes(query) || (column.Label ?? '').toLowerCase().includes(query)));\r\n }\r\n\r\n /** Ajoute une colonne du catalogue à la fin de la section sélectionnée et sélectionne le champ. */\r\n addField(column: MetaEntityFormFieldView): MetaEntityFormFieldView | null {\r\n const section = this.selectedSection;\r\n if (!section || !this.hasFields(section) || !column?.PropertyName) return null;\r\n if (this.findField(section, column.PropertyName)) return null;\r\n\r\n const field: MetaEntityFormFieldView = { ...column, Id: undefined, RowVersion: undefined, MetaEntityFormSectionId: section.Id };\r\n (section.FormFields ??= []).push(field);\r\n this.selectedField = field;\r\n this.touch();\r\n return field;\r\n }\r\n\r\n /**\r\n * Ajoute un champ par le nom de sa propriété : la colonne du catalogue de ce nom (libellé et\r\n * type déduits), sinon un champ texte à paramétrer (propriété calculée du modèle, ex.\r\n * NewPassword), avec le libellé donné.\r\n */\r\n addFreeField(propertyName: string, label?: string): MetaEntityFormFieldView | null {\r\n const name = (propertyName ?? '').trim();\r\n if (!name) return null;\r\n const column = this.catalog.find(c => (c.PropertyName ?? '').toLowerCase() === name.toLowerCase());\r\n return this.addField(column ?? {\r\n PropertyName: name, Label: (label || name).substring(0, 50), FieldFilterType: FieldFilterTypes.String,\r\n FieldColumnSpan: 1, ColumnIndex: 0, IsClearable: true,\r\n });\r\n }\r\n\r\n /** Retire un champ de sa section ; les champs qu'il conditionnait perdent leur condition. */\r\n removeField(field: MetaEntityFormFieldView): void {\r\n const section = this.sectionOf(field);\r\n if (!section) return;\r\n section.FormFields!.splice(section.FormFields!.indexOf(field), 1);\r\n for (const other of this.fields)\r\n if (this.conditioningOf(other) === field.PropertyName)\r\n this.setConditioning(other, null);\r\n if (this.selectedField === field) this.selectedField = null;\r\n this.touch();\r\n }\r\n\r\n /** Déplace un champ dans sa section. */\r\n moveField(section: FormEditorSection, previousIndex: number, currentIndex: number): void {\r\n if (this.move(section.FormFields ?? [], previousIndex, currentIndex))\r\n this.touch();\r\n }\r\n\r\n /** Déplace un champ à la fin d'une autre section de champs. */\r\n moveFieldToSection(field: MetaEntityFormFieldView, target: FormEditorSection): boolean {\r\n const source = this.sectionOf(field);\r\n if (!source || source === target || !this.hasFields(target) || this.findField(target, field.PropertyName)) return false;\r\n source.FormFields!.splice(source.FormFields!.indexOf(field), 1);\r\n (target.FormFields ??= []).push(field);\r\n field.MetaEntityFormSectionId = target.Id;\r\n this.selectedSection = target;\r\n this.selectedField = field;\r\n this.touch();\r\n return true;\r\n }\r\n\r\n selectField(field: MetaEntityFormFieldView | null): void {\r\n this.selectedField = field;\r\n }\r\n\r\n sectionOf(field: MetaEntityFormFieldView): FormEditorSection | null {\r\n return this.sections.find(section => (section.FormFields ?? []).includes(field)) ?? null;\r\n }\r\n\r\n private findField(section: FormEditorSection, propertyName: string | undefined): MetaEntityFormFieldView | undefined {\r\n const name = (propertyName ?? '').toLowerCase();\r\n return (section.FormFields ?? []).find(f => (f.PropertyName ?? '').toLowerCase() === name);\r\n }\r\n\r\n // ---- Condition de visibilité ----------------------------------------------------------\r\n\r\n /** Propriété du champ conditionnant, ou null. */\r\n conditioningOf(field: MetaEntityFormFieldView): string | null {\r\n if (field.ConditioningMetaEntityFormFieldPropertyName) return field.ConditioningMetaEntityFormFieldPropertyName;\r\n if (field.ConditioningMetaEntityFormFieldId == null) return null;\r\n return this.fields.find(f => f.Id === field.ConditioningMetaEntityFormFieldId)?.PropertyName ?? null;\r\n }\r\n\r\n /** Champs qui peuvent conditionner field : tous les autres champs du formulaire. */\r\n conditioningCandidates(field: MetaEntityFormFieldView): MetaEntityFormFieldView[] {\r\n return this.fields.filter(f => f !== field);\r\n }\r\n\r\n /**\r\n * Relie field à son champ conditionnant, désigné par sa propriété (le serveur retrouve\r\n * l'identifiant, même pour un champ ajouté dans la même session), ou retire la condition.\r\n */\r\n setConditioning(field: MetaEntityFormFieldView, propertyName: string | null): void {\r\n const target = propertyName ? this.fields.find(f => f !== field && f.PropertyName === propertyName) : undefined;\r\n field.ConditioningMetaEntityFormFieldPropertyName = target?.PropertyName;\r\n field.ConditioningMetaEntityFormFieldId = target?.Id;\r\n field.IsConditional = !!target;\r\n if (target)\r\n target.IsConditioning = true;\r\n else {\r\n field.ConditioningValues = undefined;\r\n field.ConditioningBoolValue = undefined;\r\n field.FieldConditionalResult = undefined;\r\n }\r\n this.touch();\r\n }\r\n\r\n // ---- Enregistrement -------------------------------------------------------------------\r\n\r\n /** Message d'erreur si le formulaire ne peut pas être enregistré, sinon null (mêmes règles que le serveur). */\r\n validate(): string | null {\r\n if (this.form?.Id == null) return 'Formulaire non chargé';\r\n for (const section of this.sections) {\r\n if (!(section.Name ?? '').trim()) return 'Chaque section doit avoir un titre';\r\n if (this.isDuplicateName(section)) return `La section « ${section.Name} » est en double`;\r\n if (section.DataMetaEntityId != null && !(section.FilterPropertyName ?? '').trim())\r\n return `Section « ${section.Name} » : le critère de filtre est obligatoire pour une section d'entités liées`;\r\n }\r\n return null;\r\n }\r\n\r\n /**\r\n * Définition du formulaire, sections et champs dans l'ordre d'affichage : publiée dans\r\n * MetaEntityFormView.Sections et enregistrée avec le formulaire (ou envoyée à\r\n * MetaEntityForm/SaveFormEditor).\r\n */\r\n toContext(): FormEditorContext {\r\n return {\r\n Form: { Id: this.form?.Id },\r\n Sections: this.sections.map((section, sectionIndex) => ({\r\n ...section,\r\n OrderNumber: sectionIndex,\r\n FormFields: (section.FormFields ?? []).map((field, fieldIndex) => ({ ...field, OrderNumber: fieldIndex })),\r\n })),\r\n };\r\n }\r\n\r\n private move<T>(items: T[], previousIndex: number, currentIndex: number): boolean {\r\n if (previousIndex === currentIndex || previousIndex < 0 || currentIndex < 0\r\n || previousIndex >= items.length || currentIndex >= items.length)\r\n return false;\r\n items.splice(currentIndex, 0, items.splice(previousIndex, 1)[0]);\r\n return true;\r\n }\r\n}\r\n","import { FormControl, FormGroup } from '@angular/forms';\r\nimport { FieldDescriptor, Section } from '@dflat-core/web/core-model';\r\n\r\n/**\r\n * Volet de propriétés de l'éditeur de formulaire, affiché avec les composants des formulaires\r\n * (alg-field) : sections de champs standard et leur FormGroup, pour éditer un objet qui n'est pas\r\n * l'entité de l'écran (section ou champ du formulaire édité). Les propriétés portent un préfixe :\r\n * alg-field donne à ses éléments l'identifiant de la propriété, qui doit rester unique dans la page\r\n * (l'onglet « Propriétés » affiche déjà Label, Description...).\r\n */\r\nexport class FormEditorPanel {\r\n /** Sections de champs du volet. */\r\n readonly sections: Section[];\r\n /** Formulaire des champs du volet. */\r\n readonly form = new FormGroup<Record<string, FormControl>>({});\r\n\r\n /**\r\n * @param prefix Préfixe des propriétés du volet.\r\n * @param groups Sections du volet : titre et champs, désignés par la propriété de l'objet édité.\r\n */\r\n constructor(private readonly prefix: string, groups: { name: string; fields: FieldDescriptor[] }[]) {\r\n this.sections = groups.map(group => ({\r\n Name: group.name,\r\n FieldViewModels: group.fields.map(field => ({ ...field, PropertyName: prefix + field.PropertyName })),\r\n }));\r\n for (const field of this.fields)\r\n this.form.addControl(field.PropertyName!, new FormControl(null));\r\n }\r\n\r\n /** Champs du volet, à plat. */\r\n get fields(): FieldDescriptor[] {\r\n return this.sections.flatMap(section => section.FieldViewModels ?? []);\r\n }\r\n\r\n /** Sections qui ont au moins un champ affiché. */\r\n get visibleSections(): Section[] {\r\n return this.sections.filter(section => (section.FieldViewModels ?? []).some(field => !field.IsHidden));\r\n }\r\n\r\n /** Champ du volet qui édite la propriété property de l'objet. */\r\n field(property: string): FieldDescriptor {\r\n return this.fields.find(field => field.PropertyName === this.prefix + property)!;\r\n }\r\n\r\n /** Propriété de l'objet édité par le champ. */\r\n propertyOf(field: FieldDescriptor): string {\r\n return (field.PropertyName ?? '').substring(this.prefix.length);\r\n }\r\n\r\n /** Valeur saisie dans le champ. */\r\n valueOf(field: FieldDescriptor): any {\r\n return this.form.get(field.PropertyName!)?.value;\r\n }\r\n\r\n /** Affiche ou masque le champ de la propriété. */\r\n show(property: string, visible: boolean): void {\r\n this.field(property).IsHidden = !visible;\r\n }\r\n\r\n /** Recopie les valeurs (par propriété de l'objet) dans le formulaire, sans émettre de modification. */\r\n patch(values: Record<string, any>): void {\r\n for (const field of this.fields)\r\n this.form.get(field.PropertyName!)!.setValue(values[this.propertyOf(field)] ?? null, { emitEvent: false });\r\n }\r\n\r\n /** Recopie la valeur d'une seule propriété, sans émettre de modification. */\r\n set(property: string, value: any): void {\r\n this.form.get(this.prefix + property)?.setValue(value ?? null, { emitEvent: false });\r\n }\r\n}\r\n","import { CdkDragDrop } from '@angular/cdk/drag-drop';\r\nimport { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';\r\nimport { of, Subject } from 'rxjs';\r\nimport { catchError, map, switchMap, takeUntil } from 'rxjs/operators';\r\n\r\nimport { FilterType, PropertyEditorEvent } from '@dflat-core/web/core-model';\r\nimport { additionalQueryOf, ApplicationService, BaseEntityEditor, ValidationService } from '@dflat-core/web/core-ux';\r\nimport { MetaEntityFormDataService } from '@dflat-core/web/meta-data';\r\nimport {\r\n FieldColumnSpans, FieldConditionalResults, FieldFilterTypes, MetaEntityField, MetaEntityFieldFilterViewModel,\r\n MetaEntityFormFieldView, MetaEntityFormView,\r\n} from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { FormEditorModel, FormEditorSection, FormEditorSectionKindOptions, FormEditorSectionKinds } from './form-editor-model';\r\nimport { FormEditorPanel } from './form-editor-panel';\r\n\r\n/**\r\n * Éditeur de formulaire de l'administrateur, affiché par l'écran Formulaires (MetaEntityFormComponent)\r\n * à la place du formulaire d'édition standard : onglet « Propriétés » (champs du formulaire, avec les\r\n * composants des formulaires) et onglet « Définition » (sections ajoutées, supprimées, réordonnées ;\r\n * champs ajoutés par le sélecteur des colonnes de l'entité, supprimés, déplacés et paramétrés). Les\r\n * propriétés d'une section et les paramètres d'un champ s'affichent comme un formulaire standard\r\n * (FormEditorPanel, alg-field). L'état édité est tenu par FormEditorModel ; chaque modification est\r\n * publiée dans le formulaire sélectionné (MetaEntityFormView.Sections) et l'action « Enregistrer »\r\n * de l'écran envoie le tout (MetaEntityFormController.ProcessSave).\r\n */\r\n@Component({\r\n selector: 'msw-form-editor',\r\n templateUrl: './form-editor.component.html',\r\n styleUrls: ['./form-editor.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class FormEditorComponent extends BaseEntityEditor<MetaEntityFormView> implements OnInit {\r\n readonly model = new FormEditorModel();\r\n readonly Kinds = FormEditorSectionKinds;\r\n\r\n readonly fieldTypeOptions = [\r\n { value: FieldFilterTypes.String, label: 'Texte' },\r\n { value: FieldFilterTypes.Text, label: 'Texte long' },\r\n { value: FieldFilterTypes.Integer, label: 'Entier' },\r\n { value: FieldFilterTypes.Decimal, label: 'Décimal' },\r\n { value: FieldFilterTypes.Date, label: 'Date' },\r\n { value: FieldFilterTypes.DateTime, label: 'Date et heure' },\r\n { value: FieldFilterTypes.CheckBox, label: 'Case à cocher' },\r\n { value: FieldFilterTypes.ComboBox, label: 'Liste déroulante' },\r\n { value: FieldFilterTypes.HorizComboBox, label: 'Liste horizontale' },\r\n { value: FieldFilterTypes.RadioButton, label: 'Boutons radio' },\r\n { value: FieldFilterTypes.Custom, label: \"Sélecteur d'entité\" },\r\n { value: FieldFilterTypes.TreeSelector, label: 'Sélecteur en arbre' },\r\n { value: FieldFilterTypes.Email, label: 'E-mail' },\r\n { value: FieldFilterTypes.Password, label: 'Mot de passe' },\r\n { value: FieldFilterTypes.WeekNumber, label: 'Numéro de semaine' },\r\n { value: FieldFilterTypes.TextWithButton, label: 'Texte avec bouton' },\r\n { value: FieldFilterTypes.TextZoneWithButton, label: 'Zone de texte avec bouton' },\r\n { value: FieldFilterTypes.DropFileZone, label: 'Dépôt de fichier' },\r\n ];\r\n\r\n /** Propriétés de la section sélectionnée, affichées comme un formulaire standard. */\r\n readonly sectionPanel = new FormEditorPanel('fedSection_', [{\r\n name: 'Section',\r\n fields: [\r\n { PropertyName: 'Name', Label: 'Titre', FilterType: FilterType.String, Required: true },\r\n { PropertyName: 'Kind', Label: 'Nature', FilterType: FilterType.ComboBox, Data: FormEditorSectionKindOptions, ValueMember: 'value', DisplayMember: 'label', IsClearable: false },\r\n { PropertyName: 'DataMetaEntityId', Label: 'Entité listée', FilterType: FilterType.ComboBox, Data: [], ValueMember: 'Id', DisplayMember: 'EntityName', IsClearable: false },\r\n { PropertyName: 'FilterPropertyName', Label: 'Critère de filtre (clé étrangère)', FilterType: FilterType.String },\r\n { PropertyName: 'IsHidden', Label: 'Masquée', FilterType: FilterType.CheckBox },\r\n ],\r\n }]);\r\n\r\n /** Paramètres du champ sélectionné, affichés comme un formulaire standard. */\r\n readonly fieldPanel = new FormEditorPanel('fedField_', [\r\n {\r\n name: 'Champ',\r\n fields: [\r\n { PropertyName: 'Label', Label: 'Libellé', FilterType: FilterType.String },\r\n { PropertyName: 'FieldFilterType', Label: 'Type de champ', FilterType: FilterType.ComboBox, Data: this.fieldTypeOptions, ValueMember: 'value', DisplayMember: 'label', IsClearable: false },\r\n {\r\n PropertyName: 'FieldColumnSpan', Label: 'Largeur', FilterType: FilterType.ComboBox, ValueMember: 'value', DisplayMember: 'label', IsClearable: false,\r\n Data: [{ value: FieldColumnSpans.Full, label: 'Toute la largeur' }, { value: FieldColumnSpans.Single, label: 'Une colonne' }],\r\n },\r\n { PropertyName: 'ColumnIndex', Label: 'Colonne', FilterType: FilterType.Integer },\r\n { PropertyName: 'IsRequired', Label: 'Obligatoire', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'IsReadOnly', Label: 'Lecture seule', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'IsHidden', Label: 'Masqué', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'IsClearable', Label: 'Effaçable', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'Highlight', Label: 'Mis en avant', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'KeepPlace', Label: 'Garde sa place si masqué', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'ToolTip', Label: 'Info-bulle', FilterType: FilterType.String },\r\n { PropertyName: 'Description', Label: 'Description', FilterType: FilterType.String },\r\n ],\r\n },\r\n {\r\n name: 'Validation',\r\n fields: [\r\n { PropertyName: 'MaxLength', Label: 'Longueur max.', FilterType: FilterType.Integer },\r\n { PropertyName: 'MinValue', Label: 'Valeur min.', FilterType: FilterType.Decimal },\r\n { PropertyName: 'MaxValue', Label: 'Valeur max.', FilterType: FilterType.Decimal },\r\n ],\r\n },\r\n {\r\n name: 'Liste de valeurs',\r\n fields: [\r\n { PropertyName: 'DisplayMember', Label: 'Propriété affichée', FilterType: FilterType.String },\r\n { PropertyName: 'ValueMember', Label: 'Propriété de valeur', FilterType: FilterType.String },\r\n { PropertyName: 'ExportPropertyName', Label: 'Propriété recevant le libellé choisi', FilterType: FilterType.String },\r\n { PropertyName: 'MultipleSelection', Label: 'Sélection multiple', FilterType: FilterType.CheckBox },\r\n { PropertyName: 'IncludeAllOption', Label: 'Option « Tous »', FilterType: FilterType.CheckBox },\r\n ],\r\n },\r\n {\r\n name: \"Sélecteur d'entité\",\r\n fields: [\r\n { PropertyName: 'ModalEntityKey', Label: 'Entité ouverte (ex. Country)', FilterType: FilterType.String },\r\n { PropertyName: 'ModalPropertyName', Label: 'Colonne affichée', FilterType: FilterType.String },\r\n { PropertyName: 'ModalPropertyValue', Label: 'Colonne de valeur', FilterType: FilterType.String },\r\n { PropertyName: 'ModalTriggerProperty', Label: \"Clé étrangère qui reçoit l'identifiant\", FilterType: FilterType.String },\r\n { PropertyName: 'ModalTitle', Label: 'Titre de la fenêtre', FilterType: FilterType.String },\r\n ],\r\n },\r\n {\r\n name: \"Condition d'affichage\",\r\n fields: [\r\n { PropertyName: 'Conditioning', Label: 'Dépend du champ', FilterType: FilterType.ComboBox, Data: [], ValueMember: 'PropertyName', DisplayMember: 'Label', IsClearable: true },\r\n { PropertyName: 'ConditioningValues', Label: 'Valeurs déclenchantes (entiers, séparés par des virgules)', FilterType: FilterType.String },\r\n {\r\n PropertyName: 'FieldConditionalResult', Label: 'Effet de la condition', FilterType: FilterType.ComboBox, ValueMember: 'value', DisplayMember: 'label', IsClearable: true,\r\n Data: [{ value: FieldConditionalResults.Hide, label: 'Masqué' }, { value: FieldConditionalResults.ReadOnly, label: 'Lecture seule' }],\r\n },\r\n { PropertyName: 'ConditioningBoolValue', Label: \"Valeur déclenchante d'une case à cocher : cochée\", FilterType: FilterType.CheckBox },\r\n ],\r\n },\r\n {\r\n name: 'Section',\r\n fields: [\r\n { PropertyName: 'MoveTo', Label: 'Déplacer vers la section', FilterType: FilterType.ComboBox, Data: [], ValueMember: 'Name', DisplayMember: 'Name', IsClearable: true },\r\n ],\r\n },\r\n ]);\r\n\r\n /** Onglet affiché : 0 Propriétés, 1 Définition. */\r\n activeTab = 0;\r\n /** Formulaire dont la définition est chargée dans le modèle (undefined pendant le chargement). */\r\n loadedEntity: MetaEntityFormView = undefined;\r\n isLoading = false;\r\n message = '';\r\n freeProperty = '';\r\n\r\n /** Identifiant du formulaire dont la définition est chargée. */\r\n private loadedId: number = undefined;\r\n /** Formulaires dont il faut charger la définition : seul le dernier demandé est gardé. */\r\n private load$ = new Subject<MetaEntityFormView>();\r\n\r\n constructor(app: ApplicationService, validationService: ValidationService, private readonly data: MetaEntityFormDataService) {\r\n super(app, validationService);\r\n }\r\n\r\n ngOnInit(): void {\r\n // Chaque modification de la définition est publiée : le formulaire devient modifié pour l'écran.\r\n this.model.onChange = () => this.publishDefinition();\r\n\r\n this.load$.pipe(\r\n switchMap(entity => this.data.getFormEditor(entity.Id).pipe(\r\n map(context => ({ entity, context })),\r\n catchError(() => of(undefined)))),\r\n takeUntil(this.destroy$)\r\n ).subscribe(loaded => {\r\n this.isLoading = false;\r\n if (!loaded) {\r\n this.message = 'Erreur lors du chargement de la définition du formulaire.';\r\n return;\r\n }\r\n if (loaded.entity !== this.entity)\r\n return;\r\n this.model.load(loaded.context);\r\n this.loadedEntity = loaded.entity;\r\n this.loadedId = loaded.entity.Id;\r\n this.refreshPanels();\r\n });\r\n\r\n super.ngOnInit();\r\n }\r\n\r\n /**\r\n * Charge la définition du formulaire sélectionné. Une ligne réémise pendant l'édition (mêmes\r\n * modifications, pas encore enregistrées) garde la définition en cours ; après l'enregistrement,\r\n * elle est relue (identifiants des sections et des champs créés).\r\n */\r\n protected onEntityChanged(entity: MetaEntityFormView): void {\r\n if (entity && entity === this.loadedEntity)\r\n return;\r\n if (entity && entity.Id === this.loadedId && this.model.isDirty && this.facade.change.getModified(entity.Id)) {\r\n this.loadedEntity = entity;\r\n return;\r\n }\r\n\r\n this.loadedEntity = undefined;\r\n this.loadedId = undefined;\r\n this.message = '';\r\n this.model.load(null);\r\n this.refreshPanels();\r\n if (!entity || !(entity.Id > 0))\r\n return;\r\n\r\n this.isLoading = true;\r\n this.load$.next(entity);\r\n }\r\n\r\n /** Publie la définition éditée : l'action « Enregistrer » de l'écran l'envoie avec le formulaire. */\r\n private publishDefinition(): void {\r\n this.publishChanges({ Sections: this.model.toContext().Sections });\r\n }\r\n\r\n /** Vrai pour un formulaire pas encore enregistré : sa définition s'édite après sa création. */\r\n get isNew(): boolean {\r\n return !!this.entity && !(this.entity.Id > 0);\r\n }\r\n\r\n /** Ce qui empêcherait d'enregistrer la définition (titre en double, critère manquant...), sinon null. */\r\n get definitionError(): string | null {\r\n return this.loadedEntity && this.model.isDirty ? this.model.validate() : null;\r\n }\r\n\r\n get selectedSection(): FormEditorSection | null {\r\n return this.model.selectedSection;\r\n }\r\n\r\n get selectedField(): MetaEntityFormFieldView | null {\r\n return this.model.selectedField;\r\n }\r\n\r\n // ---- Sections -----------------------------------------------------------------------\r\n\r\n selectSection(section: FormEditorSection): void {\r\n this.model.selectSection(section);\r\n this.refreshPanels();\r\n }\r\n\r\n addSection(): void {\r\n this.model.addSection();\r\n this.refreshPanels();\r\n }\r\n\r\n onSectionDrop(event: CdkDragDrop<FormEditorSection[]>): void {\r\n this.model.moveSection(event.previousIndex, event.currentIndex);\r\n }\r\n\r\n removeSection(section: FormEditorSection, event: Event): void {\r\n event.stopPropagation();\r\n const count = section.FormFields?.length ?? 0;\r\n const detail = count > 0 ? ` et ses ${count} champ(s)` : '';\r\n if (confirm(`Supprimer la section « ${section.Name} »${detail} ?`)) {\r\n this.model.removeSection(section);\r\n this.refreshPanels();\r\n }\r\n }\r\n\r\n kindLabel(section: FormEditorSection): string {\r\n const kind = this.model.kindOf(section);\r\n if (kind === FormEditorSectionKinds.Related) return section.DataMetaEntityEntityName ?? 'Entités liées';\r\n if (kind === FormEditorSectionKinds.Fields) return `${section.FormFields?.length ?? 0} champ(s)`;\r\n return FormEditorSectionKindOptions.find(o => o.value === kind)?.label ?? '';\r\n }\r\n\r\n /** Applique à la section sélectionnée la propriété modifiée dans son volet. */\r\n readonly onSectionParam = (event: PropertyEditorEvent): void => {\r\n const section = this.selectedSection;\r\n if (!section || this.readonly) return;\r\n const property = this.sectionPanel.propertyOf(event.field);\r\n const value = this.sectionPanel.valueOf(event.field);\r\n\r\n switch (property) {\r\n case 'Kind':\r\n this.model.setKind(section, value);\r\n this.refreshPanels();\r\n return;\r\n case 'DataMetaEntityId':\r\n this.model.setDataEntity(section, value);\r\n this.sectionPanel.set('FilterPropertyName', section.FilterPropertyName);\r\n return;\r\n case 'IsHidden':\r\n section.IsHidden = !!value;\r\n break;\r\n default:\r\n section[property] = this.textOf(value);\r\n }\r\n this.model.touch();\r\n };\r\n\r\n // ---- Champs -------------------------------------------------------------------------\r\n\r\n selectField(field: MetaEntityFormFieldView): void {\r\n this.model.selectField(field);\r\n this.refreshPanels();\r\n }\r\n\r\n onFieldDrop(event: CdkDragDrop<MetaEntityFormFieldView[]>): void {\r\n if (this.selectedSection)\r\n this.model.moveField(this.selectedSection, event.previousIndex, event.currentIndex);\r\n }\r\n\r\n /**\r\n * Action « Ajouter » : ouvre le sélecteur des colonnes de l'entité du formulaire, sans celles qui\r\n * sont déjà dans le formulaire, et ajoute les colonnes choisies à la section sélectionnée.\r\n */\r\n onAddFields(): void {\r\n const form = this.model.form;\r\n if (!form || !this.model.hasFields(this.selectedSection) || this.readonly) return;\r\n this.message = '';\r\n\r\n const used = this.model.fields.map(f => f.PropertyName ?? '');\r\n const filter: MetaEntityFieldFilterViewModel = {\r\n MetaEntityKey: form.MetaEntityEntityKey,\r\n AdditionalQuery: used.length > 0 ? additionalQueryOf({ Property: 'FieldName', Operator: 'notin', Values: used }) : undefined,\r\n };\r\n this.app.selectorMapperService\r\n .openSelectorModal<MetaEntityField, MetaEntityFieldFilterViewModel>(MetaEntityKeys.MetaEntityField, 'Ajouter des champs', filter)\r\n .pipe(takeUntil(this.destroy$))\r\n .subscribe(columns => {\r\n (columns ?? []).forEach(column => this.model.addFreeField(column.FieldName, column.Label));\r\n this.refreshPanels();\r\n });\r\n }\r\n\r\n /** Ajoute une propriété qui n'est pas une colonne de la table (colonne de la vue, propriété calculée). */\r\n addFreeField(): void {\r\n this.message = '';\r\n if (this.model.addFreeField(this.freeProperty)) {\r\n this.freeProperty = '';\r\n this.refreshPanels();\r\n }\r\n else if (this.freeProperty.trim())\r\n this.message = `Le champ ${this.freeProperty.trim()} est déjà dans cette section.`;\r\n }\r\n\r\n removeField(field: MetaEntityFormFieldView, event: Event): void {\r\n event.stopPropagation();\r\n this.model.removeField(field);\r\n this.refreshPanels();\r\n }\r\n\r\n fieldTypeLabel(field: MetaEntityFormFieldView): string {\r\n return this.fieldTypeOptions.find(o => o.value === (field.FieldFilterType ?? 0))?.label ?? '';\r\n }\r\n\r\n /** Applique au champ sélectionné le paramètre modifié dans son volet. */\r\n readonly onFieldParam = (event: PropertyEditorEvent): void => {\r\n const field = this.selectedField;\r\n if (!field || this.readonly) return;\r\n const property = this.fieldPanel.propertyOf(event.field);\r\n const value = this.fieldPanel.valueOf(event.field);\r\n\r\n switch (property) {\r\n case 'Conditioning':\r\n this.model.setConditioning(field, value || null);\r\n this.refreshPanels();\r\n return;\r\n case 'MoveTo': {\r\n const target = this.model.sections.find(s => s.Name === value);\r\n if (target && !this.model.moveFieldToSection(field, target))\r\n this.message = `Le champ ${field.PropertyName} est déjà dans la section « ${target.Name} ».`;\r\n this.refreshPanels();\r\n return;\r\n }\r\n case 'IsRequired':\r\n this.setRequired(field, !!value);\r\n return;\r\n case 'FieldFilterType':\r\n field.FieldFilterType = value ?? FieldFilterTypes.String;\r\n this.model.touch();\r\n this.refreshFieldVisibility();\r\n return;\r\n }\r\n\r\n switch (event.field.FilterType) {\r\n case FilterType.CheckBox: field[property] = !!value; break;\r\n case FilterType.Integer:\r\n case FilterType.Decimal: field[property] = this.numberOf(value); break;\r\n case FilterType.ComboBox: field[property] = value ?? undefined; break;\r\n default: field[property] = this.textOf(value);\r\n }\r\n this.model.touch();\r\n };\r\n\r\n /** Obligatoire : indicateur du champ et validateur « requis » (ValidatorTypes, bit 32). */\r\n setRequired(field: MetaEntityFormFieldView, required: boolean): void {\r\n const REQUIRED = 32;\r\n field.IsRequired = required;\r\n field.ValidatorTypes = required ? (field.ValidatorTypes ?? 0) | REQUIRED : (field.ValidatorTypes ?? 0) & ~REQUIRED;\r\n this.model.touch();\r\n }\r\n\r\n // ---- Volets -------------------------------------------------------------------------\r\n\r\n /** Recopie la section et le champ sélectionnés dans leurs volets, et règle les champs affichés. */\r\n private refreshPanels(): void {\r\n const section = this.selectedSection;\r\n this.sectionPanel.field('DataMetaEntityId').Data = this.model.entities;\r\n if (section) {\r\n const related = this.model.kindOf(section) === FormEditorSectionKinds.Related;\r\n this.sectionPanel.patch({ ...section, Kind: this.model.kindOf(section), IsHidden: !!section.IsHidden });\r\n this.sectionPanel.show('DataMetaEntityId', related);\r\n this.sectionPanel.show('FilterPropertyName', related);\r\n }\r\n\r\n const field = this.selectedField;\r\n if (field) {\r\n this.fieldPanel.field('Conditioning').Data = this.model.conditioningCandidates(field)\r\n .map(f => ({ PropertyName: f.PropertyName, Label: `${f.Label || f.PropertyName} (${f.PropertyName})` }));\r\n this.fieldPanel.field('MoveTo').Data = this.model.sections\r\n .filter(s => s !== section && this.model.hasFields(s))\r\n .map(s => ({ Name: s.Name }));\r\n this.fieldPanel.patch({ ...field, Conditioning: this.model.conditioningOf(field), MoveTo: null });\r\n this.refreshFieldVisibility();\r\n }\r\n }\r\n\r\n /** Paramètres affichés selon le type du champ et sa condition d'affichage. */\r\n private refreshFieldVisibility(): void {\r\n const field = this.selectedField;\r\n if (!field) return;\r\n const type = field.FieldFilterType;\r\n const isList = type === FieldFilterTypes.ComboBox || type === FieldFilterTypes.HorizComboBox\r\n || type === FieldFilterTypes.RadioButton || type === FieldFilterTypes.TreeSelector;\r\n const isSelector = type === FieldFilterTypes.Custom;\r\n const isConditional = !!this.model.conditioningOf(field);\r\n\r\n ['DisplayMember', 'ValueMember', 'ExportPropertyName', 'MultipleSelection', 'IncludeAllOption']\r\n .forEach(property => this.fieldPanel.show(property, isList));\r\n ['ModalEntityKey', 'ModalPropertyName', 'ModalPropertyValue', 'ModalTriggerProperty', 'ModalTitle']\r\n .forEach(property => this.fieldPanel.show(property, isSelector));\r\n ['ConditioningValues', 'FieldConditionalResult', 'ConditioningBoolValue']\r\n .forEach(property => this.fieldPanel.show(property, isConditional));\r\n this.fieldPanel.show('MoveTo', (this.fieldPanel.field('MoveTo').Data as unknown[]).length > 0);\r\n }\r\n\r\n private textOf(value: unknown): string | undefined {\r\n return value === null || value === undefined || value === '' ? undefined : String(value);\r\n }\r\n\r\n private numberOf(value: unknown): number | undefined {\r\n if (value === null || value === undefined || value === '') return undefined;\r\n const number = Number(String(value).replace(',', '.'));\r\n return Number.isFinite(number) ? number : undefined;\r\n }\r\n}\r\n","<!-- Volet de propriétés (section ou champ sélectionné), au design des formulaires standard -->\r\n<ng-template #panelTpl let-panel=\"panel\" let-changed=\"changed\">\r\n <div class=\"property-container\">\r\n @for (section of panel.visibleSections; 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\">\r\n <alg-field [field]=\"field\" [form]=\"panel.form\" [readonly]=\"readonly\" (propertyChanged)=\"changed($event)\">\r\n </alg-field>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</ng-template>\r\n\r\n<div class=\"fed\">\r\n @if (entity) {\r\n <alg-tabset [showNavs]=\"true\" [pills]=\"false\" (onSelect)=\"activeTab = $event\">\r\n\r\n <!-- Propriétés : champs du formulaire, avec les composants des formulaires -->\r\n <alg-tab title=\"Propriétés\" [active]=\"activeTab === 0\" [class.fed__tab]=\"activeTab === 0\">\r\n <div class=\"property-container fed__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\">\r\n <alg-field [field]=\"field\" [form]=\"form\" [readonly]=\"readonly\"\r\n (propertyChanged)=\"onPropertyChanged($event)\">\r\n </alg-field>\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 : sections, champs et paramètres -->\r\n <alg-tab title=\"Définition\" [active]=\"activeTab === 1\" [class.fed__tab]=\"activeTab === 1\">\r\n <div *ngIf=\"message || definitionError\" class=\"fed__message fed__message--error\">{{ message || definitionError }}</div>\r\n <p *ngIf=\"isNew\" class=\"fed__empty\">Enregistrez d'abord le formulaire : ses sections et ses champs s'éditent ensuite ici.</p>\r\n <div *ngIf=\"isLoading\" class=\"fed__loading\">\r\n <i class=\"fa fa-circle-o-notch fa-spin\"></i>&nbsp;Chargement de la définition…\r\n </div>\r\n\r\n <div *ngIf=\"loadedEntity && model.form\" class=\"fed__body\">\r\n\r\n <!-- Sections : liste déplaçable, puis propriétés de la section sélectionnée -->\r\n <div class=\"fed__panel fed__sections\">\r\n <div class=\"fed__panel-hd\">\r\n <span class=\"fed__panel-title\">Sections <span class=\"fed__badge\">{{ model.sections.length }}</span></span>\r\n <button *ngIf=\"!readonly\" class=\"btn btn-sm btn-primary btn-flat\" type=\"button\" (click)=\"addSection()\" title=\"Ajouter une section\">\r\n <i class=\"fa fa-plus\"></i> Ajouter\r\n </button>\r\n </div>\r\n\r\n <div class=\"fed__list\" cdkDropList [cdkDropListData]=\"model.sections\" [cdkDropListDisabled]=\"readonly\"\r\n (cdkDropListDropped)=\"onSectionDrop($event)\">\r\n <p *ngIf=\"model.sections.length === 0\" class=\"fed__empty\">Aucune section.</p>\r\n <div *ngFor=\"let section of model.sections\"\r\n class=\"fed__item\"\r\n cdkDrag\r\n [class.fed__item--selected]=\"section === selectedSection\"\r\n [class.fed__item--hidden]=\"section.IsHidden\"\r\n (click)=\"selectSection(section)\">\r\n <div class=\"fed__placeholder\" *cdkDragPlaceholder></div>\r\n <span class=\"fed__drag\" cdkDragHandle title=\"Glisser pour déplacer\"><i class=\"fa fa-bars\"></i></span>\r\n <span class=\"fed__item-text\">\r\n <span class=\"fed__item-name\" [class.fed__item-name--error]=\"model.isDuplicateName(section)\">{{ section.Name || '(sans titre)' }}</span>\r\n <span class=\"fed__muted\">{{ kindLabel(section) }}</span>\r\n </span>\r\n <i *ngIf=\"section.IsHidden\" class=\"fa fa-eye-slash fed__muted\" title=\"Section masquée\"></i>\r\n <button *ngIf=\"!readonly\" class=\"fed__remove\" type=\"button\" (click)=\"removeSection(section, $event)\" title=\"Supprimer la section\">&#x2715;</button>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"selectedSection\" class=\"fed__props\">\r\n <ng-container *ngTemplateOutlet=\"panelTpl; context: { panel: sectionPanel, changed: onSectionParam }\"></ng-container>\r\n </div>\r\n </div>\r\n\r\n <!-- Champs de la section : liste déplaçable, ajout par le sélecteur des colonnes -->\r\n <div class=\"fed__panel fed__fields\">\r\n <div class=\"fed__panel-hd\">\r\n <span class=\"fed__panel-title\">\r\n {{ selectedSection ? selectedSection.Name : 'Champs' }}\r\n <span *ngIf=\"model.hasFields(selectedSection)\" class=\"fed__badge\">{{ selectedSection?.FormFields?.length ?? 0 }}</span>\r\n </span>\r\n <button *ngIf=\"!readonly && model.hasFields(selectedSection)\" class=\"btn btn-sm btn-primary btn-flat\" type=\"button\"\r\n (click)=\"onAddFields()\" title=\"Ajouter des champs : colonnes de l'entité qui ne sont pas encore dans le formulaire\">\r\n <i class=\"fa fa-plus\"></i> Ajouter\r\n </button>\r\n </div>\r\n\r\n <p *ngIf=\"!selectedSection\" class=\"fed__empty\">Sélectionnez ou ajoutez une section.</p>\r\n <p *ngIf=\"selectedSection && !model.hasFields(selectedSection)\" class=\"fed__empty\">\r\n <ng-container *ngIf=\"model.kindOf(selectedSection) === Kinds.Related; else specialTpl\">\r\n Cette section affiche, dans un onglet, les enregistrements de l'entité liée : elle n'a pas de champs.\r\n </ng-container>\r\n <ng-template #specialTpl>Le contenu de cette section est fourni par l'application : elle n'a pas de champs.</ng-template>\r\n </p>\r\n\r\n <ng-container *ngIf=\"selectedSection && model.hasFields(selectedSection)\">\r\n <div class=\"fed__list\" cdkDropList [cdkDropListData]=\"selectedSection.FormFields ?? []\" [cdkDropListDisabled]=\"readonly\"\r\n (cdkDropListDropped)=\"onFieldDrop($event)\">\r\n <p *ngIf=\"(selectedSection.FormFields?.length ?? 0) === 0\" class=\"fed__empty\">Aucun champ : utilisez « Ajouter ».</p>\r\n <div *ngFor=\"let field of selectedSection.FormFields; let i = index\"\r\n class=\"fed__item\"\r\n cdkDrag\r\n [class.fed__item--selected]=\"field === selectedField\"\r\n [class.fed__item--hidden]=\"field.IsHidden\"\r\n (click)=\"selectField(field)\">\r\n <div class=\"fed__placeholder\" *cdkDragPlaceholder></div>\r\n <span class=\"fed__drag\" cdkDragHandle title=\"Glisser pour déplacer\"><i class=\"fa fa-bars\"></i></span>\r\n <span class=\"fed__pos\">{{ i + 1 }}</span>\r\n <span class=\"fed__item-text\">\r\n <span class=\"fed__item-name\">{{ field.Label || field.PropertyName }}<span *ngIf=\"field.IsRequired\" class=\"fed__required\"> *</span></span>\r\n <span class=\"fed__muted\">{{ field.PropertyName }} · {{ fieldTypeLabel(field) }}</span>\r\n </span>\r\n <i *ngIf=\"field.IsReadOnly\" class=\"fa fa-lock fed__muted\" title=\"Lecture seule\"></i>\r\n <i *ngIf=\"field.IsHidden\" class=\"fa fa-eye-slash fed__muted\" title=\"Champ masqué\"></i>\r\n <button *ngIf=\"!readonly\" class=\"fed__remove\" type=\"button\" (click)=\"removeField(field, $event)\" title=\"Retirer le champ\">&#x2715;</button>\r\n </div>\r\n </div>\r\n\r\n <!-- Propriété qui n'est pas une colonne de la table : colonne de la vue, propriété calculée -->\r\n <div *ngIf=\"!readonly\" class=\"fed__free\">\r\n <input type=\"text\" maxlength=\"255\" placeholder=\"Autre propriété (colonne de la vue, ex. NewPassword)\"\r\n [(ngModel)]=\"freeProperty\" (keydown.enter)=\"addFreeField()\">\r\n <button class=\"btn btn-secondary btn-sm btn-flat\" type=\"button\" (click)=\"addFreeField()\" [disabled]=\"!freeProperty.trim()\">Ajouter</button>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- Paramètres du champ sélectionné -->\r\n <div class=\"fed__panel fed__settings\">\r\n <div class=\"fed__panel-hd\">\r\n <span class=\"fed__panel-title\">{{ selectedField ? (selectedField.Label || selectedField.PropertyName) : 'Paramètres du champ' }}</span>\r\n <span *ngIf=\"selectedField\" class=\"fed__muted\">{{ selectedField.PropertyName }}</span>\r\n </div>\r\n\r\n <p *ngIf=\"!selectedField\" class=\"fed__empty\">Sélectionnez un champ pour le paramétrer.</p>\r\n\r\n <div *ngIf=\"selectedField\" class=\"fed__props fed__props--scroll\">\r\n <ng-container *ngTemplateOutlet=\"panelTpl; context: { panel: fieldPanel, changed: onFieldParam }\"></ng-container>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </alg-tab>\r\n </alg-tabset>\r\n }\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur MetaEntityFormController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityFormComponent, dérivé de BaseMetaEntityFormComponent.\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 { MetaEntityFormFilterViewModel, MetaEntityFormView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityFormComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityFormComponent extends BaseComponent<MetaEntityFormFilterViewModel, MetaEntityFormView> {\r\n getTitle(): string {\r\n return 'Formulaires';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityForm;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYFORM;\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 'MFRV';\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/MetaEntityFormForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { FormEditorComponent } from '../form-editor/form-editor.component';\r\nimport { BaseMetaEntityFormComponent } from './generated/metaentityform.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormView : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityFormComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n * L'éditeur de formulaire (FormEditorComponent) remplace le formulaire d'édition standard : onglet\r\n * « Propriétés » et onglet « Définition » (sections et champs), enregistrés par l'action\r\n * « Enregistrer » de l'écran.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-form-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 MetaEntityFormComponent extends BaseMetaEntityFormComponent {\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n\r\n // Éditeur spécifique : propriétés et définition du formulaire, à la place du formulaire standard.\r\n this.editorComponent = FormEditorComponent;\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout: false, PropertyFlexGrow: 65 });\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 MetaEntityFormFieldController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityFormFieldComponent, dérivé de BaseMetaEntityFormFieldComponent.\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 { MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormFieldView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : MetaEntityFormFieldComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityFormFieldComponent extends BaseComponent<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView> {\r\n getTitle(): string {\r\n return 'Champs de formulaire';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityFormField;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYFORMFIELD;\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 'MFFV';\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 { BaseMetaEntityFormFieldComponent } from './generated/metaentityformfield.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormFieldView : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityFormFieldComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-form-field-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 MetaEntityFormFieldComponent extends BaseMetaEntityFormFieldComponent {\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 MetaEntityFormSectionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityFormSectionComponent, dérivé de BaseMetaEntityFormSectionComponent.\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 { MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormSectionView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityFormSectionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityFormSectionComponent extends BaseComponent<MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView> {\r\n getTitle(): string {\r\n return 'Sections de formulaire';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityFormSection;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYFORMSECTION;\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 'MFSV';\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/MetaEntityFormSectionForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseMetaEntityFormSectionComponent } from './generated/metaentityformsection.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityFormSectionView : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityFormSectionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-form-section-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 MetaEntityFormSectionComponent extends BaseMetaEntityFormSectionComponent {\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 MetaEntityKeywordController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityKeywordComponent, dérivé de BaseMetaEntityKeywordComponent.\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 { MetaEntityKeyword, MetaEntityKeywordFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityKeyword (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : MetaEntityKeywordComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityKeywordComponent extends BaseComponent<MetaEntityKeywordFilterViewModel, MetaEntityKeyword> {\r\n getTitle(): string {\r\n return 'Mot-clé de méta-entité';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityKeyword;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYKEYWORD;\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 'MEK';\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 { BaseMetaEntityKeywordComponent } from './generated/metaentitykeyword.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityKeyword : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityKeywordComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-keyword-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 MetaEntityKeywordComponent extends BaseMetaEntityKeywordComponent {\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 MetaEntityRelationController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityRelationComponent, dérivé de BaseMetaEntityRelationComponent.\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 { MetaEntityRelation, MetaEntityRelationFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityRelation (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityRelationComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityRelationComponent extends BaseComponent<MetaEntityRelationFilterViewModel, MetaEntityRelation> {\r\n getTitle(): string {\r\n return 'Relations entre entités';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityRelation;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYRELATION;\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 'MER';\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/MetaEntityRelationForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseMetaEntityRelationComponent } from './generated/metaentityrelation.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityRelation : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityRelationComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-relation-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 MetaEntityRelationComponent extends BaseMetaEntityRelationComponent {\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 MetaEntityRelationDefinitionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityRelationDefinitionComponent, dérivé de BaseMetaEntityRelationDefinitionComponent.\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 { MetaEntityRelationDefinition, MetaEntityRelationDefinitionFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityRelationDefinition (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : MetaEntityRelationDefinitionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityRelationDefinitionComponent extends BaseComponent<MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationDefinition> {\r\n getTitle(): string {\r\n return 'Définition de relation';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityRelationDefinition;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYRELATIONDEFINITION;\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 'MERD';\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 { BaseMetaEntityRelationDefinitionComponent } from './generated/metaentityrelationdefinition.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityRelationDefinition : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityRelationDefinitionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-relation-definition-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 MetaEntityRelationDefinitionComponent extends BaseMetaEntityRelationDefinitionComponent {\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 MetaEntityTranslationController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityTranslationComponent, dérivé de BaseMetaEntityTranslationComponent.\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 { MetaEntityTranslation, MetaEntityTranslationFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityTranslation (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : MetaEntityTranslationComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityTranslationComponent extends BaseComponent<MetaEntityTranslationFilterViewModel, MetaEntityTranslation> {\r\n getTitle(): string {\r\n return 'Traduction de méta-entité';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityTranslation;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYTRANSLATION;\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 'MET';\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 { BaseMetaEntityTranslationComponent } from './generated/metaentitytranslation.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityTranslation : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityTranslationComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-translation-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 MetaEntityTranslationComponent extends BaseMetaEntityTranslationComponent {\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 MetaEntityViewFieldController).\r\n// Ne pas modifier : le code spécifique s'écrit dans MetaEntityViewFieldComponent, dérivé de BaseMetaEntityViewFieldComponent.\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 { MetaEntityViewField, MetaEntityViewFieldFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityViewField (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : MetaEntityViewFieldComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseMetaEntityViewFieldComponent extends BaseComponent<MetaEntityViewFieldFilterViewModel, MetaEntityViewField> {\r\n getTitle(): string {\r\n return 'Champ de vue';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityViewField;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_METAENTITYVIEWFIELD;\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 'MVF';\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/MetaEntityViewFieldForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseMetaEntityViewFieldComponent } from './generated/metaentityviewfield.component.generated';\r\n\r\n/**\r\n * Recherche et édition des MetaEntityViewField : code spécifique du composant (la partie générée\r\n * est BaseMetaEntityViewFieldComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-meta-entity-view-field-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 MetaEntityViewFieldComponent extends BaseMetaEntityViewFieldComponent {\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 ParameterController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ParameterComponent, dérivé de BaseParameterComponent.\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 { ParameterView, ParameterViewFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ParameterView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : ParameterComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseParameterComponent extends BaseComponent<ParameterViewFilterViewModel, ParameterView> {\r\n getTitle(): string {\r\n return 'Définition des paramètres';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Parameter;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PARAMETER;\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 'PTRV';\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/ParameterForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseParameterComponent } from './generated/parameter.component.generated';\r\n\r\n/**\r\n * Recherche et édition des ParameterView : code spécifique du composant (la partie générée\r\n * est BaseParameterComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-parameter-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 ParameterComponent extends BaseParameterComponent {\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 ParameterSectionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ParameterSectionComponent, dérivé de BaseParameterSectionComponent.\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 { ParameterSection, ParameterSectionFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ParameterSection (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : ParameterSectionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseParameterSectionComponent extends BaseComponent<ParameterSectionFilterViewModel, ParameterSection> {\r\n getTitle(): string {\r\n return 'Sections de paramètres';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ParameterSection;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PARAMETERSECTION;\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 'PTS';\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/ParameterSectionForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseParameterSectionComponent } from './generated/parametersection.component.generated';\r\n\r\n/**\r\n * Recherche et édition des ParameterSection : code spécifique du composant (la partie générée\r\n * est BaseParameterSectionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-parameter-section-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 ParameterSectionComponent extends BaseParameterSectionComponent {\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 ParameterValueController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ParameterValueComponent, dérivé de BaseParameterValueComponent.\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 { ParameterValueView, ParameterValueViewFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ParameterValueView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : ParameterValueComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseParameterValueComponent extends BaseComponent<ParameterValueViewFilterViewModel, ParameterValueView> {\r\n getTitle(): string {\r\n return 'Paramètres';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ParameterValue;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PARAMETERVALUE;\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 'PTVV';\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 { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { BaseParameterValueComponent } from './generated/parametervalue.component.generated';\r\n\r\n/**\r\n * Paramètres généraux (valeurs des paramètres) : code spécifique du composant (la partie générée est\r\n * BaseParameterValueComponent). Anciennement GlobalParameterComponent.\r\n */\r\n@Component({\r\n selector: 'alg-global-param',\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 ParameterValueComponent extends BaseParameterValueComponent {\r\n getTitle(): string {\r\n return 'Paramètres généraux';\r\n }\r\n\r\n constructor(app: ApplicationService, route: ActivatedRoute) {\r\n super(app, route);\r\n\r\n this.filterAction('add');\r\n }\r\n\r\n ngOnInit() {\r\n super.ngOnInit();\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout : true, PropertyFlexGrow : 68 });\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 PermissionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans PermissionComponent, dérivé de BasePermissionComponent.\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 { PermissionFilterViewModel, PermissionView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des PermissionView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : PermissionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BasePermissionComponent extends BaseComponent<PermissionFilterViewModel, PermissionView> {\r\n getTitle(): string {\r\n return 'Permissions';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Permission;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PERMISSION;\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 'PRM';\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 { BasePermissionComponent } from './generated/permission.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-permission',\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 PermissionComponent extends BasePermissionComponent {\r\n\r\n getIcon(): string {return 'circle-check-solid'};\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.filterAction('add');\r\n this.filterAction('delete');\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout : true, PropertyFlexGrow : 30 });\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 PresentationProfileItemController).\r\n// Ne pas modifier : le code spécifique s'écrit dans PresentationProfileItemComponent, dérivé de BasePresentationProfileItemComponent.\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 { PresentationProfileItemFilterViewModel, PresentationProfileItemView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des PresentationProfileItemView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : PresentationProfileItemComponent.\r\n */\r\n@Directive()\r\nexport abstract class BasePresentationProfileItemComponent extends BaseComponent<PresentationProfileItemFilterViewModel, PresentationProfileItemView> {\r\n getTitle(): string {\r\n return 'Colonnes de vue personnalisée';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.PresentationProfileItem;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PRESENTATIONPROFILEITEM;\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 'PROI';\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 { BasePresentationProfileItemComponent } from './generated/presentationprofileitem.component.generated';\r\n\r\n/**\r\n * Recherche et édition des PresentationProfileItemView : code spécifique du composant (la partie générée\r\n * est BasePresentationProfileItemComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-presentation-profile-item-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 PresentationProfileItemComponent extends BasePresentationProfileItemComponent {\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 ResourceTranslationController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ResourceTranslationComponent, dérivé de BaseResourceTranslationComponent.\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 { ResourceTranslationFilterViewModel, ResourceTranslationView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ResourceTranslationView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : ResourceTranslationComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseResourceTranslationComponent extends BaseComponent<ResourceTranslationFilterViewModel, ResourceTranslationView> {\r\n getTitle(): string {\r\n return 'Traduction';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ResourceTranslation;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_RESOURCETRANSLATION;\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 'RTRV';\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 ResourceKey,\r\n ResourceTranslationView\r\n} from '@dflat-core/web/meta-model';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseResourceTranslationComponent } from './generated/resourcetranslation.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-resource-translation',\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 ResourceTranslationComponent extends BaseResourceTranslationComponent {\r\n\r\n // Titre au pluriel (le titre généré est « Traduction »).\r\n getTitle(): string {\r\n return 'Traductions';\r\n }\r\n\r\n resourceKey : ResourceKey;\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.facade.actions.patch('add', {\r\n getParameter: () => {\r\n return {\r\n ResourceKeyId : this.resourceKey.Id,\r\n Key : this.resourceKey.Key\r\n } as Partial<ResourceTranslationView>\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 ResourceKeyController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ResourceKeyComponent, dérivé de BaseResourceKeyComponent.\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 { ResourceKey, ResourceKeyFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ResourceKey (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : ResourceKeyComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseResourceKeyComponent extends BaseComponent<ResourceKeyFilterViewModel, ResourceKey> {\r\n getTitle(): string {\r\n return 'Traductions';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ResourceKey;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_RESOURCEKEY;\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 'RKY';\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/ResourceKeyForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { SpecificSection } from '@dflat-core/web/core-model';\r\nimport { additionalQueryOf } from '@dflat-core/web/core-ux';\r\nimport { ResourceKey, ResourceTranslationFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ResourceTranslationComponent } from './resourcetranslation.component';\r\nimport { BaseResourceKeyComponent } from './generated/resourcekey.component.generated';\r\n\r\n\r\n@Component({\r\n selector: 'alg-resource-key',\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 ResourceKeyComponent extends BaseResourceKeyComponent {\r\n\r\n // Titre métier (le titre généré est « Traductions »).\r\n getTitle(): string {\r\n return 'Ressources';\r\n }\r\n\r\n specificSections: SpecificSection[];\r\n\r\n RESOURCE_TRANSLATION_SECTION: string = \"Traductions\";\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n this.facade.sections.registerSection(this.RESOURCE_TRANSLATION_SECTION, \r\n ResourceTranslationComponent, \r\n {\r\n layoutOverride : (component) => {\r\n component.facade.layout.setFixedLayout({IsVerticalLayout : false, PropertyFlexGrow : 50})\r\n },\r\n filterOverride : (selected) => {\r\n const filter: ResourceTranslationFilterViewModel = {\r\n AdditionalQuery: selected && selected.length > 0\r\n ? additionalQueryOf({ Property: 'ResourceKeyId', Operator: 'in', Values: selected.map(s => s.Id) }) : undefined,\r\n Offset: 0, \r\n Take: 50\r\n };\r\n return filter;\r\n },\r\n selectionOverride(component : ResourceTranslationComponent, selected : ResourceKey[]) {\r\n component.resourceKey = selected[0]\r\n },\r\n \r\n });\r\n\r\n this.facade.actions.hideAction(\"edit\");\r\n this.facade.actions.hideAction(\"add\");\r\n\r\n this.facade.layout.setFixedLayout({IsVerticalLayout : false, PropertyFlexGrow : 70});\r\n }\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 ResourceLanguageController).\r\n// Ne pas modifier : le code spécifique s'écrit dans ResourceLanguageComponent, dérivé de BaseResourceLanguageComponent.\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 { ResourceLanguage, ResourceLanguageFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des ResourceLanguage (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : ResourceLanguageComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseResourceLanguageComponent extends BaseComponent<ResourceLanguageFilterViewModel, ResourceLanguage> {\r\n getTitle(): string {\r\n return 'Langues';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ResourceLanguage;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_RESOURCELANGUAGE;\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 'RLG';\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/ResourceLanguageForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { LayoutPreferences } from '@dflat-core/web/core-ux';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseResourceLanguageComponent } from './generated/resourcelanguage.component.generated';\r\n\r\n\r\n@Component({\r\n selector: 'alg-resource-language',\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 ResourceLanguageComponent extends BaseResourceLanguageComponent {\r\n\r\n FIXED_LAYOUT : LayoutPreferences = {\r\n PropertyFlexGrow : 60,\r\n IsVerticalLayout: false\r\n }\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.facade.layout.setFixedLayout(this.FIXED_LAYOUT);\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 VersionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans VersionComponent, dérivé de BaseVersionComponent.\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 { Version, VersionFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des Version (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : VersionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseVersionComponent extends BaseComponent<VersionFilterViewModel, Version> {\r\n getTitle(): string {\r\n return 'Versions de la base';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Version;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_VERSION;\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 'VSN';\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 { BaseVersionComponent } from './generated/version.component.generated';\r\n\r\n/**\r\n * Recherche et édition des Version : code spécifique du composant (la partie générée\r\n * est BaseVersionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-version-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 VersionComponent extends BaseVersionComponent {\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 Meta).\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 { CustomFieldDataService, CustomFieldGroupDataService, CustomFieldGroupEntityDataService, CustomFieldGroupItemDataService, CustomFieldOptionsDataService, FilesDataService, KeywordDataService, MetaEntityDataService, MetaEntityFieldDataService, MetaEntityFormDataService, MetaEntityFormFieldDataService, MetaEntityFormSectionDataService, MetaEntityKeywordDataService, MetaEntityRelationDataService, MetaEntityRelationDefinitionDataService, MetaEntityTranslationDataService, MetaEntityViewFieldDataService, ParameterDataService, ParameterSectionDataService, ParameterValueDataService, PermissionDataService, PresentationProfileItemDataService, ResourceKeyDataService, ResourceLanguageDataService, ResourceTranslationDataService, VersionDataService } from '@dflat-core/web/meta-data';\r\nimport { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { CustomFieldComponent } from '../customfield.component';\r\nimport { CustomFieldGroupComponent } from '../customfieldgroup.component';\r\nimport { CustomFieldGroupEntityComponent } from '../customfieldgroupentity.component';\r\nimport { CustomFieldGroupItemComponent } from '../customfieldgroupitem.component';\r\nimport { CustomFieldOptionsComponent } from '../customfieldoptions.component';\r\nimport { FilesComponent } from '../files.component';\r\nimport { KeywordComponent } from '../keyword.component';\r\nimport { MetaEntityComponent } from '../metaentity.component';\r\nimport { MetaEntityFieldComponent } from '../metaentityfield.component';\r\nimport { MetaEntityFormComponent } from '../metaentityform.component';\r\nimport { MetaEntityFormFieldComponent } from '../metaentityformfield.component';\r\nimport { MetaEntityFormSectionComponent } from '../metaentityformsection.component';\r\nimport { MetaEntityKeywordComponent } from '../metaentitykeyword.component';\r\nimport { MetaEntityRelationComponent } from '../metaentityrelation.component';\r\nimport { MetaEntityRelationDefinitionComponent } from '../metaentityrelationdefinition.component';\r\nimport { MetaEntityTranslationComponent } from '../metaentitytranslation.component';\r\nimport { MetaEntityViewFieldComponent } from '../metaentityviewfield.component';\r\nimport { ParameterComponent } from '../parameter.component';\r\nimport { ParameterSectionComponent } from '../parametersection.component';\r\nimport { ParameterValueComponent } from '../parametervalue.component';\r\nimport { PermissionComponent } from '../permission.component';\r\nimport { PresentationProfileItemComponent } from '../presentationprofileitem.component';\r\nimport { ResourceKeyComponent } from '../resourcekey.component';\r\nimport { ResourceLanguageComponent } from '../resourcelanguage.component';\r\nimport { ResourceTranslationComponent } from '../resourcetranslation.component';\r\nimport { VersionComponent } from '../version.component';\r\n\r\n/** Composants des entités du module Meta (composants spécifiques), à déclarer dans son module Angular. */\r\nexport const MetaGeneratedComponents = [\r\n CustomFieldComponent,\r\n CustomFieldGroupComponent,\r\n CustomFieldGroupEntityComponent,\r\n CustomFieldGroupItemComponent,\r\n CustomFieldOptionsComponent,\r\n FilesComponent,\r\n KeywordComponent,\r\n MetaEntityComponent,\r\n MetaEntityFieldComponent,\r\n MetaEntityFormComponent,\r\n MetaEntityFormFieldComponent,\r\n MetaEntityFormSectionComponent,\r\n MetaEntityKeywordComponent,\r\n MetaEntityRelationComponent,\r\n MetaEntityRelationDefinitionComponent,\r\n MetaEntityTranslationComponent,\r\n MetaEntityViewFieldComponent,\r\n ParameterComponent,\r\n ParameterSectionComponent,\r\n ParameterValueComponent,\r\n PermissionComponent,\r\n PresentationProfileItemComponent,\r\n ResourceKeyComponent,\r\n ResourceLanguageComponent,\r\n ResourceTranslationComponent,\r\n VersionComponent,\r\n];\r\n\r\n/** Routes des composants des entités du module Meta (clé d'entité), à ajouter à RouterModule.forChild. */\r\nexport const MetaGeneratedRoutes: Routes = [\r\n { path: MetaEntityKeys.CustomField, component: CustomFieldComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldGroup, component: CustomFieldGroupComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldGroupEntity, component: CustomFieldGroupEntityComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldGroupItem, component: CustomFieldGroupItemComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldOptions, component: CustomFieldOptionsComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.Files, component: FilesComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.Keyword, component: KeywordComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntity, component: MetaEntityComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityField, component: MetaEntityFieldComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityForm, component: MetaEntityFormComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityFormField, component: MetaEntityFormFieldComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityFormSection, component: MetaEntityFormSectionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityKeyword, component: MetaEntityKeywordComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityRelation, component: MetaEntityRelationComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityRelationDefinition, component: MetaEntityRelationDefinitionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityTranslation, component: MetaEntityTranslationComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityViewField, component: MetaEntityViewFieldComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.Parameter, component: ParameterComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ParameterSection, component: ParameterSectionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ParameterValue, component: ParameterValueComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.Permission, component: PermissionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.PresentationProfileItem, component: PresentationProfileItemComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ResourceKey, component: ResourceKeyComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ResourceLanguage, component: ResourceLanguageComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ResourceTranslation, component: ResourceTranslationComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.Version, component: VersionComponent, canDeactivate: [CanDeactivateGuard] },\r\n];\r\n\r\n/**\r\n * Sélecteurs d'entité du module Meta (champs Custom des formulaires, ModalEntityKey = entité),\r\n * à enregistrer dans le constructeur de son module Angular : EntitySelectors.register(MetaGeneratedSelectors, injector).\r\n */\r\nexport const MetaGeneratedSelectors: EntitySelector[] = [\r\n { key: MetaEntityKeys.CustomField, component: CustomFieldComponent, title: 'Attributs', dataService: CustomFieldDataService },\r\n { key: MetaEntityKeys.CustomFieldGroup, component: CustomFieldGroupComponent, title: 'Famille d\\'attributs', dataService: CustomFieldGroupDataService },\r\n { key: MetaEntityKeys.CustomFieldGroupEntity, component: CustomFieldGroupEntityComponent, title: 'Entité d\\'un groupe de champs', dataService: CustomFieldGroupEntityDataService },\r\n { key: MetaEntityKeys.CustomFieldGroupItem, component: CustomFieldGroupItemComponent, title: 'Élément d\\'un groupe de champs', dataService: CustomFieldGroupItemDataService },\r\n { key: MetaEntityKeys.CustomFieldOptions, component: CustomFieldOptionsComponent, title: 'Option de champ personnalisé', dataService: CustomFieldOptionsDataService },\r\n { key: MetaEntityKeys.Files, component: FilesComponent, title: 'Fichiers', dataService: FilesDataService },\r\n { key: MetaEntityKeys.Keyword, component: KeywordComponent, title: 'Mots-clés', dataService: KeywordDataService },\r\n { key: MetaEntityKeys.MetaEntity, component: MetaEntityComponent, title: 'Modèle', dataService: MetaEntityDataService },\r\n { key: MetaEntityKeys.MetaEntityField, component: MetaEntityFieldComponent, title: 'Champ de méta-entité', dataService: MetaEntityFieldDataService },\r\n { key: MetaEntityKeys.MetaEntityForm, component: MetaEntityFormComponent, title: 'Formulaires', dataService: MetaEntityFormDataService },\r\n { key: MetaEntityKeys.MetaEntityFormField, component: MetaEntityFormFieldComponent, title: 'Champs de formulaire', dataService: MetaEntityFormFieldDataService },\r\n { key: MetaEntityKeys.MetaEntityFormSection, component: MetaEntityFormSectionComponent, title: 'Sections de formulaire', dataService: MetaEntityFormSectionDataService },\r\n { key: MetaEntityKeys.MetaEntityKeyword, component: MetaEntityKeywordComponent, title: 'Mot-clé de méta-entité', dataService: MetaEntityKeywordDataService },\r\n { key: MetaEntityKeys.MetaEntityRelation, component: MetaEntityRelationComponent, title: 'Relations entre entités', dataService: MetaEntityRelationDataService },\r\n { key: MetaEntityKeys.MetaEntityRelationDefinition, component: MetaEntityRelationDefinitionComponent, title: 'Définition de relation', dataService: MetaEntityRelationDefinitionDataService },\r\n { key: MetaEntityKeys.MetaEntityTranslation, component: MetaEntityTranslationComponent, title: 'Traduction de méta-entité', dataService: MetaEntityTranslationDataService },\r\n { key: MetaEntityKeys.MetaEntityViewField, component: MetaEntityViewFieldComponent, title: 'Champ de vue', dataService: MetaEntityViewFieldDataService },\r\n { key: MetaEntityKeys.Parameter, component: ParameterComponent, title: 'Définition des paramètres', dataService: ParameterDataService },\r\n { key: MetaEntityKeys.ParameterSection, component: ParameterSectionComponent, title: 'Sections de paramètres', dataService: ParameterSectionDataService },\r\n { key: MetaEntityKeys.ParameterValue, component: ParameterValueComponent, title: 'Paramètres', dataService: ParameterValueDataService },\r\n { key: MetaEntityKeys.Permission, component: PermissionComponent, title: 'Permissions', dataService: PermissionDataService },\r\n { key: MetaEntityKeys.PresentationProfileItem, component: PresentationProfileItemComponent, title: 'Colonnes de vue personnalisée', dataService: PresentationProfileItemDataService },\r\n { key: MetaEntityKeys.ResourceKey, component: ResourceKeyComponent, title: 'Traductions', dataService: ResourceKeyDataService },\r\n { key: MetaEntityKeys.ResourceLanguage, component: ResourceLanguageComponent, title: 'Langues', dataService: ResourceLanguageDataService },\r\n { key: MetaEntityKeys.ResourceTranslation, component: ResourceTranslationComponent, title: 'Traduction', dataService: ResourceTranslationDataService },\r\n { key: MetaEntityKeys.Version, component: VersionComponent, title: 'Versions de la base', dataService: VersionDataService },\r\n];\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, module Meta, 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 { CustomFieldGroup, CustomFieldGroupEntityFilterViewModel, CustomFieldGroupEntityView, CustomFieldGroupFilterViewModel, CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView, CustomFieldOptionsFilterViewModel, CustomFieldOptionsView, MetaEntityField, MetaEntityFieldFilterViewModel, MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView, MetaEntityFormFilterViewModel, MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView, MetaEntityFormView, MetaEntityKeyword, MetaEntityKeywordFilterViewModel, MetaEntityRelation, MetaEntityRelationDefinition, MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationFilterViewModel, MetaEntityTranslation, MetaEntityTranslationFilterViewModel, MetaEntityViewField, MetaEntityViewFieldFilterViewModel, ParameterValueView, ParameterValueViewFilterViewModel, ParameterView, ParameterViewFilterViewModel, PresentationProfileItemFilterViewModel, PresentationProfileItemView, ResourceTranslationFilterViewModel, ResourceTranslationView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { CustomFieldGroupComponent } from '../customfieldgroup.component';\r\nimport { CustomFieldGroupEntityComponent } from '../customfieldgroupentity.component';\r\nimport { CustomFieldGroupItemComponent } from '../customfieldgroupitem.component';\r\nimport { CustomFieldOptionsComponent } from '../customfieldoptions.component';\r\nimport { MetaEntityFieldComponent } from '../metaentityfield.component';\r\nimport { MetaEntityFormComponent } from '../metaentityform.component';\r\nimport { MetaEntityFormFieldComponent } from '../metaentityformfield.component';\r\nimport { MetaEntityFormSectionComponent } from '../metaentityformsection.component';\r\nimport { MetaEntityKeywordComponent } from '../metaentitykeyword.component';\r\nimport { MetaEntityRelationComponent } from '../metaentityrelation.component';\r\nimport { MetaEntityRelationDefinitionComponent } from '../metaentityrelationdefinition.component';\r\nimport { MetaEntityTranslationComponent } from '../metaentitytranslation.component';\r\nimport { MetaEntityViewFieldComponent } from '../metaentityviewfield.component';\r\nimport { ParameterComponent } from '../parameter.component';\r\nimport { ParameterValueComponent } from '../parametervalue.component';\r\nimport { PresentationProfileItemComponent } from '../presentationprofileitem.component';\r\nimport { ResourceTranslationComponent } from '../resourcetranslation.component';\r\n\r\n/**\r\n * Onglets des entités liées (relation 1..*) des entités du module Meta : 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(MetaGeneratedSectionService)).\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class MetaGeneratedSectionService 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 // Attributs (metadata/04-forms/CustomFieldForm.sql)\r\n [MetaEntityKeys.CustomField]: () => [\r\n EntitySections.related<CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView>('Éléments des groupes de champs', CustomFieldGroupItemComponent, 'CustomFieldId'),\r\n EntitySections.related<CustomFieldOptionsFilterViewModel, CustomFieldOptionsView>('Options de champ personnalisé', CustomFieldOptionsComponent, 'CustomFieldId'),\r\n EntitySections.related<MetaEntityFieldFilterViewModel, MetaEntityField>('Champs des méta-entités', MetaEntityFieldComponent, 'CustomFieldId'),\r\n EntitySections.related<PresentationProfileItemFilterViewModel, PresentationProfileItemView>('Colonnes de vue', PresentationProfileItemComponent, 'CustomFieldId'),\r\n ],\r\n // Famille d'attributs (metadata/04-forms/CustomFieldGroupForm.sql)\r\n [MetaEntityKeys.CustomFieldGroup]: () => [\r\n EntitySections.related<CustomFieldGroupEntityFilterViewModel, CustomFieldGroupEntityView>('Entités des groupes de champs', CustomFieldGroupEntityComponent, 'CustomFieldGroupId'),\r\n ],\r\n // Mots-clés (metadata/04-forms/KeywordForm.sql)\r\n [MetaEntityKeys.Keyword]: () => [\r\n EntitySections.related<MetaEntityKeywordFilterViewModel, MetaEntityKeyword>('Mot-clé de méta-entité', MetaEntityKeywordComponent, 'KeywordId'),\r\n ],\r\n // Modèle (metadata/04-forms/MetaEntityForm.sql)\r\n [MetaEntityKeys.MetaEntity]: () => [\r\n EntitySections.related<CustomFieldGroupFilterViewModel, CustomFieldGroup>('Groupe de champs personnalisés', CustomFieldGroupComponent, 'MetaEntityId'),\r\n EntitySections.related<MetaEntityFormFilterViewModel, MetaEntityFormView>('Formulaires', MetaEntityFormComponent, 'MetaEntityId'),\r\n EntitySections.related<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView>('Champs de formulaire (Data)', MetaEntityFormFieldComponent, 'DataMetaEntityId'),\r\n EntitySections.related<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView>('Champs de formulaire (Enum)', MetaEntityFormFieldComponent, 'EnumMetaEntityId'),\r\n EntitySections.related<MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView>('Sections de formulaire', MetaEntityFormSectionComponent, 'DataMetaEntityId'),\r\n EntitySections.related<MetaEntityRelationFilterViewModel, MetaEntityRelation>('Relation entre méta-entités (Foreign)', MetaEntityRelationComponent, 'ForeignMetaEntityId'),\r\n EntitySections.related<MetaEntityRelationFilterViewModel, MetaEntityRelation>('Relation entre méta-entités', MetaEntityRelationComponent, 'MetaEntityId'),\r\n EntitySections.related<MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationDefinition>('Définition de relation', MetaEntityRelationDefinitionComponent, 'MetaEntityId'),\r\n EntitySections.related<MetaEntityViewFieldFilterViewModel, MetaEntityViewField>('Champ de vue', MetaEntityViewFieldComponent, 'MetaEntityId'),\r\n ],\r\n // Champ de méta-entité (metadata/04-forms/MetaEntityFieldForm.sql)\r\n [MetaEntityKeys.MetaEntityField]: () => [\r\n EntitySections.related<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView>('Champs de formulaire', MetaEntityFormFieldComponent, 'MetaEntityFieldId'),\r\n EntitySections.related<MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationDefinition>('Définition de relation', MetaEntityRelationDefinitionComponent, 'MetaEntityFieldId'),\r\n EntitySections.related<MetaEntityTranslationFilterViewModel, MetaEntityTranslation>('Traduction de méta-entité', MetaEntityTranslationComponent, 'MetaEntityFieldId'),\r\n EntitySections.related<MetaEntityViewFieldFilterViewModel, MetaEntityViewField>('Champ de vue', MetaEntityViewFieldComponent, 'MetaEntityFieldId'),\r\n ],\r\n // Formulaires (metadata/04-forms/MetaEntityFormForm.sql)\r\n [MetaEntityKeys.MetaEntityForm]: () => [\r\n EntitySections.related<MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView>('Sections de formulaire', MetaEntityFormSectionComponent, 'MetaEntityFormId'),\r\n ],\r\n // Sections de formulaire (metadata/04-forms/MetaEntityFormSectionForm.sql)\r\n [MetaEntityKeys.MetaEntityFormSection]: () => [\r\n EntitySections.related<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView>('Champs de formulaire', MetaEntityFormFieldComponent, 'MetaEntityFormSectionId'),\r\n ],\r\n // Relations entre entités (metadata/04-forms/MetaEntityRelationForm.sql)\r\n [MetaEntityKeys.MetaEntityRelation]: () => [\r\n EntitySections.related<MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationDefinition>('Définition de relation', MetaEntityRelationDefinitionComponent, 'MetaEntityRelationId'),\r\n ],\r\n // Champ de vue (metadata/04-forms/MetaEntityViewFieldForm.sql)\r\n [MetaEntityKeys.MetaEntityViewField]: () => [\r\n EntitySections.related<MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView>('Champs de formulaire', MetaEntityFormFieldComponent, 'MetaEntityViewFieldId'),\r\n ],\r\n // Définition des paramètres (metadata/04-forms/ParameterForm.sql)\r\n [MetaEntityKeys.Parameter]: () => [\r\n EntitySections.related<ParameterValueViewFilterViewModel, ParameterValueView>('Valeurs des paramètres', ParameterValueComponent, 'ParameterId'),\r\n ],\r\n // Sections de paramètres (metadata/04-forms/ParameterSectionForm.sql)\r\n [MetaEntityKeys.ParameterSection]: () => [\r\n EntitySections.related<ParameterViewFilterViewModel, ParameterView>('Paramètres', ParameterComponent, 'ParameterSectionId'),\r\n ],\r\n // Vues personnalisées (metadata/04-forms/PresentationProfileForm.sql)\r\n [MetaEntityKeys.PresentationProfile]: () => [\r\n EntitySections.related<PresentationProfileItemFilterViewModel, PresentationProfileItemView>('Colonnes de vue', PresentationProfileItemComponent, 'PresentationProfileId'),\r\n ],\r\n // Traductions (metadata/04-forms/ResourceKeyForm.sql)\r\n [MetaEntityKeys.ResourceKey]: () => [\r\n EntitySections.related<ResourceTranslationFilterViewModel, ResourceTranslationView>('Traductions', ResourceTranslationComponent, 'ResourceKeyId'),\r\n ],\r\n // Langues (metadata/04-forms/ResourceLanguageForm.sql)\r\n [MetaEntityKeys.ResourceLanguage]: () => [\r\n EntitySections.related<MetaEntityTranslationFilterViewModel, MetaEntityTranslation>('Traduction de méta-entité', MetaEntityTranslationComponent, 'ResourceLanguageId'),\r\n EntitySections.related<ResourceTranslationFilterViewModel, ResourceTranslationView>('Traductions', ResourceTranslationComponent, 'ResourceLanguageId'),\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","import { ColumnDisplayTypes, PresentationProfileItem } from '@dflat-core/web/meta-model';\r\n\r\n/** Options d'affichage d'une colonne de profil, éditées selon le type d'affichage. */\r\nexport type ColumnDisplayOption =\r\n | 'digits' | 'multiplier' | 'currency' | 'format' | 'nullCaseText' | 'handleError'\r\n | 'enum' | 'width' | 'baseUrl' | 'fixedSize';\r\n\r\n/** Description d'un type d'affichage (EnumColumnDisplayTypes) pour l'éditeur des profils. */\r\nexport interface ColumnDisplayTypeInfo {\r\n type: ColumnDisplayTypes;\r\n /** Libellé complet (liste des types). */\r\n label: string;\r\n /** Libellé court (indicateur de la colonne). */\r\n short: string;\r\n /** Icône Font Awesome 4.7 (sans le préfixe fa-). */\r\n icon: string;\r\n /** Options éditables pour ce type. */\r\n options: ColumnDisplayOption[];\r\n}\r\n\r\nconst COMMON: ColumnDisplayOption[] = ['nullCaseText', 'handleError'];\r\n\r\n/** Types d'affichage, dans l'ordre de la fenêtre d'édition d'une colonne. */\r\nexport const COLUMN_DISPLAY_TYPES: ColumnDisplayTypeInfo[] = [\r\n { type: ColumnDisplayTypes.Text, label: 'Texte', short: 'Texte', icon: 'font', options: ['nullCaseText'] },\r\n { type: ColumnDisplayTypes.Number, label: 'Nombre', short: 'Nombre', icon: 'hashtag', options: ['digits', 'multiplier', ...COMMON] },\r\n { type: ColumnDisplayTypes.Money, label: 'Montant', short: 'Montant', icon: 'eur', options: ['currency', ...COMMON] },\r\n { type: ColumnDisplayTypes.Percent, label: 'Pourcentage', short: '%', icon: 'percent', options: ['digits', 'multiplier', ...COMMON] },\r\n { type: ColumnDisplayTypes.Date, label: 'Date', short: 'Date', icon: 'calendar', options: ['format', 'nullCaseText'] },\r\n { type: ColumnDisplayTypes.DateTime, label: 'Date et heure', short: 'Date/h', icon: 'clock-o', options: ['format', 'nullCaseText'] },\r\n { type: ColumnDisplayTypes.Boolean, label: 'Oui / Non', short: 'Oui/Non', icon: 'check-square-o', options: ['nullCaseText'] },\r\n { type: ColumnDisplayTypes.EnumImage, label: 'Icône du type énuméré', short: 'Icône', icon: 'picture-o', options: ['enum', 'width', 'nullCaseText'] },\r\n { type: ColumnDisplayTypes.WideEnumImage, label: 'Grande icône du type énuméré', short: 'Icône L', icon: 'picture-o', options: ['enum', 'width', 'nullCaseText'] },\r\n { type: ColumnDisplayTypes.ImageFile, label: 'Image (fichier)', short: 'Image', icon: 'file-image-o', options: ['nullCaseText'] },\r\n { type: ColumnDisplayTypes.Base64Image, label: 'Image (base64)', short: 'Image', icon: 'file-image-o', options: ['nullCaseText'] },\r\n { type: ColumnDisplayTypes.Url, label: 'Lien', short: 'Lien', icon: 'link', options: ['baseUrl', 'nullCaseText'] },\r\n { type: ColumnDisplayTypes.FixedSizeInteger, label: 'Entier de taille fixe', short: '0042', icon: 'sort-numeric-asc', options: ['fixedSize', 'nullCaseText'] },\r\n];\r\n\r\n/** Type d'affichage d'un code, ou undefined (colonne sans affichage : affichage par défaut à l'enregistrement). */\r\nexport function getColumnDisplayType(type: number | null | undefined): ColumnDisplayTypeInfo | undefined {\r\n return type === null || type === undefined ? undefined : COLUMN_DISPLAY_TYPES.find(t => t.type === type);\r\n}\r\n\r\n/** Champs d'affichage d'une colonne de profil (type et options). */\r\nexport const COLUMN_DISPLAY_FIELDS: (keyof PresentationProfileItem)[] = [\r\n 'ColumnDisplayType', 'Currency', 'CurrencyPropertyName', 'Multiplier', 'MinIntegerDigits', 'MinFractionDigits',\r\n 'MaxFractionDigits', 'DisplayFormat', 'NullCaseText', 'HandleError', 'DisplayWidth', 'BaseUrl', 'CompletingCharacter',\r\n];\r\n\r\n/** Résumé lisible de l'affichage d'une colonne (infobulle de l'indicateur). */\r\nexport function describeColumnDisplay(item: PresentationProfileItem): string {\r\n const info = getColumnDisplayType(item.ColumnDisplayType);\r\n if (!info) return 'Affichage par défaut (selon le type de la colonne)';\r\n\r\n const parts: string[] = [info.label];\r\n if (info.options.includes('digits') && (item.MinFractionDigits != null || item.MaxFractionDigits != null))\r\n parts.push(`${item.MinFractionDigits ?? 0} à ${item.MaxFractionDigits ?? item.MinFractionDigits ?? 3} décimales`);\r\n if (info.options.includes('multiplier') && item.Multiplier != null && item.Multiplier !== 1)\r\n parts.push(`× ${item.Multiplier}`);\r\n if (info.options.includes('currency'))\r\n parts.push(item.Currency ? `devise ${item.Currency}` : item.CurrencyPropertyName ? `devise de ${item.CurrencyPropertyName}` : 'devise EUR');\r\n if (info.options.includes('format') && item.DisplayFormat)\r\n parts.push(item.DisplayFormat);\r\n if (item.NullCaseText)\r\n parts.push(`vide : « ${item.NullCaseText} »`);\r\n if (item.HandleError)\r\n parts.push('vide en évidence');\r\n return parts.join(' — ');\r\n}\r\n","import { CommonModule, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, LOCALE_ID, OnInit, Output } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { ColumnDisplayTypes, PresentationProfileItem } from '@dflat-core/web/meta-model';\r\n\r\nimport { COLUMN_DISPLAY_FIELDS, COLUMN_DISPLAY_TYPES, ColumnDisplayOption, ColumnDisplayTypeInfo, getColumnDisplayType } from '../column-display-types';\r\n\r\n/** Colonne proposée comme colonne de la devise d'un montant. */\r\nexport interface ColumnDisplayChoice {\r\n key: string;\r\n label: string;\r\n}\r\n\r\n/**\r\n * Fenêtre d'édition d'une colonne d'un profil de présentation (éditeur des profils) : libellé,\r\n * type d'affichage et options selon le type (décimales, multiplicateur, devise, format de date,\r\n * texte si vide...), drapeaux Verrouillée / Autorisée, avec un aperçu. « Appliquer » renvoie la\r\n * colonne modifiée (événement confirmed) ; l'éditeur la publie dans le profil, enregistré par\r\n * l'action « Enregistrer » de l'écran.\r\n */\r\n@Component({\r\n selector: 'alg-column-display-dialog',\r\n standalone: true,\r\n imports: [CommonModule, FormsModule],\r\n templateUrl: './column-display-dialog.component.html',\r\n styleUrls: ['./column-display-dialog.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n})\r\nexport class ColumnDisplayDialogComponent implements OnInit {\r\n /** Colonne éditée (copie : la colonne du profil ne change qu'à « Appliquer »). */\r\n @Input() item!: PresentationProfileItem;\r\n /** Libellé naturel de la colonne (libellé du champ de vue). */\r\n @Input() naturalLabel = '';\r\n /** Type d'affichage par défaut de la colonne, selon son type SQL. */\r\n @Input() defaultDisplayType: number | null = null;\r\n /** Table du type énuméré de la colonne (clé étrangère vers Enum<X>), s'il y en a un. */\r\n @Input() enumEntityName: string | null = null;\r\n /** Colonnes de la table, proposées comme colonne de la devise. */\r\n @Input() columns: ColumnDisplayChoice[] = [];\r\n /** Profil d'un rôle ou d'une source de données : le drapeau « Autorisée » est proposé. */\r\n @Input() isPerimeter = false;\r\n @Input() readonly = false;\r\n\r\n @Output() readonly confirmed = new EventEmitter<PresentationProfileItem>();\r\n @Output() readonly cancelled = new EventEmitter<void>();\r\n\r\n readonly types = COLUMN_DISPLAY_TYPES;\r\n /** Devise d'un montant : fixe, ou lue dans une colonne de la ligne. */\r\n currencyMode: 'fixed' | 'column' = 'fixed';\r\n model: PresentationProfileItem = {};\r\n\r\n readonly dateFormats = ['dd/MM/yyyy', 'dd/MM/yy', 'EEEE d MMMM yyyy', 'MMMM yyyy'];\r\n readonly dateTimeFormats = ['dd/MM/yyyy HH:mm:ss', 'dd/MM/yyyy HH:mm', 'HH:mm'];\r\n\r\n constructor(@Inject(LOCALE_ID) private readonly locale: string) {}\r\n\r\n ngOnInit(): void {\r\n this.model = { ...this.item };\r\n if (this.model.ColumnDisplayType === null || this.model.ColumnDisplayType === undefined)\r\n this.model.ColumnDisplayType = this.defaultDisplayType ?? ColumnDisplayTypes.Text;\r\n this.currencyMode = this.model.CurrencyPropertyName && !this.model.Currency ? 'column' : 'fixed';\r\n }\r\n\r\n get selectedType(): ColumnDisplayTypeInfo | undefined { return getColumnDisplayType(this.model.ColumnDisplayType); }\r\n\r\n has(option: ColumnDisplayOption): boolean { return !!this.selectedType?.options.includes(option); }\r\n\r\n isDefault(type: ColumnDisplayTypeInfo): boolean { return type.type === this.defaultDisplayType; }\r\n\r\n selectType(type: ColumnDisplayTypeInfo): void {\r\n if (this.readonly) return;\r\n this.model.ColumnDisplayType = type.type;\r\n }\r\n\r\n get isPercent(): boolean { return this.model.ColumnDisplayType === ColumnDisplayTypes.Percent; }\r\n\r\n get isDateTime(): boolean { return this.model.ColumnDisplayType === ColumnDisplayTypes.DateTime; }\r\n\r\n /** Format de date proposé par défaut (celui de la grille). */\r\n get defaultDateFormat(): string { return this.isDateTime ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy'; }\r\n\r\n /** Aperçu d'une valeur exemple avec l'affichage choisi (mêmes formats que la grille). */\r\n get preview(): string {\r\n try {\r\n const m = this.model;\r\n const multiplier = m.Multiplier ?? 1;\r\n const digits = this.digitsFormat;\r\n switch (m.ColumnDisplayType) {\r\n case ColumnDisplayTypes.Number:\r\n return formatNumber(1234.5678 * multiplier, this.locale, digits ?? '1.0-3');\r\n case ColumnDisplayTypes.Percent:\r\n return formatPercent((multiplier !== 1 ? 12.345 : 0.12345) * multiplier, this.locale, digits ?? '1.0-3');\r\n case ColumnDisplayTypes.Money: {\r\n const code = this.currencyMode === 'fixed' ? (m.Currency || 'EUR') : 'EUR';\r\n return formatCurrency(1234.5, this.locale, getCurrencySymbol(code, 'wide', this.locale), code)\r\n + (this.currencyMode === 'column' && m.CurrencyPropertyName ? ` (devise de ${m.CurrencyPropertyName})` : '');\r\n }\r\n case ColumnDisplayTypes.Date:\r\n case ColumnDisplayTypes.DateTime:\r\n return formatDate(new Date(), m.DisplayFormat || this.defaultDateFormat, this.locale);\r\n case ColumnDisplayTypes.Boolean:\r\n return 'OUI / NON';\r\n case ColumnDisplayTypes.FixedSizeInteger:\r\n return '42'.padStart(Math.max(m.DisplayWidth ?? 0, 2), m.CompletingCharacter || '0');\r\n case ColumnDisplayTypes.Url:\r\n return `${m.BaseUrl || '/'}/42`.replace('//', '/');\r\n case ColumnDisplayTypes.EnumImage:\r\n case ColumnDisplayTypes.WideEnumImage:\r\n return this.enumEntityName ? `Icône de la valeur (${this.enumEntityName})` : 'Icône de la valeur';\r\n case ColumnDisplayTypes.ImageFile:\r\n case ColumnDisplayTypes.Base64Image:\r\n return 'Image';\r\n default:\r\n return 'Texte de la colonne';\r\n }\r\n } catch {\r\n return 'Format invalide';\r\n }\r\n }\r\n\r\n /** Format numérique des options de chiffres (minEntiers.minDécimales-maxDécimales), ou null. */\r\n private get digitsFormat(): string | null {\r\n const m = this.model;\r\n if (m.MinIntegerDigits == null && m.MinFractionDigits == null && m.MaxFractionDigits == null) return null;\r\n const min = m.MinFractionDigits ?? 0;\r\n const max = Math.max(min, m.MaxFractionDigits ?? Math.max(min, 3));\r\n return `${m.MinIntegerDigits ?? 1}.${min}-${max}`;\r\n }\r\n\r\n apply(): void {\r\n if (this.readonly) { this.cancel(); return; }\r\n const result: PresentationProfileItem = { ...this.item, Label: this.model.Label || null, IsLocked: this.model.IsLocked, IsAllowed: this.model.IsAllowed };\r\n // Seules les options du type choisi sont gardées.\r\n COLUMN_DISPLAY_FIELDS.forEach(field => (result as any)[field] = null);\r\n result.ColumnDisplayType = this.model.ColumnDisplayType;\r\n const keep = (field: keyof PresentationProfileItem) => (result as any)[field] = this.emptyToNull((this.model as any)[field]);\r\n if (this.has('digits')) { keep('MinIntegerDigits'); keep('MinFractionDigits'); keep('MaxFractionDigits'); }\r\n if (this.has('multiplier')) keep('Multiplier');\r\n if (this.has('currency')) {\r\n if (this.currencyMode === 'fixed') result.Currency = this.emptyToNull(this.model.Currency?.trim().toUpperCase());\r\n else keep('CurrencyPropertyName');\r\n }\r\n if (this.has('format')) keep('DisplayFormat');\r\n if (this.has('nullCaseText')) keep('NullCaseText');\r\n if (this.has('handleError')) result.HandleError = this.model.HandleError ? true : null;\r\n if (this.has('width') || this.has('fixedSize')) keep('DisplayWidth');\r\n if (this.has('fixedSize')) keep('CompletingCharacter');\r\n if (this.has('baseUrl')) keep('BaseUrl');\r\n this.confirmed.emit(result);\r\n }\r\n\r\n cancel(): void { this.cancelled.emit(); }\r\n\r\n private emptyToNull<T>(value: T): T | null {\r\n return value === undefined || value === null || (value as any) === '' ? null : value;\r\n }\r\n}\r\n","<div class=\"cdd-header\">\r\n <h4 class=\"cdd-title\">\r\n Colonne <span class=\"cdd-title__key\">{{ item.ColumnKey }}</span>\r\n </h4>\r\n <button class=\"cdd-icon-btn\" type=\"button\" (click)=\"cancel()\" aria-label=\"Fermer\">&#x2715;</button>\r\n</div>\r\n\r\n<div class=\"cdd-body\">\r\n <!-- Libellé -->\r\n <div class=\"cdd-field\">\r\n <label class=\"cdd-label\" for=\"cdd-label\">Libellé</label>\r\n <input id=\"cdd-label\" class=\"cdd-input\" type=\"text\" [(ngModel)]=\"model.Label\" [placeholder]=\"naturalLabel || item.ColumnKey\" [disabled]=\"readonly\">\r\n <span class=\"cdd-hint\">Vide : libellé de la colonne ({{ naturalLabel || item.ColumnKey }}).</span>\r\n </div>\r\n\r\n <!-- Type d'affichage -->\r\n <div class=\"cdd-field\">\r\n <span class=\"cdd-label\">Affichage</span>\r\n <div class=\"cdd-types\" role=\"radiogroup\" aria-label=\"Type d'affichage\">\r\n @for (type of types; track type.type) {\r\n <button type=\"button\" class=\"cdd-type\" role=\"radio\"\r\n [class.cdd-type--active]=\"model.ColumnDisplayType === type.type\"\r\n [attr.aria-checked]=\"model.ColumnDisplayType === type.type\"\r\n [disabled]=\"readonly\"\r\n (click)=\"selectType(type)\">\r\n <i class=\"fa fa-{{ type.icon }}\"></i>\r\n <span class=\"cdd-type__label\">{{ type.label }}</span>\r\n @if (isDefault(type)) {\r\n <span class=\"cdd-type__default\" title=\"Affichage par défaut selon le type de la colonne\">défaut</span>\r\n }\r\n </button>\r\n }\r\n </div>\r\n </div>\r\n\r\n <!-- Options du type -->\r\n <div class=\"cdd-options\">\r\n @if (has('digits')) {\r\n <div class=\"cdd-row\">\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-minint\">Chiffres entiers min.</label>\r\n <input id=\"cdd-minint\" class=\"cdd-input\" type=\"number\" min=\"0\" [(ngModel)]=\"model.MinIntegerDigits\" placeholder=\"1\" [disabled]=\"readonly\">\r\n </div>\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-minfrac\">Décimales min.</label>\r\n <input id=\"cdd-minfrac\" class=\"cdd-input\" type=\"number\" min=\"0\" [(ngModel)]=\"model.MinFractionDigits\" placeholder=\"0\" [disabled]=\"readonly\">\r\n </div>\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-maxfrac\">Décimales max.</label>\r\n <input id=\"cdd-maxfrac\" class=\"cdd-input\" type=\"number\" min=\"0\" [(ngModel)]=\"model.MaxFractionDigits\" placeholder=\"3\" [disabled]=\"readonly\">\r\n </div>\r\n @if (has('multiplier')) {\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-mult\">Multiplicateur</label>\r\n <input id=\"cdd-mult\" class=\"cdd-input\" type=\"number\" step=\"any\" [(ngModel)]=\"model.Multiplier\" placeholder=\"1\" [disabled]=\"readonly\">\r\n </div>\r\n }\r\n </div>\r\n @if (isPercent) {\r\n <span class=\"cdd-hint\">Valeur enregistrée en pourcentage (12,5 pour 12,5 %) : multiplicateur 0,01.</span>\r\n }\r\n }\r\n\r\n @if (has('currency')) {\r\n <div class=\"cdd-field\">\r\n <span class=\"cdd-label\">Devise</span>\r\n <div class=\"cdd-choice\">\r\n <label><input type=\"radio\" name=\"cdd-currency\" value=\"fixed\" [(ngModel)]=\"currencyMode\" [disabled]=\"readonly\"> Devise fixe</label>\r\n <input class=\"cdd-input cdd-input--currency\" type=\"text\" maxlength=\"3\" [(ngModel)]=\"model.Currency\" placeholder=\"EUR\"\r\n [disabled]=\"readonly || currencyMode !== 'fixed'\" aria-label=\"Code de la devise\">\r\n </div>\r\n <div class=\"cdd-choice\">\r\n <label><input type=\"radio\" name=\"cdd-currency\" value=\"column\" [(ngModel)]=\"currencyMode\" [disabled]=\"readonly\"> Devise de la ligne, colonne</label>\r\n <select class=\"cdd-input\" [(ngModel)]=\"model.CurrencyPropertyName\" [disabled]=\"readonly || currencyMode !== 'column'\" aria-label=\"Colonne de la devise\">\r\n <option [ngValue]=\"null\">—</option>\r\n @for (column of columns; track column.key) {\r\n <option [ngValue]=\"column.key\">{{ column.label }} ({{ column.key }})</option>\r\n }\r\n </select>\r\n </div>\r\n <span class=\"cdd-hint\">Sans devise : EUR.</span>\r\n </div>\r\n }\r\n\r\n @if (has('format')) {\r\n <div class=\"cdd-field\">\r\n <label class=\"cdd-label\" for=\"cdd-format\">Format</label>\r\n <input id=\"cdd-format\" class=\"cdd-input\" type=\"text\" [(ngModel)]=\"model.DisplayFormat\" [placeholder]=\"defaultDateFormat\" [disabled]=\"readonly\">\r\n <div class=\"cdd-chips\">\r\n @for (format of (isDateTime ? dateTimeFormats : dateFormats); track format) {\r\n <button type=\"button\" class=\"cdd-chip\" [disabled]=\"readonly\" (click)=\"model.DisplayFormat = format\">{{ format }}</button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (has('enum')) {\r\n <div class=\"cdd-field\">\r\n <span class=\"cdd-label\">Type énuméré</span>\r\n @if (enumEntityName) {\r\n <span class=\"cdd-value\">{{ enumEntityName }}</span>\r\n <span class=\"cdd-hint\">Icônes simg/&lt;Module&gt;/&lt;Type&gt;/&lt;Valeur&gt;.svg ; infobulle : libellé de la valeur.</span>\r\n } @else {\r\n <span class=\"cdd-hint cdd-hint--warn\">Pas de clé étrangère vers une table Enum… : le type vient de l'attribut Enum de la propriété ; sans lui, la colonne s'affiche en texte.</span>\r\n }\r\n </div>\r\n }\r\n\r\n @if (has('width')) {\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-width\">Largeur (px)</label>\r\n <input id=\"cdd-width\" class=\"cdd-input\" type=\"number\" min=\"0\" [(ngModel)]=\"model.DisplayWidth\" [disabled]=\"readonly\">\r\n </div>\r\n }\r\n\r\n @if (has('fixedSize')) {\r\n <div class=\"cdd-row\">\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-size\">Taille</label>\r\n <input id=\"cdd-size\" class=\"cdd-input\" type=\"number\" min=\"0\" [(ngModel)]=\"model.DisplayWidth\" placeholder=\"10\" [disabled]=\"readonly\">\r\n </div>\r\n <div class=\"cdd-field cdd-field--small\">\r\n <label class=\"cdd-label\" for=\"cdd-char\">Caractère de complément</label>\r\n <input id=\"cdd-char\" class=\"cdd-input\" type=\"text\" maxlength=\"1\" [(ngModel)]=\"model.CompletingCharacter\" placeholder=\"0\" [disabled]=\"readonly\">\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (has('baseUrl')) {\r\n <div class=\"cdd-field\">\r\n <label class=\"cdd-label\" for=\"cdd-url\">Adresse de base</label>\r\n <input id=\"cdd-url\" class=\"cdd-input\" type=\"text\" [(ngModel)]=\"model.BaseUrl\" placeholder=\"/\" [disabled]=\"readonly\">\r\n </div>\r\n }\r\n\r\n @if (has('nullCaseText') || has('handleError')) {\r\n <div class=\"cdd-row\">\r\n @if (has('nullCaseText')) {\r\n <div class=\"cdd-field\">\r\n <label class=\"cdd-label\" for=\"cdd-null\">Texte si vide</label>\r\n <input id=\"cdd-null\" class=\"cdd-input\" type=\"text\" maxlength=\"100\" [(ngModel)]=\"model.NullCaseText\" placeholder=\"(rien)\" [disabled]=\"readonly\">\r\n </div>\r\n }\r\n @if (has('handleError')) {\r\n <label class=\"cdd-check\">\r\n <input type=\"checkbox\" [(ngModel)]=\"model.HandleError\" [disabled]=\"readonly\"> Valeur vide en évidence (rouge)\r\n </label>\r\n }\r\n </div>\r\n }\r\n </div>\r\n\r\n <!-- Aperçu -->\r\n <div class=\"cdd-preview\">\r\n <span class=\"cdd-label\">Aperçu</span>\r\n <span class=\"cdd-preview__value\">{{ preview }}</span>\r\n </div>\r\n\r\n <!-- Drapeaux -->\r\n <div class=\"cdd-row cdd-flags\">\r\n <label class=\"cdd-check\"><input type=\"checkbox\" [(ngModel)]=\"model.IsLocked\" [disabled]=\"readonly\"> Verrouillée (ne peut pas être retirée)</label>\r\n @if (isPerimeter) {\r\n <label class=\"cdd-check\"><input type=\"checkbox\" [(ngModel)]=\"model.IsAllowed\" [disabled]=\"readonly\"> Autorisée</label>\r\n }\r\n </div>\r\n</div>\r\n\r\n<div class=\"cdd-footer\">\r\n <button class=\"cdd-btn cdd-btn--secondary\" type=\"button\" (click)=\"cancel()\">Annuler</button>\r\n @if (!readonly) {\r\n <button class=\"cdd-btn cdd-btn--primary\" type=\"button\" (click)=\"apply()\">Appliquer</button>\r\n }\r\n</div>\r\n","import { ColumnDescriptor } from '@dflat-core/web/core-model';\r\nimport type { FilterEditorColumn, PpViewQueries } from '@dflat-core/web/core-ux';\r\nimport { PresentationContext, PresentationProfile, PresentationProfileItem, PresentationProfilePurposes, PresentationProfileScopes } from '@dflat-core/web/meta-model';\r\n\r\nexport const PP_GRP_STANDARD = 'standard';\r\nexport const PP_GRP_CUSTOM = 'custom';\r\n\r\nexport interface PpConfig {\r\n metaEntityKey: string;\r\n title?: string;\r\n purpose?: PresentationProfilePurposes;\r\n embedded?: boolean;\r\n /** Vue choisie à l'ouverture (à défaut, la vue affichée par la grille). */\r\n viewId?: number | null;\r\n supplierId?: number | null;\r\n roleId?: number | null;\r\n /** Onglet ouvert : colonnes (par défaut), ou filtres et tri. */\r\n tab?: 'columns' | 'filters';\r\n /** Colonnes de la grille, pour le filtre (types et valeurs des types énumérés). */\r\n filterColumns?: FilterEditorColumn[];\r\n /** Champs du FilterPanel de la grille, dont les valeurs s'enregistrent avec la vue (onglet « Filtres »). */\r\n panelFields?: FilterEditorColumn[];\r\n /** Tri et filtre en cours dans la grille (FilterPanel compris) : ceux d'une nouvelle vue copiée de la vue affichée. */\r\n gridQueries?: PpViewQueries;\r\n}\r\n\r\nexport interface PpGroup {\r\n id: string;\r\n label: string;\r\n isCustom: boolean;\r\n}\r\n\r\nexport interface PpResult {\r\n purpose: PresentationProfilePurposes;\r\n profileId: number | null;\r\n columns: PresentationProfileItem[];\r\n}\r\n\r\nexport interface PpExportSplit {\r\n columns: string[];\r\n customFieldIds: number[];\r\n}\r\n\r\n\r\nexport class PresentationProfileTransformer {\r\n /** Display types rendered as an image by the data grid (Display.Type_IMG, Type_WIDE_IMG, Type_IMG_FILE). */\r\n private static readonly IMAGE_DISPLAY_TYPES = ['img', 'wide-img', 'img-file'];\r\n\r\n /**\r\n * Build the display groups from a catalog: a \"standard\" group + one group per custom-field\r\n * group (by GroupId/GroupName provided by the backend), falling back to a single \"Attributs\".\r\n */\r\n static buildGroups(catalog: PresentationProfileItem[]): PpGroup[] {\r\n const groups: PpGroup[] = [];\r\n if (catalog.some(i => i.ColumnSourceType !== 2)) groups.push({ id: PP_GRP_STANDARD, label: 'Colonnes standard', isCustom: false });\r\n\r\n const seen = new Map<string, string>();\r\n for (const i of catalog) {\r\n if (i.ColumnSourceType !== 2) continue;\r\n const id = i.GroupId != null ? `cf-${i.GroupId}` : PP_GRP_CUSTOM;\r\n if (!seen.has(id)) seen.set(id, i.GroupName ?? 'Attributs');\r\n }\r\n seen.forEach((label, id) => groups.push({ id, label, isCustom: true }));\r\n return groups;\r\n }\r\n\r\n /**\r\n * Converts resolved PresentationProfileItem[] into ColumnDescriptor[] for the data grid.\r\n * Standard columns are matched from the backend descriptors by Property (ColumnKey) and keep their\r\n * display (type and options of the profile column, see SystemBaseController.GetGridColumns);\r\n * custom-field columns get a synthetic text descriptor.\r\n * item.Label is the custom override saved with the profile; it is null when the column keeps its\r\n * natural label, which is then the backend descriptor's Name (the column key only as a last resort).\r\n */\r\n static buildDescriptors(items: PresentationProfileItem[], backendDescriptors: ColumnDescriptor[]): ColumnDescriptor[] {\r\n const byProperty = new Map(backendDescriptors.map(d => [d.Property, d]));\r\n return items\r\n .filter(i => !!i.ColumnKey)\r\n .map(i => {\r\n const template = byProperty.get(i.ColumnKey!);\r\n const displayLabel = i.Label || template?.Name || i.ColumnKey!;\r\n if ((i.ColumnSourceType ?? 0) !== 2) {\r\n if (!template) return null;\r\n // Image column (enum icon, row image): the header stays empty; the label is only\r\n // used to pick columns.\r\n const isImage = PresentationProfileTransformer.IMAGE_DISPLAY_TYPES.includes(template.Display?.type ?? '');\r\n return {\r\n ...template,\r\n Name: isImage ? '' : displayLabel,\r\n FieldName: displayLabel,\r\n Display: template.Display ?? { type: 'text' },\r\n } as ColumnDescriptor;\r\n }\r\n return {\r\n Property: i.ColumnKey,\r\n Name: displayLabel,\r\n FieldName: displayLabel,\r\n Display: { type: 'text' },\r\n } as ColumnDescriptor;\r\n })\r\n .filter((d): d is ColumnDescriptor => d !== null);\r\n }\r\n\r\n /** User profile selection → unified PresentationContext for savePresentationProfile (Profile carries Items). */\r\n static toUserPreferenceContext(\r\n items: PresentationProfileItem[],\r\n key: string,\r\n purpose: number,\r\n label: string | null = null,\r\n profile: PresentationProfile | null = null,\r\n ): PresentationContext {\r\n return {\r\n IsUserProfile: true,\r\n Profile: {\r\n ...(profile ?? {}),\r\n Label: label ?? profile?.Label,\r\n PresentationProfilePurpose: purpose,\r\n MetaEntityKey: key,\r\n PresentationProfileScope: PresentationProfileScopes.User,\r\n Items: PresentationProfileTransformer.toSaveItems(items),\r\n } as PresentationProfile,\r\n } as PresentationContext;\r\n }\r\n\r\n /** Admin selection → unified PresentationContext for savePresentationProfile (Profile carries Items). */\r\n static toAdminConfigContext(items: PresentationProfileItem[], profile: PresentationProfile): PresentationContext {\r\n return {\r\n IsUserProfile: false,\r\n Profile: { ...profile, Items: PresentationProfileTransformer.toSaveItems(items) } as PresentationProfile,\r\n } as PresentationContext;\r\n }\r\n\r\n /** Normalises selected columns into persistable items (order = position). */\r\n private static toSaveItems(items: PresentationProfileItem[]): PresentationProfileItem[] {\r\n return items.map((item, i) => ({\r\n ColumnKey: item.ColumnKey,\r\n Label: item.Label || null,\r\n OrderNumber: i + 1,\r\n IsLocked: item.IsLocked ?? false,\r\n IsAllowed: item.IsAllowed ?? null,\r\n ColumnSourceType: item.ColumnSourceType ?? 1,\r\n CustomFieldId: item.CustomFieldId ?? null,\r\n CardSlot: item.CardSlot ?? null,\r\n ...PresentationProfileTransformer.displayOf(item),\r\n } as PresentationProfileItem));\r\n }\r\n\r\n /** Display settings of a column (type and options), as saved with the profile. */\r\n static displayOf(item: PresentationProfileItem): Partial<PresentationProfileItem> {\r\n return {\r\n ColumnDisplayType: item.ColumnDisplayType ?? null,\r\n Currency: item.Currency ?? null,\r\n CurrencyPropertyName: item.CurrencyPropertyName ?? null,\r\n Multiplier: item.Multiplier ?? null,\r\n MinIntegerDigits: item.MinIntegerDigits ?? null,\r\n MinFractionDigits: item.MinFractionDigits ?? null,\r\n MaxFractionDigits: item.MaxFractionDigits ?? null,\r\n DisplayFormat: item.DisplayFormat ?? null,\r\n NullCaseText: item.NullCaseText ?? null,\r\n HandleError: item.HandleError ?? null,\r\n DisplayWidth: item.DisplayWidth ?? null,\r\n BaseUrl: item.BaseUrl ?? null,\r\n CompletingCharacter: item.CompletingCharacter ?? null,\r\n } as Partial<PresentationProfileItem>;\r\n }\r\n\r\n /** Split selected items into standard column keys and custom-field ids (for export payloads). */\r\n static splitForExport(items: PresentationProfileItem[]): PpExportSplit {\r\n const cols: string[] = [];\r\n const ids: number[] = [];\r\n for (const item of items) {\r\n if ((item.ColumnSourceType ?? 0) === 2 && item.CustomFieldId != null) ids.push(item.CustomFieldId);\r\n else if (item.ColumnKey) cols.push(item.ColumnKey);\r\n }\r\n return { columns: cols, customFieldIds: ids };\r\n }\r\n}\r\n","import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';\r\nimport { ChangeDetectionStrategy, Component, DoCheck, Input, OnInit, TemplateRef, ViewEncapsulation } from '@angular/core';\r\nimport { ConditionalResults, FieldDescriptor, PropertyEditorEvent, Section } from '@dflat-core/web/core-model';\r\nimport {\r\n ApplicationService, BaseEntityEditor, FilterEditorColumn, FilterEditorSort, parseViewQuery, toViewQuery, ValidationService,\r\n ViewFilterGroup,\r\n} from '@dflat-core/web/core-ux';\r\nimport { PresentationProfileItemDataService } from '@dflat-core/web/meta-data';\r\nimport {\r\n MetaEntity, MetaEntityTypes, PresentationProfileFilterViewModel, PresentationProfileItem, PresentationProfileScopes,\r\n PresentationProfileView,\r\n} from '@dflat-core/web/meta-model';\r\nimport { DflatModalService } from '@dflat-core/web/core-ux';\r\nimport { combineLatest, of, Subject } from 'rxjs';\r\nimport { catchError, map, switchMap, take, takeUntil } from 'rxjs/operators';\r\nimport { ColumnDisplayDialogComponent } from '../presentation-profile/column-display-dialog/column-display-dialog.component';\r\nimport { ColumnDisplayTypeInfo, describeColumnDisplay, getColumnDisplayType } from '../presentation-profile/column-display-types';\r\nimport { PresentationProfileTransformer } from '../presentation-profile/presentation-profile-transformer';\r\n\r\n/**\r\n * Éditeur spécifique des profils de présentation, affiché par l'écran des profils\r\n * (PresentationProfileScreenComponent) à la place du formulaire standard : onglet « Propriétés »\r\n * (formulaire par défaut de l'entité : table, libellé, finalité, portée, puis utilisateur, source de\r\n * données ou rôle selon la portée ; avec les composants des formulaires) et onglet « Colonnes »\r\n * (colonnes affichées, ordre, libellés et affichage : un indicateur du type d'affichage et un bouton\r\n * qui ouvre la fenêtre d'édition de la colonne), puis onglets « Tri » et « Filtres » (tri et filtre\r\n * enregistrés dans la vue, SortQuery et FilterQuery). L'enregistrement passe par l'action\r\n * « Enregistrer » de l'écran (ou « Appliquer » de la fenêtre des vues) : les colonnes modifiées sont\r\n * publiées dans <c>Items</c> du profil, le tri et le filtre dans <c>SortQuery</c> et <c>FilterQuery</c>.\r\n */\r\n@Component({\r\n selector: 'alg-presentation-profile-editor',\r\n templateUrl: './presentation-profile-editor.component.html',\r\n styleUrls: [\r\n '../presentation-profile/presentation-profile-column-grid/presentation-profile-column.component.scss',\r\n './presentation-profile-editor.component.scss',\r\n ],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class PresentationProfileEditorComponent extends BaseEntityEditor<PresentationProfileView> implements OnInit, DoCheck {\r\n\r\n /** Onglet affiché : 0 « Propriétés », 1 « Colonnes », 2 « Tri », 3 « Filtres », 4 « Carte ». */\r\n activeTab: number = 0;\r\n\r\n /**\r\n * Contenu de l'onglet « Carte » (carte de la vue Grille), donné par la fenêtre des vues d'une grille,\r\n * qui l'enregistre avec la vue ; sans contenu, pas d'onglet « Carte ».\r\n */\r\n @Input() cardTemplate: TemplateRef<unknown> | null = null;\r\n\r\n /**\r\n * Champs du FilterPanel de la grille (fenêtre des vues d'une grille) : leurs valeurs s'enregistrent\r\n * avec le filtre de la vue (onglet « Filtres ») ; sans eux, les valeurs enregistrées sont gardées.\r\n */\r\n @Input() panelFields: FilterEditorColumn[] = [];\r\n\r\n /** Onglets affichés, dans l'ordre (numéros d'activeTab). */\r\n get visibleTabs(): number[] {\r\n return [\r\n ...(this.showProperties ? [0] : []), 1, 2,\r\n ...(this.isDefaultView ? [] : [3]),\r\n ...(this.cardTemplate ? [4] : []),\r\n ];\r\n }\r\n\r\n /** Onglet choisi par son rang parmi les onglets affichés. */\r\n selectTab(index: number): void {\r\n this.activeTab = this.visibleTabs[index] ?? 1;\r\n }\r\n\r\n /** Onglet affiché, ou « Colonnes » si l'onglet choisi n'est plus proposé (« Filtres » d'une vue par défaut). */\r\n get shownTab(): number {\r\n return this.visibleTabs.includes(this.activeTab) ? this.activeTab : 1;\r\n }\r\n\r\n /**\r\n * Onglet « Propriétés » affiché : masqué dans la fenêtre des vues d'une grille, où la table, la finalité\r\n * et la portée sont celles de la grille et la vue se choisit dans la liste de gauche.\r\n */\r\n @Input() set showProperties(value: boolean) {\r\n this._showProperties = value !== false;\r\n if (!this._showProperties && this.activeTab === 0)\r\n this.activeTab = 1;\r\n }\r\n get showProperties(): boolean { return this._showProperties; }\r\n private _showProperties = true;\r\n\r\n /** Tri de la vue (onglet « Tri »), modifié en place par l'éditeur des filtres. */\r\n viewSort: FilterEditorSort[] = [];\r\n /** Filtre de la vue (onglet « Filtres »), modifié en place par l'éditeur des filtres. */\r\n viewFilter: ViewFilterGroup = { Logic: 'and', Conditions: [], Groups: [] };\r\n /** Colonnes proposées au tri et au filtre : catalogue de la table, type d'après l'affichage. */\r\n filterColumns: FilterEditorColumn[] = [];\r\n /** Tri et filtre déjà publiés (JSON) : repère des changements faits dans les onglets. */\r\n private publishedQueries = '';\r\n /** Profil dont les colonnes sont chargées : les onglets ne s'affichent que pour lui. */\r\n loadedEntity: PresentationProfileView = undefined;\r\n isLoading = false;\r\n\r\n /** Colonnes de la table (catalogue). */\r\n allItems: PresentationProfileItem[] = [];\r\n /** Colonnes disponibles : celles du catalogue qui ne sont pas affichées, filtrées par la recherche. */\r\n filteredItems: PresentationProfileItem[] = [];\r\n /** Colonnes affichées, dans l'ordre. */\r\n orderedSelection: PresentationProfileItem[] = [];\r\n selectedIds = new Set<string>();\r\n searchText = '';\r\n naturalLabelByKey = new Map<string, string>();\r\n /** Colonne du catalogue par clé : affichage par défaut et type énuméré de la colonne. */\r\n private catalogByKey = new Map<string, PresentationProfileItem>();\r\n\r\n /**\r\n * Champs qui se choisissent à la création du profil et ne se modifient plus ensuite : ils\r\n * désignent le profil (table, finalité, portée). Utilisateur et rôles : onglet « Affectations ».\r\n */\r\n private static readonly frozenFields = ['MetaEntityKey', 'PresentationProfilePurpose', 'PresentationProfileScope'];\r\n /** Champs dont le changement demande de relire le catalogue des colonnes. */\r\n private static readonly catalogFields = ['MetaEntityKey', 'PresentationProfileScope', 'RoleId'];\r\n\r\n /** Profils dont il faut charger les colonnes : seul le dernier demandé est gardé. */\r\n private load$ = new Subject<PresentationProfileView>();\r\n\r\n get isPerimeter(): boolean {\r\n const scope = this.current?.PresentationProfileScope;\r\n return scope === PresentationProfileScopes.Role;\r\n }\r\n get selectedCount(): number { return this.orderedSelection.length; }\r\n\r\n /** Vue par défaut (portée Default) : pas d'onglet « Filtres », son filtre s'appliquerait à tous les utilisateurs. */\r\n get isDefaultView(): boolean {\r\n const scope = this.current?.PresentationProfileScope;\r\n return scope === undefined || scope === null || scope === PresentationProfileScopes.Default;\r\n }\r\n\r\n /** Dernier état du profil en cours d'édition : modifications non enregistrées comprises. */\r\n private get current(): PresentationProfileView {\r\n if (!this.entity) return undefined;\r\n return this.facade?.change.getModified(this.entity.Id) ?? this.entity;\r\n }\r\n\r\n constructor(app: ApplicationService, validationService: ValidationService,\r\n private itemData: PresentationProfileItemDataService,\r\n private modalService: DflatModalService) {\r\n super(app, validationService);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.load$.pipe(\r\n switchMap(entity => this.loadColumns$(entity).pipe(\r\n map(([catalog, items]) => ({ entity, catalog, items })),\r\n catchError(() => of(undefined)))),\r\n takeUntil(this.destroy$)\r\n ).subscribe(loaded => {\r\n this.isLoading = false;\r\n if (!loaded || loaded.entity.Id !== this.entity?.Id)\r\n return;\r\n this.showColumns(loaded.catalog, loaded.items);\r\n this.loadedEntity = this.entity;\r\n });\r\n\r\n super.ngOnInit();\r\n }\r\n\r\n /**\r\n * Champs du formulaire par défaut des profils ; la liste des entités propose les tables et les vues :\r\n * un écran servi par une vue (&lt;Table&gt;View...) a ses profils déclarés sur cette vue.\r\n */\r\n protected alterSections(sections: Section[]): Section[] {\r\n return sections.map(section => ({\r\n ...section,\r\n FieldViewModels: (section.FieldViewModels ?? []).map(field => {\r\n if (field.PropertyName !== 'MetaEntityKey' || !Array.isArray(field.Data))\r\n return field;\r\n return {\r\n ...field, Data: field.Data.filter((e: MetaEntity) => e.MetaEntityType === undefined\r\n || e.MetaEntityType === MetaEntityTypes.Table || e.MetaEntityType === MetaEntityTypes.SystemView)\r\n };\r\n })\r\n }));\r\n }\r\n\r\n /**\r\n * Champ masqué selon la valeur du champ dont il dépend (formulaire en base : le champ\r\n * Utilisateur, Source de données ou Rôle ne s'affiche que pour sa portée).\r\n */\r\n isFieldHidden(field: FieldDescriptor): boolean {\r\n if (field.IsHidden) return true;\r\n if (!field.IsConditional || field.ConditionalResult !== ConditionalResults.Hide || !field.ConditioningField) return false;\r\n const value = this.form.get(field.ConditioningField)?.value ?? this.current?.[field.ConditioningField];\r\n // Sans portée choisie, aucun des champs qui en dépendent n'est affiché.\r\n return value === null || value === undefined || (field.ConditioningFieldValue ?? []).includes(Number(value));\r\n }\r\n\r\n /** Champ en lecture seule : celui du formulaire, ou un champ d'identité d'un profil déjà créé. */\r\n isFieldReadonly(field: FieldDescriptor): boolean {\r\n return this.readonly || !!field.ReadOnly\r\n || (this.entity?.Id > 0 && PresentationProfileEditorComponent.frozenFields.includes(field.PropertyName));\r\n }\r\n\r\n /** Charge les colonnes du profil sélectionné ; un profil réémis avec ses modifications garde son affichage. */\r\n protected onEntityChanged(entity: PresentationProfileView): void {\r\n if (entity && this.loadedEntity && entity.Id === this.loadedEntity.Id && (entity === this.loadedEntity || !!entity.Items)) {\r\n this.loadedEntity = entity;\r\n return;\r\n }\r\n\r\n this.loadedEntity = undefined;\r\n this.resetColumns();\r\n if (!entity)\r\n return;\r\n\r\n this.isLoading = true;\r\n this.load$.next(entity);\r\n }\r\n\r\n /** La table ou la portée d'un profil change : le catalogue des colonnes est relu. */\r\n onPropertyChanged(event: PropertyEditorEvent): void {\r\n super.onPropertyChanged(event);\r\n if (this.entity && PresentationProfileEditorComponent.catalogFields.includes(event.field?.PropertyName)) {\r\n this.isLoading = true;\r\n this.load$.next(this.entity);\r\n }\r\n }\r\n\r\n /** Catalogue des colonnes de la table (selon la portée) et colonnes enregistrées du profil. */\r\n private loadColumns$(entity: PresentationProfileView) {\r\n const profile = this.facade.change.getModified(entity.Id) ?? entity;\r\n if (!profile.MetaEntityKey)\r\n return of([[], []] as [PresentationProfileItem[], PresentationProfileItem[]]);\r\n\r\n const scoped = profile.PresentationProfileScope === PresentationProfileScopes.Role;\r\n const catalogFilter: PresentationProfileFilterViewModel = {\r\n MetaEntityKey: profile.MetaEntityKey,\r\n PresentationProfileScope: scoped ? profile.PresentationProfileScope : undefined,\r\n RoleId: profile.PresentationProfileScope === PresentationProfileScopes.Role ? profile.RoleId ?? undefined : undefined,\r\n };\r\n\r\n const catalog$ = this.itemData.getCatalog(catalogFilter).pipe(catchError(() => of([] as PresentationProfileItem[])));\r\n // Des colonnes déjà modifiées et pas encore enregistrées priment sur celles du serveur.\r\n const items$ = profile.Items\r\n ? of(profile.Items)\r\n : entity.Id > 0\r\n ? this.itemData.getPresentationProfileItems(entity.Id).pipe(catchError(() => of([] as PresentationProfileItem[])))\r\n : of([] as PresentationProfileItem[]);\r\n return combineLatest([catalog$, items$]);\r\n }\r\n\r\n private showColumns(catalog: PresentationProfileItem[], rawItems: PresentationProfileItem[]): void {\r\n this.resetColumns();\r\n const known = catalog.filter(i => !!i.ColumnKey);\r\n this.naturalLabelByKey = new Map(known.map(i => [i.ColumnKey!, i.Label ?? i.ColumnKey!]));\r\n\r\n const savedByKey = new Map(rawItems.filter(i => !!i.ColumnKey).map(i => [i.ColumnKey!, i]));\r\n this.allItems = known.map(c => {\r\n const saved = savedByKey.get(c.ColumnKey!);\r\n return { ...c, IsAllowed: saved?.IsAllowed ?? false, IsLocked: saved?.IsLocked ?? false };\r\n });\r\n\r\n const catalogByKey = new Map(known.map(i => [i.ColumnKey!, i]));\r\n this.catalogByKey = catalogByKey;\r\n this.orderedSelection = rawItems\r\n .filter(i => !!i.ColumnKey)\r\n .sort((a, b) => (a.OrderNumber ?? 0) - (b.OrderNumber ?? 0))\r\n .map(i => ({ ...(catalogByKey.get(i.ColumnKey!) ?? {}), ...i } as PresentationProfileItem));\r\n this.orderedSelection.forEach(c => this.selectedIds.add(c.ColumnKey!));\r\n this.applyFilter();\r\n this.loadQueries(known);\r\n }\r\n\r\n /** Tri et filtre de la vue en cours d'édition (modifications non enregistrées comprises), et colonnes proposées. */\r\n private loadQueries(catalog: PresentationProfileItem[]): void {\r\n const typeOf = (displayType: number | null | undefined): FilterEditorColumn['type'] =>\r\n displayType === 2 || displayType === 3 ? 'date'\r\n : displayType === 1 || displayType === 4 || displayType === 5 || displayType === 12 ? 'number'\r\n : displayType === 6 ? 'bool' : 'text';\r\n this.filterColumns = catalog\r\n .filter(i => i.ColumnSourceType !== 2)\r\n .map(i => ({ key: i.ColumnKey!, label: i.Label || i.ColumnKey!, type: typeOf(i.ColumnDisplayType) } as FilterEditorColumn))\r\n .sort((a, b) => a.label.localeCompare(b.label, 'fr', { sensitivity: 'base' }));\r\n\r\n const profile = this.current;\r\n let sort: FilterEditorSort[] = [];\r\n try {\r\n const levels = profile?.SortQuery ? JSON.parse(profile.SortQuery) : [];\r\n sort = Array.isArray(levels)\r\n ? levels.filter(l => !!l?.property).map(l => ({ property: String(l.property), direction: l.direction === 'desc' ? 'desc' : 'asc' }))\r\n : [];\r\n }\r\n catch {\r\n sort = [];\r\n }\r\n this.viewSort = sort;\r\n this.viewFilter = parseViewQuery(profile?.FilterQuery) ?? { Logic: 'and', Conditions: [], Groups: [] };\r\n this.viewFilter.Groups = this.viewFilter.Groups ?? [];\r\n const loaded: { SortQuery: string, FilterQuery?: string } = this.currentQueries();\r\n if (this.isDefaultView)\r\n delete loaded.FilterQuery;\r\n this.publishedQueries = JSON.stringify(loaded);\r\n }\r\n\r\n /** Tri et filtre en cours, au format enregistré (chaîne vide : aucun). */\r\n private currentQueries(): { SortQuery: string, FilterQuery: string } {\r\n const sort = this.viewSort.filter(s => !!s.property);\r\n return { SortQuery: sort.length ? JSON.stringify(sort) : '', FilterQuery: toViewQuery(this.viewFilter) ?? '' };\r\n }\r\n\r\n /**\r\n * L'éditeur des filtres modifie le tri et le filtre en place, sans événement : un changement est\r\n * repéré à chaque vérification et publié (le profil devient modifié, « Enregistrer » l'envoie).\r\n */\r\n ngDoCheck(): void {\r\n if (!this.loadedEntity || this.readonly)\r\n return;\r\n const queries: { SortQuery: string, FilterQuery?: string } = this.currentQueries();\r\n // Vue par défaut : son filtre n'est pas modifiable ici (onglet masqué), il n'est pas renvoyé.\r\n if (this.isDefaultView)\r\n delete queries.FilterQuery;\r\n const json = JSON.stringify(queries);\r\n if (json === this.publishedQueries)\r\n return;\r\n this.publishedQueries = json;\r\n this.publishChanges(queries);\r\n }\r\n\r\n private resetColumns(): void {\r\n this.allItems = [];\r\n this.filteredItems = [];\r\n this.orderedSelection = [];\r\n this.selectedIds = new Set();\r\n this.searchText = '';\r\n this.naturalLabelByKey = new Map();\r\n this.catalogByKey = new Map();\r\n this.viewSort = [];\r\n this.viewFilter = { Logic: 'and', Conditions: [], Groups: [] };\r\n this.filterColumns = [];\r\n this.publishedQueries = '';\r\n }\r\n\r\n /** Publie les colonnes choisies : le profil devient modifié, l'action « Enregistrer » les envoie. */\r\n onColumnsChanged(): void {\r\n const profile = this.current;\r\n if (!profile || this.readonly) return;\r\n this.publishChanges({ Items: PresentationProfileTransformer.toAdminConfigContext(this.orderedSelection, profile).Profile.Items });\r\n }\r\n\r\n getCatalogLabel(item: PresentationProfileItem): string {\r\n return this.naturalLabelByKey.get(item.ColumnKey ?? '') ?? item.ColumnKey ?? '';\r\n }\r\n\r\n /** Type d'affichage de la colonne (indicateur), ou undefined : affichage par défaut à l'enregistrement. */\r\n getDisplayType(item: PresentationProfileItem): ColumnDisplayTypeInfo | undefined {\r\n return getColumnDisplayType(item.ColumnDisplayType);\r\n }\r\n\r\n /** Résumé de l'affichage de la colonne (infobulle de l'indicateur). */\r\n describeDisplay(item: PresentationProfileItem): string {\r\n return describeColumnDisplay(item);\r\n }\r\n\r\n /**\r\n * Ouvre la fenêtre d'édition de la colonne (libellé, affichage et options, drapeaux) ; la colonne\r\n * modifiée remplace celle de la liste et le profil devient modifié.\r\n */\r\n openColumn(item: PresentationProfileItem): void {\r\n const catalog = this.catalogByKey.get(item.ColumnKey ?? '');\r\n const ref = this.modalService.show(ColumnDisplayDialogComponent, {\r\n class: 'modal-lg',\r\n keyboard: true,\r\n initialState: {\r\n item: { ...item },\r\n naturalLabel: this.getCatalogLabel(item),\r\n defaultDisplayType: item.ColumnSourceType === 2 ? null : catalog?.ColumnDisplayType ?? null,\r\n enumEntityName: catalog?.EnumEntityName ?? null,\r\n columns: this.allItems\r\n .filter(i => i.ColumnSourceType !== 2 && !!i.ColumnKey)\r\n .map(i => ({ key: i.ColumnKey!, label: i.Label ?? i.ColumnKey! })),\r\n isPerimeter: this.isPerimeter,\r\n readonly: this.readonly,\r\n },\r\n });\r\n if (!ref.content) return;\r\n\r\n ref.content.confirmed.pipe(take(1)).subscribe(result => {\r\n this.orderedSelection = this.orderedSelection.map(i => i.ColumnKey === item.ColumnKey ? { ...i, ...result } : i);\r\n this.onColumnsChanged();\r\n ref.hide();\r\n });\r\n ref.content.cancelled.pipe(take(1)).subscribe(() => ref.hide());\r\n }\r\n\r\n onSearch(): void { this.applyFilter(); }\r\n\r\n /** Colonnes disponibles : catalogue sans les colonnes affichées, restreint au texte cherché. */\r\n private applyFilter(): void {\r\n let items = this.allItems.filter(i => !this.selectedIds.has(i.ColumnKey ?? ''));\r\n if (this.searchText?.trim()) {\r\n const q = this.searchText.toLowerCase();\r\n items = items.filter(i =>\r\n (i.Label ?? i.ColumnKey ?? '').toLowerCase().includes(q) ||\r\n (i.ColumnKey ?? '').toLowerCase().includes(q)\r\n );\r\n }\r\n this.filteredItems = items;\r\n }\r\n\r\n /** Affiche une colonne disponible : elle passe à la fin des colonnes affichées. */\r\n addItem(item: PresentationProfileItem): void {\r\n if (this.readonly) return;\r\n this.selectedIds.add(item.ColumnKey ?? '');\r\n this.orderedSelection = [...this.orderedSelection, { ...item, Label: null }];\r\n this.applyFilter();\r\n this.onColumnsChanged();\r\n }\r\n\r\n /** Affiche toutes les colonnes disponibles listées. */\r\n addAll(): void {\r\n if (this.readonly || this.filteredItems.length === 0) return;\r\n this.filteredItems.forEach(i => this.selectedIds.add(i.ColumnKey ?? ''));\r\n this.orderedSelection = [...this.orderedSelection, ...this.filteredItems.map(i => ({ ...i, Label: null as string | null | undefined }))];\r\n this.applyFilter();\r\n this.onColumnsChanged();\r\n }\r\n\r\n removeFromSelection(item: PresentationProfileItem): void {\r\n if (this.readonly) return;\r\n const key = item.ColumnKey ?? '';\r\n this.selectedIds.delete(key);\r\n this.orderedSelection = this.orderedSelection.filter(i => i.ColumnKey !== key);\r\n this.applyFilter();\r\n this.onColumnsChanged();\r\n }\r\n\r\n onDrop(event: CdkDragDrop<PresentationProfileItem[]>): void {\r\n if (this.readonly || event.previousIndex === event.currentIndex) return;\r\n moveItemInArray(this.orderedSelection, event.previousIndex, event.currentIndex);\r\n this.onColumnsChanged();\r\n }\r\n}\r\n","<div class=\"pp-editor\">\r\n @if (entity) {\r\n <alg-tabset [showNavs]=\"true\" [pills]=\"false\" (onSelect)=\"selectTab($event)\">\r\n\r\n <!--Propriétés : table, libellé, finalité et portée du profil, avec les composants des formulaires\r\n (masqué dans la fenêtre des vues d'une grille : la vue y est choisie à gauche)-->\r\n @if (showProperties) {\r\n <alg-tab title=\"Propriétés\" [active]=\"shownTab === 0\" [class.pp-editor-tab]=\"shownTab === 0\">\r\n <div class=\"property-container pp-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]=\"isFieldHidden(field)\">\r\n <alg-field [field]=\"field\" [form]=\"form\" [readonly]=\"isFieldReadonly(field)\"\r\n (propertyChanged)=\"onPropertyChanged($event)\">\r\n </alg-field>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </alg-tab>\r\n }\r\n\r\n <!--Colonnes : colonnes affichées par la grille, leur ordre et leurs libellés-->\r\n <alg-tab title=\"Colonnes\" [active]=\"shownTab === 1\" [class.pp-editor-tab]=\"shownTab === 1\">\r\n <div class=\"gcc pp-editor-columns\">\r\n <div *ngIf=\"isLoading\" class=\"gcc__loading\">\r\n <span class=\"gcc__spinner-icon fa fa-circle-o-notch fa-spin\"></span>\r\n Chargement des colonnes…\r\n </div>\r\n <div *ngIf=\"!isLoading && allItems.length === 0 && orderedSelection.length === 0\" class=\"gcc__hint\">\r\n Choisissez la table du profil dans l'onglet « Propriétés ».\r\n </div>\r\n <ng-container *ngIf=\"!isLoading && (allItems.length > 0 || orderedSelection.length > 0)\">\r\n <div class=\"gcc__panels\">\r\n\r\n <!-- ── Colonnes disponibles : celles de la table qui ne sont pas affichées ── -->\r\n <div class=\"gcc__browse\">\r\n <div class=\"gcc__panel-hd\">\r\n <span class=\"gcc__panel-label\">Colonnes disponibles</span>\r\n <span class=\"gcc__badge\">{{ filteredItems.length }}</span>\r\n <input class=\"gcc__search\" type=\"text\" placeholder=\"Rechercher…\"\r\n [(ngModel)]=\"searchText\" (ngModelChange)=\"onSearch()\">\r\n <button *ngIf=\"!readonly\" class=\"pp-editor-add-all\" type=\"button\" [disabled]=\"filteredItems.length === 0\"\r\n (click)=\"addAll()\" title=\"Afficher toutes les colonnes listées\">Tout ajouter</button>\r\n </div>\r\n\r\n <div class=\"gcc__table-wrap\">\r\n <table class=\"gcc__browse-table\">\r\n <tbody>\r\n <tr *ngFor=\"let item of filteredItems\"\r\n class=\"gcc__browse-row\"\r\n [class.gcc__browse-row--custom]=\"item.ColumnSourceType === 2\"\r\n title=\"Afficher cette colonne\"\r\n (click)=\"addItem(item)\">\r\n <td class=\"gcc__col-name\">\r\n <div class=\"gcc__col-key\">{{ item.ColumnKey }}</div>\r\n <div *ngIf=\"item.Label && item.Label !== item.ColumnKey\" class=\"gcc__sub\">{{ item.Label }}</div>\r\n </td>\r\n <td class=\"pp-editor-add\"><i *ngIf=\"!readonly\" class=\"fa fa-plus\"></i></td>\r\n </tr>\r\n <tr *ngIf=\"filteredItems.length === 0\">\r\n <td colspan=\"2\" class=\"gcc__browse-empty\">\r\n {{ searchText ? 'Aucune colonne trouvée' : 'Toutes les colonnes sont affichées' }}\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n\r\n <!-- ── Panel 4: Ordered selection with admin flags ────────────── -->\r\n <div class=\"gcc__selection\">\r\n <div class=\"gcc__panel-hd\">\r\n <span class=\"gcc__panel-label\">Colonnes affichées</span>\r\n <span *ngIf=\"selectedCount > 0\" class=\"gcc__badge gcc__badge--primary\">{{ selectedCount }}</span>\r\n </div>\r\n\r\n <div *ngIf=\"orderedSelection.length > 0\" class=\"gcc__sel-legend\">\r\n <span class=\"gcc__sel-legend__drag\"></span>\r\n <span class=\"gcc__sel-legend__pos\">#</span>\r\n <span class=\"gcc__sel-legend__code\">Colonne</span>\r\n <span class=\"gcc__sel-legend__label\">Étiquette</span>\r\n <span class=\"gcc__sel-legend__display\">Affichage</span>\r\n <ng-container *ngIf=\"isPerimeter\">\r\n <span class=\"gcc__sel-legend__flag\">Aut.</span>\r\n </ng-container>\r\n <span class=\"gcc__sel-legend__flag\">Ver.</span>\r\n <span class=\"gcc__sel-legend__remove\"></span>\r\n </div>\r\n\r\n <div *ngIf=\"orderedSelection.length === 0\" class=\"gcc__sel-empty\">\r\n <span class=\"fa fa-columns gcc__sel-empty__icon\"></span>\r\n <p>Choisissez des colonnes parmi les colonnes disponibles</p>\r\n </div>\r\n\r\n <div *ngIf=\"orderedSelection.length > 0\"\r\n class=\"gcc__sel-list\"\r\n cdkDropList\r\n [cdkDropListData]=\"orderedSelection\"\r\n (cdkDropListDropped)=\"onDrop($event)\">\r\n\r\n <div *ngFor=\"let item of orderedSelection; let i = index\"\r\n class=\"gcc__sel-item\"\r\n cdkDrag [cdkDragDisabled]=\"readonly\"\r\n [cdkDragData]=\"item\">\r\n\r\n <div class=\"gcc__sel-item__placeholder\" *cdkDragPlaceholder></div>\r\n\r\n <span class=\"gcc__sel-item__drag\" cdkDragHandle>\r\n <i class=\"fa fa-bars\"></i>\r\n </span>\r\n\r\n <span class=\"gcc__sel-item__pos\">{{ i + 1 }}</span>\r\n\r\n <span class=\"gcc__sel-item__code\"\r\n [class.gcc__sel-item__code--cf]=\"item.ColumnSourceType === 2\"\r\n [title]=\"item.ColumnKey\">\r\n <span class=\"gcc__sel-item__name\">{{ item.ColumnKey }}</span>\r\n <span *ngIf=\"getCatalogLabel(item) !== item.ColumnKey\" class=\"gcc__sub\">{{ getCatalogLabel(item) }}</span>\r\n </span>\r\n\r\n <input class=\"gcc__sel-item__label\" type=\"text\"\r\n [placeholder]=\"getCatalogLabel(item)\"\r\n [(ngModel)]=\"item.Label\" (ngModelChange)=\"onColumnsChanged()\" [disabled]=\"readonly\"\r\n (click)=\"$event.stopPropagation()\"\r\n title=\"Étiquette personnalisée\">\r\n\r\n <!-- Affichage : indicateur du type, ouvre la fenêtre d'édition de la colonne -->\r\n <span class=\"pp-display\" (click)=\"$event.stopPropagation()\">\r\n <button type=\"button\" class=\"pp-display__badge\"\r\n [class.pp-display__badge--default]=\"!getDisplayType(item)\"\r\n [title]=\"describeDisplay(item)\"\r\n (click)=\"openColumn(item)\">\r\n <i class=\"fa fa-{{ getDisplayType(item)?.icon ?? 'magic' }}\"></i>\r\n <span class=\"pp-display__text\">{{ getDisplayType(item)?.short ?? 'Auto' }}</span>\r\n </button>\r\n <button type=\"button\" class=\"pp-display__edit\" title=\"Modifier la colonne (libellé, affichage...)\" (click)=\"openColumn(item)\">\r\n <i class=\"fa fa-sliders\"></i>\r\n </button>\r\n </span>\r\n\r\n <!-- Perimeter scope: allowed flag -->\r\n <ng-container *ngIf=\"isPerimeter\">\r\n <label class=\"gcc__flag\" (click)=\"$event.stopPropagation()\">\r\n <input type=\"checkbox\" [(ngModel)]=\"item.IsAllowed\" (ngModelChange)=\"onColumnsChanged()\" [disabled]=\"readonly\" title=\"Autorisé\">\r\n </label>\r\n </ng-container>\r\n\r\n <!-- Always: locked flag -->\r\n <label class=\"gcc__flag\" (click)=\"$event.stopPropagation()\">\r\n <input type=\"checkbox\" [(ngModel)]=\"item.IsLocked\" (ngModelChange)=\"onColumnsChanged()\" [disabled]=\"readonly\" title=\"Verrouillé\">\r\n </label>\r\n\r\n <button class=\"gcc__sel-item__remove\" type=\"button\"\r\n (click)=\"removeFromSelection(item); $event.stopPropagation()\"\r\n title=\"Retirer\">&#x2715;</button>\r\n </div>\r\n\r\n </div>\r\n\r\n <!-- Pied de la sélection -->\r\n <div class=\"gcc__sel-footer\">\r\n <span class=\"gcc__sel-footer__info\">\r\n <ng-container *ngIf=\"selectedCount > 0\">\r\n {{ selectedCount }} colonne(s) — glissez pour réordonner\r\n </ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n </div><!-- /.gcc__panels -->\r\n </ng-container>\r\n </div>\r\n </alg-tab>\r\n\r\n <!--Tri : tri enregistré dans la vue, appliqué à la grille quand elle affiche la vue-->\r\n <alg-tab title=\"Tri\" [active]=\"shownTab === 2\" [class.pp-editor-tab]=\"shownTab === 2\">\r\n <div class=\"pp-editor-queries\">\r\n <alg-filter-editor [embedded]=\"true\" section=\"sort\" [columns]=\"filterColumns\" [sort]=\"viewSort\"\r\n [filter]=\"viewFilter\" [class.pp-editor-readonly]=\"readonly\"></alg-filter-editor>\r\n </div>\r\n </alg-tab>\r\n\r\n <!--Filtres : filtre enregistré dans la vue (groupes ET / OU, valeurs du FilterPanel), ajouté aux filtres\r\n de la grille ; pas sur une vue par défaut, qui s'applique à tous les utilisateurs (lignes masquées pour tous)-->\r\n @if (!isDefaultView) {\r\n <alg-tab title=\"Filtres\" [active]=\"shownTab === 3\" [class.pp-editor-tab]=\"shownTab === 3\">\r\n <div class=\"pp-editor-queries\">\r\n <alg-filter-editor [embedded]=\"true\" section=\"filters\" [columns]=\"filterColumns\" [sort]=\"viewSort\"\r\n [filter]=\"viewFilter\" [panelFields]=\"panelFields\" [class.pp-editor-readonly]=\"readonly\"></alg-filter-editor>\r\n </div>\r\n </alg-tab>\r\n }\r\n\r\n <!--Carte : carte de la vue Grille (fenêtre des vues d'une grille), à défaut la carte par défaut-->\r\n @if (cardTemplate) {\r\n <alg-tab title=\"Carte\" [active]=\"shownTab === 4\" [class.pp-editor-tab]=\"shownTab === 4\">\r\n <ng-container [ngTemplateOutlet]=\"cardTemplate\"></ng-container>\r\n </alg-tab>\r\n }\r\n </alg-tabset>\r\n }\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur PresentationProfileController).\r\n// Ne pas modifier : le code spécifique s'écrit dans PresentationProfileComponent, dérivé de BasePresentationProfileComponent.\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 { PresentationProfileFilterViewModel, PresentationProfileView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des PresentationProfileView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : PresentationProfileComponent.\r\n */\r\n@Directive()\r\nexport abstract class BasePresentationProfileComponent extends BaseComponent<PresentationProfileFilterViewModel, PresentationProfileView> {\r\n getTitle(): string {\r\n return 'Vues personnalisées';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.PresentationProfile;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_PRESENTATIONPROFILE;\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 'PROV';\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/PresentationProfileForm.sql), déclarées par MetaGeneratedSectionService\r\n * (meta-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 { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Action, ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { PresentationProfileDataService } from '@dflat-core/web/meta-data';\r\nimport { PresentationProfileEditorComponent } from '../editor-components/presentation-profile-editor.component';\r\nimport { BasePresentationProfileComponent } from './generated/presentationprofile.component.generated';\r\n\r\n/**\r\n * Écran des vues personnalisées : grille standard des vues (vue PresentationProfileView : table,\r\n * finalité, portée, utilisateur, source de données ou rôle) et, à la place du formulaire d'édition\r\n * standard, l'éditeur des vues (PresentationProfileEditorComponent). Hors administrateur, le serveur\r\n * ne propose que les vues par défaut, en lecture seule, et les vues de l'utilisateur ; « Dupliquer »\r\n * copie une vue en une nouvelle vue de l'utilisateur. Nommé « Screen » : PresentationProfileComponent\r\n * est déjà le sélecteur de colonnes des grilles.\r\n */\r\n@Component({\r\n selector: 'alg-presentation-profile-screen',\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 PresentationProfileScreenComponent extends BasePresentationProfileComponent {\r\n private readonly profileData = inject(PresentationProfileDataService);\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n\r\n // Éditeur spécifique : propriétés et colonnes du profil, à la place du formulaire standard.\r\n this.editorComponent = PresentationProfileEditorComponent;\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout: false, PropertyFlexGrow: 65 });\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n this.facade.actions.addAction(new Action(\r\n 'duplicateView', 'Dupliquer', false, true, false, 'files-o', 'bg-orange',\r\n () => this.duplicateView(), null, () => true,\r\n ));\r\n }\r\n\r\n /** Copie la vue sélectionnée en une nouvelle vue de l'utilisateur, puis relit les vues. */\r\n private duplicateView(): void {\r\n const view = this.facade.selection.getSelected()?.[0];\r\n if (view?.Id == null)\r\n return;\r\n this.profileData.duplicateView({ PresentationProfileId: view.Id }).subscribe(result => {\r\n if (result?.Success)\r\n this.app.ToastrService?.success(result.ErrorMessage ?? 'Vue dupliquée');\r\n else if (result?.ErrorMessage)\r\n this.app.ToastrService?.error(result.ErrorMessage);\r\n this.refresh();\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","import { Utilities } from '@dflat-core/web/core';\r\nimport { ApplicationService, BaseEditorComponent, IIsCancel } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldGroup } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from \"@angular/core\";\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'alg-custom-field-group-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 CustomFieldGroupEditorComponent extends BaseEditorComponent<CustomFieldGroup> implements IIsCancel\r\n{\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroup;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? (\"Nouvelle famille d'attributs\") : (\"Famille d'attributs \" + this.id + \")\")): \"Famille d'attributs\";\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n public isCancel: boolean = false;\r\n CustomFieldId: number;\r\n constructor(\r\n app : ApplicationService,\r\n 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","\r\nimport { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldGroupEntityView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'msw-custom-field-group-entity-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 CustomFieldGroupEntityEditorComponent extends BaseEditorComponent<CustomFieldGroupEntityView> {\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? (\"Nouvelle famille d'attributs\") : (\"Famille d'attributs (\" + this.id + ')')): \"famille d'attributs\";\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroupEntity;\r\n }\r\n get PermissionKey(): string{\r\n return MetaPermissions.META_CUSTOMFIELDGROUPENTITY;\r\n }\r\n\r\n\r\n constructor(\r\n 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","\r\nimport { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { CustomFieldGroupItemView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n@Component({\r\n selector: 'msw-custom-field-group-item-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 CustomFieldGroupItemEditorComponent extends BaseEditorComponent<CustomFieldGroupItemView>{\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.CustomFieldGroupItem;\r\n }\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvel ') : ('Attribut item (' + this.id + ')')): 'Attribut';\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.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}\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 { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { Permission } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-permission-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 PermissionEditorComponent extends BaseEditorComponent<Permission> {\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.Permission;\r\n }\r\n \r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvelle permission') : ('Permission (' + this.id + ')')): 'Permissions';\r\n }\r\n \r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.GetLink(this.getEntityKey());\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","import { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { ResourceTranslationView } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-reslang-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 ResourceTranslationEditorComponent extends BaseEditorComponent<ResourceTranslationView> {\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ResourceTranslation;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId\r\n ? this.id === '0'\r\n ? 'Nouvelle traduction'\r\n : 'Traduction (' + this.id + ')'\r\n : 'Traductions';\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId\r\n ? MetaMenuItemProvider.GetLink(this.getEntityKey()) +\r\n '/' +\r\n this.id\r\n : MetaMenuItemProvider.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","import { Utilities } from '@dflat-core/web/core';\r\nimport { ImageFormats } from '@dflat-core/web/core-model';\r\nimport { AuthService } from '@dflat-core/web/core-services';\r\nimport {\r\n Action,\r\n ActionsComponent,\r\n AlertService,\r\n DialogType,\r\n downloadFile,\r\n IActionComponent\r\n} from '@dflat-core/web/core-ux';\r\nimport { FilesDataService } from '@dflat-core/web/meta-data';\r\nimport {\r\n FileDescriptor,\r\n FileTypes,\r\n GetFileDescriptorsViewModel\r\n} from '@dflat-core/web/meta-model';\r\nimport { Component, Input, OnInit, ViewChild, ChangeDetectionStrategy } from '@angular/core';\r\nimport { forkJoin, Observable } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'alg-entity-files',\r\n templateUrl: './entity-files.component.html',\r\n styleUrls: ['./entity-files.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class EntityFilesComponent implements IActionComponent, OnInit {\r\n \r\n // cast non base components into sections\r\n isSection?:boolean;\r\n\r\n @Input() entityId: number;\r\n @Input() entityKey: string;\r\n @Input() permissionKey: string;\r\n @ViewChild('actionComponent', { static: false })\r\n actionComponent: ActionsComponent;\r\n\r\n files: FileDescriptor[];\r\n originalFiles: FileDescriptor[];\r\n\r\n selected: FileDescriptor[] = [];\r\n actions: Action[];\r\n\r\n constructor(\r\n private fileService: FilesDataService,\r\n private authService: AuthService,\r\n private alertService: AlertService\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.refreshActions();\r\n this.actions = [ new Action('delete','Supprimer',false,true,true,'trash-o','bg-red',\r\n this.delete.bind(this),this.getActionPermissionKey('edit'),this.canDelete.bind(this)),];\r\n }\r\n\r\n handleCheckChanged(f: FileDescriptor) {\r\n if (f.IsSelected) this.selected.push(f);\r\n else {\r\n let index = this.selected.indexOf(f);\r\n if (index > -1) {\r\n this.selected.splice(index, 1);\r\n }\r\n }\r\n\r\n this.refreshActions();\r\n }\r\n\r\n refreshActions() {\r\n // Mise à jour des actions dans le menu\r\n if (!Utilities.IsNil(this.actionComponent))\r\n this.actionComponent.refreshActions();\r\n }\r\n\r\n handleActionSearchKeywords(keyword: string) {\r\n if (Utilities.IsNil(keyword) || keyword.length == 0)\r\n this.files = this.originalFiles;\r\n else\r\n this.files = this.originalFiles.filter(\r\n (f) =>\r\n f.IsSelected ||\r\n f.FileName.toLowerCase().includes(keyword.toLowerCase())\r\n );\r\n }\r\n\r\n toggleFilterView(): void {}\r\n showHistory(): void {}\r\n refresh(): void {}\r\n\r\n canDelete() {\r\n return (\r\n !Utilities.IsNil(this.selected) &&\r\n this.selected.length > 0\r\n );\r\n }\r\n getActionPermissionKey(action: 'add' | 'edit' | 'export' | any) {\r\n if (Utilities.IsNil(this.permissionKey)) {\r\n return null;\r\n }\r\n return `${this.permissionKey}.${action}`;\r\n }\r\n delete() {\r\n this.alertService.showDialog(\r\n 'Souhaitez-vous confirmer la suppression des fichiers sélectionnés ?',\r\n DialogType.Confirm,\r\n (res) => {\r\n this.fileService.deleteFiles(this.selected).subscribe({\r\n next: (deleteResult) => {\r\n if (deleteResult.Success) {\r\n this.loadData();\r\n } else {\r\n this.alertService.error(deleteResult.ErrorMessage);\r\n }\r\n },\r\n });\r\n },\r\n () => {},\r\n 'Oui',\r\n 'Non'\r\n );\r\n }\r\n // getFileName(FileD)\r\n public loadData() {\r\n let viewModel: GetFileDescriptorsViewModel = {\r\n EntityIds: [this.entityId],\r\n EntityKey: this.entityKey,\r\n };\r\n\r\n this.fileService.getFileDescriptors(viewModel).subscribe((res) => {\r\n this.originalFiles = res;\r\n this.files = res;\r\n this.selected = [];\r\n this.refreshActions();\r\n });\r\n }\r\n\r\n getImageUrl(extension: string) {\r\n let icon: string = 'file-solid';\r\n switch (extension.toLowerCase()) {\r\n case 'txt':\r\n icon = 'file-lines-solid';\r\n break;\r\n case 'csv':\r\n icon = 'file-csv-solid';\r\n break;\r\n case 'xls':\r\n case 'xlsx':\r\n icon = 'file-excel-solid';\r\n break;\r\n case 'doc':\r\n case 'docx':\r\n icon = 'file-word-solid';\r\n break;\r\n case 'pdf':\r\n icon = 'file-pdf-solid';\r\n break;\r\n case 'svg':\r\n case 'jpg':\r\n case 'gif':\r\n case 'png':\r\n case 'bmp':\r\n icon = 'file-image-solid';\r\n break;\r\n case 'log':\r\n icon = 'file-invoice-solid';\r\n break;\r\n case 'zip':\r\n icon = 'file-zipper-solid';\r\n break;\r\n default:\r\n break;\r\n }\r\n return `/assets/images/${icon}.svg`;\r\n }\r\n\r\n onDownloadFile(file: FileDescriptor) {\r\n this.fileService.getFile(file.FileId).subscribe(downloadFile);\r\n }\r\n\r\n onFileDrop(event) {\r\n if (\r\n Utilities.IsNil(event) ||\r\n Utilities.IsNil(event.addedFiles)\r\n )\r\n return;\r\n let permKey: string = `${this.permissionKey}.edit`;\r\n\r\n if (!this.authService.hasPermission(permKey)) {\r\n this.alertService.error(\r\n \"Vous n'avez pas l'autorisation d'ajouter des fichiers ici.\"\r\n );\r\n return;\r\n }\r\n\r\n // Création de la liste des fichiers à uploader\r\n let importedFiles: File[] = [];\r\n importedFiles.push(...event.addedFiles);\r\n\r\n // Vérification des conflits\r\n if (importedFiles.length > 0) {\r\n let toAdd: File[] = [];\r\n forkJoin(\r\n importedFiles.map((f) => {\r\n if (\r\n this.originalFiles.filter(\r\n (original) =>\r\n original.FileName.toLowerCase() ==\r\n f.name.toLowerCase()\r\n ).length > 0\r\n ) {\r\n let o = new Observable((o) => {\r\n this.alertService.showDialog(\r\n 'Souhaitez-vous écraser le fichier existant ?',\r\n DialogType.Confirm,\r\n (res) => {\r\n toAdd.push(f);\r\n o.next(f);\r\n o.complete();\r\n },\r\n () => {\r\n o.next(f);\r\n o.complete();\r\n },\r\n 'Oui',\r\n 'Non',\r\n `Le fichier ${f.name} existe déjà !`,\r\n 'Fichier existant'\r\n );\r\n });\r\n return o;\r\n } else {\r\n let o = new Observable((o) => {\r\n toAdd.push(f);\r\n o.next(f);\r\n o.complete();\r\n });\r\n return o;\r\n }\r\n })\r\n ).subscribe((res) => {\r\n forkJoin(\r\n toAdd.map((f) =>\r\n this.fileService.uploadFile(\r\n f,\r\n this.entityId,\r\n this.entityKey,\r\n FileTypes.Default,\r\n ImageFormats.Undefined,\r\n null\r\n )\r\n )\r\n ).subscribe((x) => this.loadData());\r\n });\r\n }\r\n }\r\n \r\n}\r\n","<alg-actions\r\n #actionComponent\r\n [title]=\"'Fichiers'\"\r\n [proxy]=\"this\"\r\n [showFilterButton]=\"false\"\r\n [showSearchBar]=\"true\"\r\n [showSearchButton]=\"false\"\r\n [showTitle]=\"false\"\r\n [showPaginator]=\"false\"\r\n [actions]=\"this.actions\"\r\n [selectedData]=\"this.selected\"\r\n >\r\n</alg-actions>\r\n\r\n<div class=\"drop-zone\" ngx-dropzone (change)=\"onFileDrop($event)\" [disableClick]=\"true\">\r\n <div class=\"file-container\" *ngFor=\"let f of files\">\r\n\r\n <div class=\"file-row\">\r\n <div style=\"line-height: 0;\">\r\n <input style=\"cursor: pointer;\"type=\"checkbox\" [(ngModel)]=\"f.IsSelected\" (ngModelChange)=\"handleCheckChanged(f)\">\r\n </div>\r\n \r\n <img [class]=\"f.Extension.toLowerCase()\" [src]=\"getImageUrl(f.Extension)\" [alt]=\"f.Extension\">\r\n <div class=\"span-filename\" (click)=\"onDownloadFile(f)\" data-toggle=\"tooltip\" [title]=\"f.FileName\">\r\n <span >{{f.FileName}}</span>\r\n </div>\r\n \r\n </div>\r\n\r\n <div class=\"file-info-container\">\r\n <div>{{f.LengthDescription}}</div>\r\n &nbsp;-&nbsp;\r\n <div>{{f.OwnerUser}}</div>\r\n &nbsp;-&nbsp;\r\n <div>{{f.LastModificationDate | date: 'dd/MM/yyyy HH:mm'}}</div>\r\n \r\n </div>\r\n\r\n </div>\r\n <!-- <ng-container *ngIf=\"this.files && this.files.length == 0\">\r\n Aucun fichier n'a été détecté\r\n </ng-container> -->\r\n</div>","import { ApplicationService, BaseEditorComponent, NewEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { MetaEntityField } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-meta-entity-field-editor',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html',\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 MetaEntityFieldEditorComponent extends NewEditorComponent<MetaEntityField> {\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.MetaEntityField;\r\n }\r\n \r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvel attribut') : ('Attribut (' + this.id + ')')): 'Attributs';\r\n }\r\n \r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.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","<div class=\"editor-container\">\r\n <div class=\"breadcrumb-panel\" *ngIf=\"(this.facade.editor.isStandaloneMode$| async)\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n <!-- entityConfigLoader\r\n #configLoader=\"entityConfigLoader\"\r\n [entityKey]=\"getEntityKey()\" -->\r\n\r\n <ng-container\r\n >\r\n <div class=\"property-editor-container\" [class.show-buttons]=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <alg-property-editor\r\n class=\"property-editor-container-inner\"\r\n #propertyGridComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-property-editor>\r\n </div>\r\n <div class=\"buttons-container\" *ngIf=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <div class=\"footer-buttons\" >\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!this.dirty\"\r\n (click)=\"handleDialogButtonClick(false)\">\r\n Sauvegarder\r\n </button>\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\">\r\n Annuler\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","import { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\n/** Réponse de l'utilisateur à la proposition d'enregistrer l'ordre des colonnes. */\r\nexport interface SaveViewPromptResult {\r\n /** true : enregistrer l'ordre des colonnes. */\r\n save: boolean;\r\n /** Libellé de la nouvelle vue (vue par défaut affichée). */\r\n label: string;\r\n}\r\n\r\n/**\r\n * Proposition d'enregistrer l'ordre des colonnes déplacées dans une grille : dans une nouvelle vue\r\n * (libellé à saisir) quand la vue par défaut est affichée, sinon dans la vue de l'utilisateur.\r\n * Contenu de la fenêtre standard des popups (DialogComponent : en-tête, boutons « Enregistrer » et\r\n * « Ne pas enregistrer »), ouverte par PpFacadeService ; le libellé saisi est le résultat (label).\r\n */\r\n@Component({\r\n selector: 'alg-save-view-prompt',\r\n standalone: true,\r\n imports: [CommonModule, FormsModule],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n template: `\r\n <div class=\"save-view-prompt\">\r\n <p *ngIf=\"isNewView && fromButton\">\r\n La vue par défaut de « {{ title }} » est en lecture seule.\r\n Enregistrer cette disposition dans une nouvelle vue personnalisée ?\r\n </p>\r\n <p *ngIf=\"isNewView && !fromButton\">\r\n Vous avez déplacé des colonnes de la vue par défaut de « {{ title }} ».\r\n Enregistrer cette disposition dans une nouvelle vue personnalisée ?\r\n </p>\r\n <p *ngIf=\"!isNewView\">\r\n Vous avez déplacé des colonnes de « {{ title }} ».\r\n Enregistrer cette disposition dans la vue « {{ viewLabel }} » ?\r\n </p>\r\n <div *ngIf=\"isNewView\" class=\"save-view-field\">\r\n <label for=\"save-view-label\">Nom de la vue</label>\r\n <input id=\"save-view-label\" class=\"form-control\" type=\"text\" maxlength=\"100\" [(ngModel)]=\"label\" />\r\n </div>\r\n </div>\r\n `,\r\n styles: [`\r\n .save-view-prompt { padding: 12px 16px; }\r\n .save-view-prompt p { margin: 0 0 12px; }\r\n .save-view-field { display: flex; flex-direction: column; gap: 4px; }\r\n .save-view-field label { margin: 0; font-weight: 600; }\r\n `],\r\n})\r\nexport class SaveViewPromptComponent {\r\n /** Titre de l'écran. */\r\n title = '';\r\n /** true : la vue par défaut est affichée, l'ordre est enregistré dans une nouvelle vue. */\r\n isNewView = true;\r\n /** Vue de l'utilisateur affichée (enregistrement dans cette vue). */\r\n viewLabel = '';\r\n /** true : ouverte par le bouton d'enregistrement de la grille, et non à l'abandon de l'écran. */\r\n fromButton = false;\r\n /** Nom de la nouvelle vue : résultat de la fenêtre (propertyCallback). */\r\n label = 'Ma vue';\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable, of } from 'rxjs';\r\nimport { catchError, map } from 'rxjs/operators';\r\n\r\nimport { PresentationProfileItemDataService } from '@dflat-core/web/meta-data';\r\nimport { PresentationContext, PresentationProfileFilterViewModel, PresentationProfileItem, PresentationProfilePurposes, PresentationProfileScopes } from '@dflat-core/web/meta-model';\r\n\r\nexport interface PpResolverConfig {\r\n metaEntityKey: string;\r\n purpose?: number;\r\n supplierId?: number | null;\r\n roleId?: number | null;\r\n}\r\n\r\n/** Effective profile for a grid — resolved entirely on the backend. */\r\nexport interface PpEffectiveProfile {\r\n /** Resolved, ordered columns ready to apply to the grid. */\r\n columns: PresentationProfileItem[];\r\n /** True when the user has a saved personal profile. */\r\n hasUserProfile: boolean;\r\n /** Id of the user's profile — useful to pass back on save. */\r\n userProfileId: number | null;\r\n}\r\n\r\n/**\r\n * Resolves the effective Presentation Profile for a grid in a SINGLE backend call\r\n * (PresentationProfileItemController.GetPresentationContext). All merging/resolution happens\r\n * server-side; the client returns ctx.Resolved as-is.\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class PresentationProfileResolver {\r\n constructor(private readonly itemData: PresentationProfileItemDataService) {}\r\n\r\n resolve(config: PpResolverConfig): Observable<PpEffectiveProfile> {\r\n return this.itemData.getPresentationContext(this.toFilter(config)).pipe(\r\n map((ctx: PresentationContext) => ({\r\n columns: ctx.Resolved ?? [],\r\n hasUserProfile: !!ctx.UserProfile?.Id,\r\n userProfileId: ctx.UserProfile?.Id ?? null,\r\n } as PpEffectiveProfile)),\r\n catchError(() => of({ columns: [], hasUserProfile: false, userProfileId: null } as PpEffectiveProfile)),\r\n );\r\n }\r\n\r\n /** Loads the whole context (catalog + default + user + resolved) — used by the selection modal. */\r\n loadContext(config: PpResolverConfig): Observable<PresentationContext> {\r\n return this.itemData.getPresentationContext(this.toFilter(config));\r\n }\r\n\r\n private toFilter(config: PpResolverConfig): PresentationProfileFilterViewModel {\r\n // Portée Source de données retirée (Découpage modulaire System/Meta/Identity, B.4) : supplierId est ignoré.\r\n const scopeType = config.roleId != null ? PresentationProfileScopes.Role : undefined;\r\n return {\r\n MetaEntityKey: config.metaEntityKey,\r\n PresentationProfilePurpose: config.purpose ?? PresentationProfilePurposes.Grid,\r\n PresentationProfileScope: scopeType,\r\n RoleId: config.roleId ?? undefined,\r\n } as PresentationProfileFilterViewModel;\r\n }\r\n}\r\n","/** Colonne proposée pour un emplacement de la carte. */\r\nexport interface CardColumnOption {\r\n key: string;\r\n label: string;\r\n}\r\n\r\n/** Emplacements d'une carte, dans l'ordre d'EnumCardSlots. */\r\nexport const CardSlotNames = ['title', 'text', 'detail', 'badge', 'image'] as const;\r\nexport type CardSlotName = typeof CardSlotNames[number];\r\n\r\n/** Clé de l'image par défaut de l'élément (EnumColumnSourceTypes.EntityImage). */\r\nexport const EntityImageKey = '@EntityImage';\r\n","import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';\r\nimport { FilterEditorColumn, FilterEditorSort, parseViewQuery, toViewQuery, ViewFilterGroup } from '@dflat-core/web/core-ux';\r\nimport { Injectable, OnDestroy } from '@angular/core';\r\nimport { Observable, Subject, forkJoin, of } from 'rxjs';\r\nimport { catchError, map, takeUntil } from 'rxjs/operators';\r\n\r\nimport { PresentationProfileDataService, PresentationProfileItemDataService } from '@dflat-core/web/meta-data';\r\nimport { PresentationProfile, PresentationProfileItem, PresentationProfilePurposes, PresentationProfileScopes, PresentationViews } from '@dflat-core/web/meta-model';\r\nimport { CardColumnOption, CardSlotName, CardSlotNames, EntityImageKey } from './card-slots';\r\nimport { PresentationProfileResolver } from './presentation-profile-resolver.service';\r\nimport { PpConfig, PpResult, PresentationProfileTransformer } from './presentation-profile-transformer';\r\n\r\n/** Vue personnalisée proposée à gauche de la fenêtre des colonnes. */\r\nexport interface PpView {\r\n id: number;\r\n label: string;\r\n isDefault: boolean;\r\n /** Vue affichée par la grille. */\r\n isCurrent: boolean;\r\n /** En-tête de la vue, tel que lu par GetUserViews. */\r\n profile: PresentationProfile;\r\n}\r\n\r\n/**\r\n * Fenêtre « Sélection des colonnes » : à gauche les vues personnalisées de la table (vue par défaut,\r\n * puis celles de l'utilisateur), qu'on choisit, renomme, duplique ou supprime ; au milieu toutes les\r\n * colonnes disponibles, attributs personnalisés compris ; à droite les colonnes de la vue choisie, dans\r\n * leur ordre. « Appliquer » enregistre les colonnes dans la vue choisie (une vue par défaut en lecture\r\n * seule donne une nouvelle vue de l'utilisateur) et l'affiche dans la grille.\r\n */\r\n@Injectable()\r\nexport class PresentationProfileService implements OnDestroy {\r\n constructor(\r\n private readonly data: PresentationProfileDataService,\r\n private readonly itemData: PresentationProfileItemDataService,\r\n private readonly resolver: PresentationProfileResolver,\r\n ) {}\r\n\r\n config!: PpConfig;\r\n isLoading = false;\r\n isSaving = false;\r\n\r\n /** Colonnes disponibles (catalogue de la table, attributs compris). */\r\n allColumns: PresentationProfileItem[] = [];\r\n filteredColumns: PresentationProfileItem[] = [];\r\n searchText = '';\r\n naturalLabelByKey = new Map<string, string>();\r\n\r\n /** Vues de la table, et droit de modifier la vue par défaut. */\r\n views: PpView[] = [];\r\n canEditDefault = false;\r\n /** Vue choisie à gauche, dont les colonnes sont à droite. */\r\n selectedView: PpView | null = null;\r\n /** Vue en cours de renommage, et libellé saisi. */\r\n renamingId: number | null = null;\r\n renameLabel = '';\r\n /** Message d'une action sur les vues (erreur du serveur). */\r\n message: string | null = null;\r\n\r\n loadedItemIds: string[] = [];\r\n orderedSelection: PresentationProfileItem[] = [];\r\n selectedIds: Set<string> = new Set();\r\n\r\n // ---------- Filtres et tri de la vue choisie ----------\r\n\r\n tab: 'columns' | 'filters' | 'sort' = 'columns';\r\n /** Filtre et tri de la vue choisie, modifiés par les onglets « Filtres » et « Tri ». */\r\n viewFilter: ViewFilterGroup = { Logic: 'and', Conditions: [], Groups: [] };\r\n viewSort: FilterEditorSort[] = [];\r\n /** Colonnes proposées au filtre : catalogue de la table, avec le type et les valeurs connus de la grille. */\r\n filterColumns: FilterEditorColumn[] = [];\r\n /** Tri et filtre de la vue choisie à son chargement (repère des changements). */\r\n private loadedQueries = { sort: '', filter: '' };\r\n\r\n private currentQueries(): { sort: string, filter: string } {\r\n const sort = this.viewSort.filter(s => !!s.property);\r\n return { sort: sort.length ? JSON.stringify(sort) : '', filter: toViewQuery(this.viewFilter) ?? '' };\r\n }\r\n\r\n get hasQueryChanges(): boolean {\r\n const current = this.currentQueries();\r\n return current.sort !== this.loadedQueries.sort || current.filter !== this.loadedQueries.filter;\r\n }\r\n\r\n /** Tri et filtre de la vue choisie (en-tête lu par GetUserViews). */\r\n private loadQueries(view: PpView | null): void {\r\n let sort: FilterEditorSort[] = [];\r\n try {\r\n const levels = view?.profile?.SortQuery ? JSON.parse(view.profile.SortQuery) : [];\r\n sort = Array.isArray(levels) ? levels.filter(l => !!l?.property).map(l => ({ property: String(l.property), direction: l.direction === 'desc' ? 'desc' : 'asc' })) : [];\r\n }\r\n catch {\r\n sort = [];\r\n }\r\n this.viewSort = sort;\r\n this.viewFilter = parseViewQuery(view?.profile?.FilterQuery) ?? { Logic: 'and', Conditions: [], Groups: [] };\r\n this.viewFilter.Groups = this.viewFilter.Groups ?? [];\r\n this.loadedQueries = this.currentQueries();\r\n }\r\n\r\n /** Colonnes du filtre : type d'après l'affichage du catalogue, à défaut celui de la grille. */\r\n private buildFilterColumns(catalog: PresentationProfileItem[]): void {\r\n const fromGrid = new Map((this.config.filterColumns ?? []).map(c => [c.key, c]));\r\n const typeOf = (displayType: number | null | undefined): FilterEditorColumn['type'] =>\r\n displayType === 2 || displayType === 3 ? 'date'\r\n : displayType === 1 || displayType === 4 || displayType === 5 || displayType === 12 ? 'number'\r\n : displayType === 6 ? 'bool' : 'text';\r\n this.filterColumns = catalog\r\n .map(i => fromGrid.get(i.ColumnKey!) ?? { key: i.ColumnKey!, label: i.Label || i.ColumnKey!, type: typeOf(i.ColumnDisplayType) })\r\n .sort((a, b) => a.label.localeCompare(b.label, 'fr', { sensitivity: 'base' }));\r\n }\r\n\r\n // ---------- Carte de la vue choisie (onglet « Carte ») ----------\r\n\r\n /** Emplacements de la carte, dans l'ordre d'EnumCardSlots. */\r\n readonly cardSlotList: { name: CardSlotName, label: string }[] = [\r\n { name: 'title', label: 'Titre' },\r\n { name: 'text', label: 'Texte' },\r\n { name: 'detail', label: 'Détail' },\r\n { name: 'badge', label: 'Badge' },\r\n { name: 'image', label: 'Image' },\r\n ];\r\n /** Colonnes proposées aux emplacements : libellé suivi du nom technique, par ordre alphabétique. */\r\n cardOptions: CardColumnOption[] = [];\r\n /** Images proposées : image de l'élément, colonnes image et icônes des types énumérés. */\r\n cardImageOptions: CardColumnOption[] = [];\r\n /** Colonne de chaque emplacement de la carte de la vue choisie (vide : rien). */\r\n cardSlots: Record<CardSlotName, string> = PresentationProfileService.emptySlots();\r\n /** Emplacements à leur chargement (repère des changements). */\r\n private loadedCardSlots = '';\r\n /** La vue choisie affiche la carte par défaut de la table (pas de carte propre). */\r\n usesDefaultCard = true;\r\n /** Libellé de la carte affichée par la vue choisie. */\r\n cardLabel = '';\r\n\r\n get hasCardChanges(): boolean {\r\n return JSON.stringify(this.cardSlots) !== this.loadedCardSlots;\r\n }\r\n\r\n private static emptySlots(): Record<CardSlotName, string> {\r\n return { title: '', text: '', detail: '', badge: '', image: '' };\r\n }\r\n\r\n /** Colonnes proposées aux emplacements de la carte, d'après le catalogue de la table. */\r\n private buildCardOptions(catalog: PresentationProfileItem[]): void {\r\n const byLabel = (a: CardColumnOption, b: CardColumnOption) => a.label.localeCompare(b.label, 'fr', { sensitivity: 'base' });\r\n // Libellé suivi du nom technique : des colonnes jointes portent le même libellé (« Libellé », « Nom »).\r\n const optionLabel = (i: PresentationProfileItem) => i.Label && i.Label !== i.ColumnKey ? `${i.Label} (${i.ColumnKey})` : i.ColumnKey!;\r\n this.cardOptions = catalog.map(i => ({ key: i.ColumnKey!, label: optionLabel(i) })).sort(byLabel);\r\n const imageTypes = [7, 8, 9, 10];\r\n this.cardImageOptions = [{ key: EntityImageKey, label: \"Image de l'élément\" },\r\n ...catalog.filter(i => imageTypes.includes(i.ColumnDisplayType ?? -1)).map(i => ({ key: i.ColumnKey!, label: optionLabel(i) })).sort(byLabel)];\r\n }\r\n\r\n /** Carte de la vue choisie : la sienne, à défaut la carte par défaut de la table. */\r\n private loadCard(view: PpView): void {\r\n this.cardSlots = PresentationProfileService.emptySlots();\r\n this.loadedCardSlots = JSON.stringify(this.cardSlots);\r\n this.usesDefaultCard = true;\r\n this.cardLabel = '';\r\n if (this.purpose !== PresentationProfilePurposes.Grid)\r\n return;\r\n this.data.getCardView({ MetaEntityKey: this.config.metaEntityKey, PresentationProfileId: view.id }).pipe(\r\n catchError(() => of(null)),\r\n takeUntil(this.destroy$),\r\n ).subscribe(result => {\r\n if (this.selectedView?.id !== view.id)\r\n return;\r\n const card = result?.Card;\r\n const slots = PresentationProfileService.emptySlots();\r\n for (const item of card?.Items ?? []) {\r\n const slot = CardSlotNames[item.CardSlot ?? -1];\r\n if (slot)\r\n slots[slot] = item.ColumnSourceType === 3 ? EntityImageKey : item.ColumnKey ?? '';\r\n }\r\n this.cardSlots = slots;\r\n this.loadedCardSlots = JSON.stringify(slots);\r\n this.usesDefaultCard = !card || card.PresentationProfileScope === PresentationProfileScopes.Default;\r\n this.cardLabel = card?.Label ?? '';\r\n });\r\n }\r\n\r\n /** « Carte par défaut » : plus de carte propre, la vue affichera la carte par défaut de la table. */\r\n resetCard(): void {\r\n this.cardSlots = PresentationProfileService.emptySlots();\r\n }\r\n\r\n /** Colonnes de la carte, avec leur emplacement. */\r\n private cardItems(): PresentationProfileItem[] {\r\n const byKey = new Map(this.allColumns.map(i => [i.ColumnKey, i]));\r\n const items: PresentationProfileItem[] = [];\r\n CardSlotNames.forEach((slot, index) => {\r\n const key = this.cardSlots[slot];\r\n if (!key)\r\n return;\r\n if (key === EntityImageKey)\r\n items.push({ ColumnKey: EntityImageKey, Label: \"Image de l'élément\", ColumnSourceType: 3, CardSlot: index } as PresentationProfileItem);\r\n else if (byKey.has(key))\r\n items.push({ ...byKey.get(key)!, Id: undefined, PresentationProfileId: undefined, CardSlot: index } as PresentationProfileItem);\r\n });\r\n return items;\r\n }\r\n\r\n /**\r\n * Carte modifiée : enregistrée pour la vue Grille donnée (une vue par défaut en lecture seule est\r\n * copiée par le serveur en une vue personnelle). Renvoie la vue Grille à afficher.\r\n */\r\n private saveCard(gridViewId: number | null): Observable<number | null> {\r\n if (gridViewId == null || !this.hasCardChanges || this.purpose !== PresentationProfilePurposes.Grid)\r\n return of(gridViewId);\r\n return this.data.saveGridCard({\r\n GridViewId: gridViewId,\r\n Profile: { MetaEntityKey: this.config.metaEntityKey, PresentationProfilePurpose: PresentationProfilePurposes.Card, Items: this.cardItems() } as PresentationProfile,\r\n }).pipe(\r\n map(res => {\r\n if (res?.Success === false)\r\n throw new Error(res.ErrorMessage ?? 'L\\'enregistrement de la carte a échoué');\r\n return res?.Id ?? gridViewId;\r\n }),\r\n );\r\n }\r\n\r\n readonly confirmed$ = new Subject<PpResult>();\r\n readonly cancelled$ = new Subject<void>();\r\n private destroy$ = new Subject<void>();\r\n\r\n private get purpose(): number { return this.config?.purpose ?? PresentationProfilePurposes.Grid; }\r\n\r\n get selectedCount(): number { return this.orderedSelection.length; }\r\n get isEmbedded(): boolean { return !!this.config?.embedded; }\r\n /** Vue choisie en lecture seule : vue par défaut, hors administrateur. */\r\n get isReadOnly(): boolean { return !!this.selectedView?.isDefault && !this.canEditDefault; }\r\n /** Vue modifiée dans l'éditeur standard (libellé, affichage d'une colonne...) : à enregistrer. */\r\n editedInEditor = false;\r\n\r\n get hasChanges(): boolean {\r\n const cur = this.orderedSelection.map(c => c.ColumnKey ?? '');\r\n if (this.editedInEditor || this.hasQueryChanges) return true;\r\n if (!this.loadedItemIds.length) return cur.length > 0;\r\n return cur.length !== this.loadedItemIds.length || cur.some((id, i) => id !== this.loadedItemIds[i]);\r\n }\r\n get allVisibleSelected(): boolean {\r\n return this.filteredColumns.length > 0 && this.filteredColumns.every(c => this.selectedIds.has(c.ColumnKey ?? ''));\r\n }\r\n get someVisibleSelected(): boolean {\r\n return this.filteredColumns.some(c => this.selectedIds.has(c.ColumnKey ?? '')) && !this.allVisibleSelected;\r\n }\r\n\r\n setup(config: PpConfig): void {\r\n this.config = config;\r\n this.tab = config?.tab ?? 'columns';\r\n this.loadData();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.destroy$.next();\r\n this.destroy$.complete();\r\n }\r\n\r\n getCatalogLabel(item: PresentationProfileItem): string {\r\n return this.naturalLabelByKey.get(item.ColumnKey ?? '') ?? item.ColumnKey ?? '';\r\n }\r\n\r\n /** Attribut personnalisé (et non colonne de la table ou de la vue). */\r\n isAttribute(item: PresentationProfileItem): boolean {\r\n return (item.ColumnSourceType ?? 0) === 2;\r\n }\r\n\r\n // ---------- Chargement ----------\r\n\r\n private loadData(): void {\r\n this.isLoading = true;\r\n forkJoin({\r\n ctx: this.resolver.loadContext({\r\n metaEntityKey: this.config.metaEntityKey,\r\n purpose: this.purpose,\r\n supplierId: this.config.supplierId,\r\n roleId: this.config.roleId,\r\n }).pipe(catchError(() => of(null))),\r\n views: this.loadViews(),\r\n }).pipe(takeUntil(this.destroy$)).subscribe(({ ctx, views }) => {\r\n const catalog = (ctx?.Catalog ?? []).filter(i => !!i.ColumnKey);\r\n this.naturalLabelByKey = new Map(catalog.map(i => [i.ColumnKey!, i.Label ?? i.ColumnKey!]));\r\n this.allColumns = catalog;\r\n this.buildFilterColumns(catalog);\r\n this.buildCardOptions(catalog);\r\n this.applyViews(views);\r\n this.applyFilter();\r\n\r\n const current = this.views.find(v => v.id === this.config.viewId) ?? this.views.find(v => v.isCurrent) ?? this.views[0] ?? null;\r\n if (current)\r\n this.selectView(current);\r\n else {\r\n // Sans vue : colonnes de la table, rien d'enregistré.\r\n this.setSelection(catalog.filter(c => !this.isAttribute(c)), []);\r\n this.isLoading = false;\r\n }\r\n });\r\n }\r\n\r\n private loadViews(): Observable<PresentationViews | null> {\r\n return this.data.getUserViews({ MetaEntityKey: this.config.metaEntityKey, PresentationProfilePurpose: this.purpose })\r\n .pipe(catchError(() => of(null)));\r\n }\r\n\r\n private applyViews(result: PresentationViews | null): void {\r\n this.canEditDefault = !!result?.CanEditDefault;\r\n this.views = (result?.Views ?? []).filter(v => v.Id != null).map(v => ({\r\n id: v.Id!,\r\n label: v.Label ?? '',\r\n isDefault: v.PresentationProfileScope === PresentationProfileScopes.Default,\r\n isCurrent: v.Id === result?.SelectedId,\r\n profile: v,\r\n }));\r\n }\r\n\r\n /** Relit les vues, puis choisit la vue donnée (à défaut la vue affichée). */\r\n private reloadViews(selectId?: number | null): void {\r\n this.loadViews().pipe(takeUntil(this.destroy$)).subscribe(result => {\r\n this.applyViews(result);\r\n const view = this.views.find(v => v.id === selectId) ?? this.views.find(v => v.isCurrent) ?? this.views[0] ?? null;\r\n if (view) this.selectView(view);\r\n });\r\n }\r\n\r\n /** Choisit une vue : ses colonnes, dans leur ordre, passent à droite. */\r\n selectView(view: PpView): void {\r\n if (this.renamingId != null && this.renamingId !== view.id)\r\n this.cancelRename();\r\n this.selectedView = view;\r\n this.editedInEditor = false;\r\n this.message = null;\r\n this.isLoading = true;\r\n this.loadQueries(view);\r\n this.loadCard(view);\r\n this.itemData.getPresentationProfileItems(view.id).pipe(\r\n map(items => items ?? []),\r\n catchError(() => of([] as PresentationProfileItem[])),\r\n takeUntil(this.destroy$),\r\n ).subscribe(items => {\r\n const catalogByKey = new Map(this.allColumns.map(i => [i.ColumnKey!, i]));\r\n const columns = [...items]\r\n .filter(i => !!i.ColumnKey && catalogByKey.has(i.ColumnKey))\r\n .sort((a, b) => (a.OrderNumber ?? 0) - (b.OrderNumber ?? 0))\r\n .map(i => ({ ...catalogByKey.get(i.ColumnKey!), ...i } as PresentationProfileItem));\r\n this.setSelection(columns, columns.map(c => c.ColumnKey!));\r\n this.isLoading = false;\r\n });\r\n }\r\n\r\n private setSelection(cols: PresentationProfileItem[], loadedIds: string[]): void {\r\n this.orderedSelection = [...cols];\r\n this.selectedIds = new Set(cols.map(c => c.ColumnKey ?? ''));\r\n this.loadedItemIds = loadedIds;\r\n }\r\n\r\n // ---------- Actions sur les vues ----------\r\n\r\n /**\r\n * « + » : nouvelle vue de l'utilisateur, copie de la vue choisie (à défaut de la vue par défaut), qui\r\n * devient la vue choisie. Copie de la vue affichée par la grille : avec le tri et le filtre en cours\r\n * dans la grille (tri, FilterPanel et filtre additionnel).\r\n */\r\n createView(): void {\r\n const source = this.selectedView ?? this.views.find(v => v.isDefault) ?? null;\r\n if (!source)\r\n return;\r\n const queries = source.isCurrent ? this.config.gridQueries : undefined;\r\n this.runViewAction(this.data.duplicateView({\r\n PresentationProfileId: source.id,\r\n Label: PresentationProfileService.NewViewLabel,\r\n ...(queries ? { SortQuery: queries.sortQuery, FilterQuery: queries.filterQuery } : {}),\r\n }), id => id);\r\n }\r\n\r\n /** Libellé proposé pour une nouvelle vue (numéroté par le serveur s'il est pris). */\r\n private static readonly NewViewLabel = 'Nouvelle vue';\r\n\r\n /** Duplique la vue en une nouvelle vue de l'utilisateur, qui devient la vue choisie. */\r\n duplicateView(view: PpView): void {\r\n this.runViewAction(this.data.duplicateView({ PresentationProfileId: view.id }), id => id);\r\n }\r\n\r\n /** Supprime une vue de l'utilisateur ; la vue choisie redevient la vue affichée. */\r\n deleteView(view: PpView): void {\r\n if (view.isDefault) return;\r\n this.runViewAction(this.data.deleteView({ PresentationProfileId: view.id }),\r\n () => this.selectedView?.id === view.id ? null : this.selectedView?.id ?? null);\r\n }\r\n\r\n startRename(view: PpView): void {\r\n this.renamingId = view.id;\r\n this.renameLabel = view.label;\r\n }\r\n\r\n cancelRename(): void {\r\n this.renamingId = null;\r\n this.renameLabel = '';\r\n }\r\n\r\n /** Renomme la vue ; ses colonnes et la vue affichée ne changent pas. */\r\n confirmRename(view: PpView): void {\r\n const label = this.renameLabel?.trim();\r\n if (!label || label === view.label) { this.cancelRename(); return; }\r\n this.cancelRename();\r\n this.runViewAction(this.data.renameView({ PresentationProfileId: view.id, Label: label }), () => view.id);\r\n }\r\n\r\n /** Peut-on renommer ou supprimer la vue (vue de l'utilisateur, ou administrateur) ? */\r\n canEdit(view: PpView): boolean {\r\n return !view.isDefault || this.canEditDefault;\r\n }\r\n\r\n private runViewAction(action: Observable<{ Success?: boolean; Id?: number; ErrorMessage?: string } | null>, nextId: (id: number | null) => number | null): void {\r\n this.message = null;\r\n action.pipe(catchError(() => of(null)), takeUntil(this.destroy$)).subscribe(res => {\r\n if (res?.Success === false || res == null)\r\n this.message = res?.ErrorMessage ?? 'L\\'action sur la vue a échoué';\r\n this.reloadViews(nextId(res?.Id ?? null));\r\n });\r\n }\r\n\r\n // ---------- Colonnes ----------\r\n\r\n onSearch(): void { this.applyFilter(); }\r\n\r\n private applyFilter(): void {\r\n let base = this.allColumns;\r\n if (this.searchText?.trim()) {\r\n const q = this.searchText.toLowerCase();\r\n base = base.filter(c =>\r\n (c.Label ?? c.ColumnKey ?? '').toLowerCase().includes(q) ||\r\n (c.ColumnKey ?? '').toLowerCase().includes(q)\r\n );\r\n }\r\n this.filteredColumns = [...base];\r\n }\r\n\r\n isSelected(col: PresentationProfileItem): boolean { return this.selectedIds.has(col.ColumnKey ?? ''); }\r\n\r\n toggleItem(col: PresentationProfileItem): void {\r\n const key = col.ColumnKey ?? '';\r\n if (this.selectedIds.has(key)) {\r\n this.selectedIds.delete(key);\r\n this.orderedSelection = this.orderedSelection.filter(c => c.ColumnKey !== key);\r\n } else {\r\n this.selectedIds.add(key);\r\n this.orderedSelection = [...this.orderedSelection, { ...col, Label: null }];\r\n }\r\n }\r\n\r\n toggleAll(): void {\r\n if (this.allVisibleSelected) {\r\n this.filteredColumns.forEach(c => this.selectedIds.delete(c.ColumnKey ?? ''));\r\n const visKeys = new Set(this.filteredColumns.map(c => c.ColumnKey ?? ''));\r\n this.orderedSelection = this.orderedSelection.filter(c => !visKeys.has(c.ColumnKey ?? ''));\r\n } else {\r\n const toAdd = this.filteredColumns.filter(c => !this.selectedIds.has(c.ColumnKey ?? ''));\r\n toAdd.forEach(c => this.selectedIds.add(c.ColumnKey ?? ''));\r\n this.orderedSelection = [...this.orderedSelection, ...toAdd.map(c => ({ ...c, Label: null as string | null | undefined }))];\r\n }\r\n }\r\n\r\n removeFromSelection(col: PresentationProfileItem): void {\r\n const key = col.ColumnKey ?? '';\r\n this.selectedIds.delete(key);\r\n this.orderedSelection = this.orderedSelection.filter(c => c.ColumnKey !== key);\r\n }\r\n\r\n onDrop(event: CdkDragDrop<PresentationProfileItem[]>): void {\r\n if (event.previousIndex === event.currentIndex) return;\r\n moveItemInArray(this.orderedSelection, event.previousIndex, event.currentIndex);\r\n }\r\n\r\n // ---------- Appliquer ----------\r\n\r\n /**\r\n * « Appliquer » : les colonnes sont enregistrées dans la vue choisie si elles ont changé (vue de\r\n * l'utilisateur, ou vue par défaut pour un administrateur ; sinon une nouvelle vue de l'utilisateur),\r\n * puis la vue est affichée dans la grille.\r\n */\r\n confirm(): void { this.performSave(); }\r\n\r\n /**\r\n * Reprend la vue modifiée dans l'éditeur standard (partie droite de la fenêtre) : libellé, colonnes\r\n * (ordre, libellés, affichage), tri et filtre ; « Appliquer » l'enregistre ensuite comme avant.\r\n * @param edited Vue telle que modifiée dans l'éditeur.\r\n */\r\n applyEdited(edited: PresentationProfile): void {\r\n const view = this.selectedView;\r\n if (!view || !edited)\r\n return;\r\n this.editedInEditor = true;\r\n if (edited.Label)\r\n view.profile = { ...view.profile, Label: edited.Label };\r\n if (edited.Items) {\r\n const catalogByKey = new Map(this.allColumns.map(i => [i.ColumnKey!, i]));\r\n const columns = [...edited.Items]\r\n .filter(i => !!i.ColumnKey)\r\n .sort((a, b) => (a.OrderNumber ?? 0) - (b.OrderNumber ?? 0))\r\n .map(i => ({ ...(catalogByKey.get(i.ColumnKey!) ?? {}), ...i } as PresentationProfileItem));\r\n this.orderedSelection = columns;\r\n this.selectedIds = new Set(columns.map(c => c.ColumnKey ?? ''));\r\n }\r\n if (edited.SortQuery !== undefined || edited.FilterQuery !== undefined)\r\n this.loadQueries({ ...view, profile: { ...view.profile, SortQuery: edited.SortQuery ?? view.profile.SortQuery, FilterQuery: edited.FilterQuery ?? view.profile.FilterQuery } });\r\n }\r\n\r\n save(): void { this.performSave(); }\r\n\r\n cancel(): void { this.cancelled$.next(); }\r\n\r\n private performSave(): void {\r\n const view = this.selectedView;\r\n const result: PpResult = { purpose: this.purpose, profileId: view?.id ?? null, columns: [...this.orderedSelection] };\r\n this.isSaving = true;\r\n this.message = null;\r\n\r\n const failed = (message?: string) => {\r\n this.isSaving = false;\r\n this.message = message ?? 'L\\'enregistrement de la vue a échoué';\r\n };\r\n // Vue enregistrée : sa carte, si elle a changé, puis la vue est affichée.\r\n const done = (id: number | null) => this.saveCard(id).subscribe({\r\n next: gridId => {\r\n this.isSaving = false;\r\n result.profileId = gridId;\r\n this.confirmed$.next(result);\r\n },\r\n error: err => failed(err?.message),\r\n });\r\n\r\n // Sans changement : la vue choisie est seulement affichée.\r\n if (view && !this.hasChanges) {\r\n this.data.selectView({\r\n MetaEntityKey: this.config.metaEntityKey,\r\n PresentationProfilePurpose: this.purpose,\r\n PresentationProfileId: view.isDefault ? undefined : view.id,\r\n }).pipe(catchError(() => of(null))).subscribe(() => done(view.id));\r\n return;\r\n }\r\n\r\n // Vue par défaut modifiée par un administrateur : enregistrée telle quelle, puis affichée.\r\n const queries = this.currentQueries();\r\n if (view?.isDefault && this.canEditDefault) {\r\n const ctx = PresentationProfileTransformer.toAdminConfigContext(this.orderedSelection,\r\n { ...view.profile, SortQuery: queries.sort, FilterQuery: queries.filter } as PresentationProfile);\r\n this.data.savePresentationProfile(ctx).subscribe({\r\n next: res => res?.Success === false ? failed(res.ErrorMessage) : this.data.selectView({\r\n MetaEntityKey: this.config.metaEntityKey, PresentationProfilePurpose: this.purpose,\r\n }).pipe(catchError(() => of(null))).subscribe(() => done(view.id)),\r\n error: () => failed(),\r\n });\r\n return;\r\n }\r\n\r\n // Vue de l'utilisateur, ou nouvelle vue (vue par défaut en lecture seule) : enregistrée et affichée par le serveur.\r\n const own = view && !view.isDefault ? view.profile : null;\r\n const ctx = PresentationProfileTransformer.toUserPreferenceContext(\r\n this.orderedSelection, this.config.metaEntityKey, this.purpose, null,\r\n { ...(own ? { Id: own.Id, Label: own.Label } : {}), SortQuery: queries.sort, FilterQuery: queries.filter } as PresentationProfile,\r\n );\r\n this.data.savePresentationProfile(ctx).subscribe({\r\n next: res => res?.Success === false ? failed(res.ErrorMessage) : done(res?.Id ?? null),\r\n error: () => failed(),\r\n });\r\n }\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport {\r\n ChangeDetectionStrategy, Component, ComponentRef, DoCheck, EventEmitter, Input, OnDestroy, OnInit, Output, TemplateRef, ViewChild,\r\n ViewContainerRef,\r\n} from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { PresentationProfile, PresentationProfilePurposes } from '@dflat-core/web/meta-model';\r\nimport { Guid } from 'guid-typescript';\r\nimport { Subject } from 'rxjs';\r\nimport { takeUntil } from 'rxjs/operators';\r\n\r\nimport { PresentationProfileEditorComponent } from '../editor-components/presentation-profile-editor.component';\r\nimport { PpConfig, PpResult } from './presentation-profile-transformer';\r\nimport { PresentationProfileService } from './presentation-profile.service';\r\n\r\n/**\r\n * Fenêtre des vues personnalisées d'une grille : à gauche les vues de la table (vue par défaut, vues de\r\n * l'utilisateur : nouvelle vue « + », renommer, dupliquer, supprimer), à droite l'éditeur standard de la\r\n * vue choisie, celui de l'écran « Vues personnalisées » (onglets Colonnes, Tri et Filtres), sur une façade\r\n * propre à la fenêtre, avec un onglet « Carte » : la carte de la vue, à défaut la carte par défaut de la\r\n * table. « Appliquer » reprend la vue modifiée dans l'éditeur, l'enregistre avec sa carte (une vue par\r\n * défaut en lecture seule donne une nouvelle vue de l'utilisateur) et l'affiche dans la grille.\r\n */\r\n@Component({\r\n selector: 'alg-presentation-profile',\r\n standalone: true,\r\n imports: [CommonModule, FormsModule, DragDropModule],\r\n providers: [PresentationProfileService],\r\n templateUrl: './presentation-profile.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n styleUrls: ['./presentation-profile.component.scss'],\r\n})\r\nexport class PresentationProfileComponent implements OnInit, DoCheck, OnDestroy {\r\n @Input() config!: PpConfig;\r\n @Output() readonly confirmed = new EventEmitter<PpResult>();\r\n @Output() readonly cancelled = new EventEmitter<void>();\r\n\r\n /** Emplacement de l'éditeur standard de la vue choisie. */\r\n @ViewChild('editorHost', { read: ViewContainerRef, static: true }) editorHost!: ViewContainerRef;\r\n /** Contenu de l'onglet « Carte » de l'éditeur. */\r\n @ViewChild('cardTab', { static: true }) cardTab!: TemplateRef<unknown>;\r\n\r\n /** Façade propre à la fenêtre : la vue choisie y est la ligne sélectionnée de l'éditeur. */\r\n private readonly guid = Guid.create();\r\n private editor?: ComponentRef<PresentationProfileEditorComponent>;\r\n /** Vue donnée à l'éditeur (repère du changement de vue choisie). */\r\n private editedViewId: number | null = null;\r\n\r\n private readonly destroy$ = new Subject<void>();\r\n\r\n constructor(readonly svc: PresentationProfileService, private readonly app: ApplicationService) {}\r\n\r\n /** Façade de l'éditeur de la fenêtre. */\r\n private get facade() {\r\n return this.app.EntityFacadeRegistryService.getFacade<PresentationProfile>(MetaEntityKeys.PresentationProfile, this.guid);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.svc.setup(this.config);\r\n this.svc.confirmed$.pipe(takeUntil(this.destroy$)).subscribe(r => this.confirmed.emit(r));\r\n this.svc.cancelled$.pipe(takeUntil(this.destroy$)).subscribe(() => this.cancelled.emit());\r\n\r\n this.editor = this.editorHost.createComponent(PresentationProfileEditorComponent);\r\n this.editor.setInput('entityKey', MetaEntityKeys.PresentationProfile);\r\n this.editor.setInput('guid', this.guid);\r\n // Pas d'onglet « Propriétés » : la vue se choisit à gauche, sa table est celle de la grille.\r\n this.editor.setInput('showProperties', false);\r\n // Onglet « Carte » : la carte d'une vue Grille.\r\n if ((this.config?.purpose ?? PresentationProfilePurposes.Grid) === PresentationProfilePurposes.Grid)\r\n this.editor.setInput('cardTemplate', this.cardTab);\r\n // Onglet « Filtres » : les filtres de l'écran (FilterPanel) de la grille.\r\n this.editor.setInput('panelFields', this.config?.panelFields ?? []);\r\n }\r\n\r\n /** La vue choisie à gauche change : l'éditeur la reçoit. */\r\n ngDoCheck(): void {\r\n const view = this.svc.selectedView;\r\n const id = view?.id ?? null;\r\n if (id === this.editedViewId)\r\n return;\r\n this.editedViewId = id;\r\n if (view)\r\n this.facade.selection.select([view.profile]);\r\n else\r\n this.facade.selection.clear();\r\n }\r\n\r\n /** « Appliquer » : la vue telle que modifiée dans l'éditeur est enregistrée, puis affichée dans la grille. */\r\n apply(): void {\r\n const view = this.svc.selectedView;\r\n if (view) {\r\n const edited = this.facade.change.getModified(view.id);\r\n if (edited)\r\n this.svc.applyEdited(edited);\r\n }\r\n this.svc.confirm();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.editor?.destroy();\r\n this.destroy$.next();\r\n this.destroy$.complete();\r\n }\r\n}\r\n","<!-- ── Header ─────────────────────────────────────────────────────────────── -->\r\n<div class=\"csl-header\">\r\n <div class=\"csl-header__left\">\r\n <h4 class=\"csl-title\">{{ svc.config?.title || 'Sélection des colonnes' }}</h4>\r\n </div>\r\n @if (!svc.isEmbedded) {\r\n <button class=\"csl-icon-btn\" type=\"button\" (click)=\"svc.cancel()\" aria-label=\"Fermer\">&#x2715;</button>\r\n }\r\n</div>\r\n\r\n<!-- ── Body : vues à gauche, éditeur standard de la vue choisie à droite ── -->\r\n<div class=\"csl-body\">\r\n <div class=\"csl-panels\">\r\n\r\n <!-- ── GAUCHE : vues personnalisées ─────────────────────────────────── -->\r\n <div class=\"csl-panel csl-panel--groups\">\r\n <div class=\"csl-panel__header\">\r\n <span class=\"csl-panel__label\">Vues personnalisées</span>\r\n <span class=\"csl-badge\">{{ svc.views.length }}</span>\r\n <button class=\"gps-profile-btn csl-add-view\" type=\"button\" title=\"Nouvelle vue (copie de la vue choisie)\"\r\n [disabled]=\"svc.isLoading || svc.isSaving\" (click)=\"svc.createView()\">\r\n <i class=\"fa fa-plus\"></i>\r\n </button>\r\n </div>\r\n <ul class=\"csl-group-list csl-scroll\">\r\n @for (view of svc.views; track view.id) {\r\n <li class=\"csl-group-item csl-view-item\"\r\n [class.csl-group-item--active]=\"svc.selectedView?.id === view.id\"\r\n [class.csl-group-item--standard]=\"view.isDefault\"\r\n [class.csl-group-item--profile]=\"!view.isDefault\"\r\n (click)=\"svc.selectView(view)\">\r\n @if (svc.renamingId === view.id) {\r\n <input class=\"gps-rename-input\" type=\"text\" maxlength=\"100\"\r\n [(ngModel)]=\"svc.renameLabel\"\r\n (click)=\"$event.stopPropagation()\"\r\n (keydown.enter)=\"svc.confirmRename(view)\"\r\n (keydown.escape)=\"svc.cancelRename()\">\r\n <div class=\"gps-rename-actions\" (click)=\"$event.stopPropagation()\">\r\n <button class=\"gps-rename-btn gps-rename-btn--ok\" type=\"button\" title=\"Renommer\" (click)=\"svc.confirmRename(view)\">\r\n <i class=\"fa fa-check\"></i>\r\n </button>\r\n <button class=\"gps-rename-btn gps-rename-btn--cancel\" type=\"button\" title=\"Annuler\" (click)=\"svc.cancelRename()\">\r\n <i class=\"fa fa-times\"></i>\r\n </button>\r\n </div>\r\n } @else {\r\n <span class=\"csl-group-item__name\" [title]=\"view.label\">\r\n @if (view.isDefault) { <i class=\"fa fa-lock csl-view-icon\" title=\"Vue par défaut\"></i> }\r\n {{ view.label }}\r\n </span>\r\n <div class=\"csl-group-item__meta\">\r\n @if (view.isCurrent) {\r\n <span class=\"csl-badge csl-badge--primary csl-badge--sm\" title=\"Vue affichée par la grille\">\r\n <i class=\"fa fa-eye\"></i>\r\n </span>\r\n }\r\n <div class=\"gps-profile-actions\" (click)=\"$event.stopPropagation()\">\r\n @if (svc.canEdit(view)) {\r\n <button class=\"gps-profile-btn\" type=\"button\" title=\"Renommer\" (click)=\"svc.startRename(view)\">\r\n <i class=\"fa fa-pencil\"></i>\r\n </button>\r\n }\r\n <button class=\"gps-profile-btn\" type=\"button\" title=\"Dupliquer\" (click)=\"svc.duplicateView(view)\">\r\n <i class=\"fa fa-files-o\"></i>\r\n </button>\r\n @if (!view.isDefault) {\r\n <button class=\"gps-profile-btn gps-profile-btn--danger\" type=\"button\" title=\"Supprimer\" (click)=\"svc.deleteView(view)\">\r\n <i class=\"fa fa-trash-o\"></i>\r\n </button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </li>\r\n }\r\n @empty {\r\n <li class=\"csl-group-section-label\">Aucune vue enregistrée</li>\r\n }\r\n </ul>\r\n @if (svc.isReadOnly) {\r\n <div class=\"csl-view-note\">\r\n <i class=\"fa fa-info-circle\"></i>\r\n Vue par défaut en lecture seule : « Appliquer » crée une nouvelle vue personnelle.\r\n </div>\r\n }\r\n </div>\r\n\r\n <!-- ── DROITE : éditeur standard de la vue choisie (Colonnes, Tri, Filtres, Carte) ── -->\r\n <div class=\"csl-tabbed csl-editor\">\r\n <ng-container #editorHost></ng-container>\r\n </div>\r\n\r\n <!-- Onglet « Carte » de l'éditeur : carte de la vue choisie, à défaut la carte par défaut de la table -->\r\n <ng-template #cardTab>\r\n <div class=\"csl-card\">\r\n <p class=\"csl-card__hint\">\r\n @if (svc.usesDefaultCard) {\r\n Cette vue affiche la carte par défaut de la table : vos choix lui donnent sa propre carte.\r\n } @else {\r\n Carte propre à la vue « {{ svc.selectedView?.label }} ».\r\n }\r\n </p>\r\n @for (slot of svc.cardSlotList; track slot.name) {\r\n <label class=\"csl-card__slot\">\r\n <span>{{ slot.label }}</span>\r\n <select class=\"form-control\" [id]=\"'card-slot-' + slot.name\" [(ngModel)]=\"svc.cardSlots[slot.name]\">\r\n <option value=\"\">{{ slot.name === 'image' ? 'Aucune' : 'Aucun' }}</option>\r\n @for (option of (slot.name === 'image' ? svc.cardImageOptions : svc.cardOptions); track option.key) {\r\n <option [value]=\"option.key\">{{ option.label }}</option>\r\n }\r\n </select>\r\n </label>\r\n }\r\n @if (!svc.usesDefaultCard && !(svc.selectedView?.isDefault)) {\r\n <div class=\"csl-card__actions\">\r\n <button class=\"csl-btn csl-btn--secondary\" type=\"button\" (click)=\"svc.resetCard()\"\r\n title=\"La vue n'a plus de carte propre : elle affiche la carte par défaut de la table\">\r\n Revenir à la carte par défaut\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n\r\n<!-- ── Footer ─────────────────────────────────────────────────────────────── -->\r\n<div class=\"csl-footer\">\r\n <span class=\"csl-footer__count\">\r\n @if (svc.message) {\r\n <span class=\"csl-footer__error\">{{ svc.message }}</span>\r\n } @else if (svc.selectedView) {\r\n Vue « {{ svc.selectedView.label }} » — « Appliquer » l'enregistre et l'affiche dans la grille\r\n }\r\n </span>\r\n <div class=\"csl-footer__actions\">\r\n @if (!svc.isEmbedded) {\r\n <button class=\"csl-btn csl-btn--secondary\" type=\"button\" (click)=\"svc.cancel()\">Annuler</button>\r\n }\r\n <button class=\"csl-btn csl-btn--primary\" type=\"button\"\r\n (click)=\"apply()\" [disabled]=\"!svc.selectedView || svc.isSaving || svc.isLoading\">\r\n @if (svc.isSaving) {\r\n <span class=\"csl-spinner csl-spinner--sm csl-spinner--light\"></span>&nbsp;\r\n }\r\n Appliquer\r\n </button>\r\n </div>\r\n</div>\r\n","import { Injectable } from '@angular/core';\r\nimport { DflatModalService } from '@dflat-core/web/core-ux';\r\nimport { Observable, Subject } from 'rxjs';\r\nimport { take } from 'rxjs/operators';\r\n\r\nimport { PpConfig, PpExportSplit, PpResult, PresentationProfileTransformer } from './presentation-profile-transformer';\r\nimport { PresentationProfileComponent } from './presentation-profile.component';\r\n\r\n@Injectable()\r\nexport class PresentationProfileActionService {\r\n constructor(private readonly modalService: DflatModalService) {}\r\n\r\n private readonly selectionSubject = new Subject<PpResult>();\r\n private readonly cancelledSubject = new Subject<void>();\r\n\r\n readonly selectionConfirmed$ = this.selectionSubject.asObservable();\r\n readonly selectionCancelled$ = this.cancelledSubject.asObservable();\r\n\r\n open(config: PpConfig): void {\r\n const ref = this.modalService.show(PresentationProfileComponent, {\r\n class: 'modal-xl',\r\n keyboard: true,\r\n initialState: { config },\r\n });\r\n if (!ref.content) return;\r\n\r\n ref.content.confirmed.pipe(take(1)).subscribe(result => {\r\n this.selectionSubject.next(result);\r\n ref.hide();\r\n });\r\n ref.content.cancelled.pipe(take(1)).subscribe(() => {\r\n this.cancelledSubject.next();\r\n ref.hide();\r\n });\r\n }\r\n\r\n splitForExport(columns: PpResult['columns']): PpExportSplit {\r\n return PresentationProfileTransformer.splitForExport(columns);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { DflatModalService, DialogComponent, DialogComponentParameter } from '@dflat-core/web/core-ux';\r\nimport { Observable, of } from 'rxjs';\r\nimport { catchError, filter, map, switchMap, take } from 'rxjs/operators';\r\nimport { ColumnDescriptor } from '@dflat-core/web/core-model';\r\nimport { GridColumnChoice, GridViewList, IPpService, PpCardView, PpGridConfig, PpViewQueries, SelectorMapperServiceBase } from '@dflat-core/web/core-ux';\r\nimport { PresentationProfileDataService } from '@dflat-core/web/meta-data';\r\nimport { PresentationProfile, PresentationProfileFilterViewModel, PresentationProfilePurposes, PresentationProfileScopes, PresentationProfileView } from '@dflat-core/web/meta-model';\r\nimport { SaveViewPromptComponent, SaveViewPromptResult } from './save-view-prompt/save-view-prompt.component';\r\nimport { PresentationProfileScreenComponent } from '../data-components/presentation-profile-screen.component';\r\nimport { PresentationProfileItem } from '@dflat-core/web/meta-model';\r\nimport { PpExportSplit, PresentationProfileTransformer } from './presentation-profile-transformer';\r\nimport { PresentationProfileActionService } from './presentation-profile-action-service';\r\nimport { PresentationProfileResolver, PpResolverConfig } from './presentation-profile-resolver.service';\r\n\r\n/** Global entry point for all Presentation Profile concerns. Bound to PP_SERVICE injection token. */\r\n@Injectable()\r\nexport class PpFacadeService implements IPpService {\r\n constructor(\r\n private readonly resolver: PresentationProfileResolver,\r\n private readonly actionService: PresentationProfileActionService,\r\n private readonly selectorMapper: SelectorMapperServiceBase,\r\n private readonly profileData: PresentationProfileDataService,\r\n private readonly modalService: DflatModalService,\r\n ) {}\r\n\r\n openColumnSelector(config: { title: string; metaEntityKey: string; supplierId?: number | null; roleId?: number | null; viewId?: number | null;\r\n tab?: 'columns' | 'filters'; filterColumns?: any[]; panelFields?: any[]; gridQueries?: PpViewQueries }): void {\r\n this.actionService.open({ ...config, purpose: PresentationProfilePurposes.Grid });\r\n }\r\n\r\n openProfileEditor(config: { title: string; metaEntityKey: string; viewId?: number | null }): Observable<unknown> {\r\n return this.selectorMapper.openComponentModal<PresentationProfileView, PresentationProfileFilterViewModel>(\r\n config.title,\r\n PresentationProfileScreenComponent,\r\n component => {\r\n // Écran des profils de la table, avec son éditeur et ses actions d'enregistrement.\r\n component.facade.layout.enablePropertyPanel();\r\n component.facade.layout.setShowPropertyPanel(true);\r\n ['add', 'save', 'delete'].forEach(name => component.facade.actions.showAction(name));\r\n component.facade.filter.setFilter({ MetaEntityKey: config.metaEntityKey } as Partial<PresentationProfileFilterViewModel>);\r\n // Positionné sur la vue affichée par la grille, dès les vues chargées.\r\n if (config.viewId != null)\r\n setTimeout(() => component.facade.data.data$?.pipe(\r\n filter(res => !!res?.Values?.length),\r\n take(1),\r\n ).subscribe(res => {\r\n const view = res.Values.find(v => v.Id === config.viewId);\r\n if (view)\r\n component.facade.selection.select([view]);\r\n }));\r\n },\r\n undefined,\r\n {},\r\n { okLabel: 'Fermer', showButtons: true, canClose: true },\r\n );\r\n }\r\n\r\n openExportSelector(config: { title: string; metaEntityKey: string; supplierId?: number | null; roleId?: number | null }): void {\r\n this.actionService.open({ ...config, purpose: PresentationProfilePurposes.Export });\r\n }\r\n\r\n loadViews(config: PpGridConfig): Observable<GridViewList> {\r\n return this.profileData.getUserViews({\r\n MetaEntityKey: config.metaEntityKey,\r\n PresentationProfilePurpose: PresentationProfilePurposes.Grid,\r\n }).pipe(\r\n map(res => ({\r\n views: (res?.Views ?? []).filter(v => v.Id != null).map(v => ({\r\n id: v.Id!,\r\n label: v.Label ?? '',\r\n isDefault: v.PresentationProfileScope === PresentationProfileScopes.Default,\r\n sortQuery: v.SortQuery ?? null,\r\n filterQuery: v.FilterQuery ?? null,\r\n })),\r\n selectedId: res?.SelectedId ?? null,\r\n canEditDefault: !!res?.CanEditDefault,\r\n } as GridViewList)),\r\n catchError(() => of({ views: [], selectedId: null, canEditDefault: false } as GridViewList)),\r\n );\r\n }\r\n\r\n selectView(config: PpGridConfig, viewId: number | null): Observable<unknown> {\r\n return this.profileData.selectView({\r\n MetaEntityKey: config.metaEntityKey,\r\n PresentationProfilePurpose: PresentationProfilePurposes.Grid,\r\n PresentationProfileId: viewId ?? undefined,\r\n });\r\n }\r\n\r\n saveColumnOrder(config: PpGridConfig & { title: string }, columnOrder: string[], queries?: PpViewQueries): void {\r\n if (!config?.metaEntityKey || !columnOrder?.length)\r\n return;\r\n\r\n // Vue affichée par la grille : celle de l'utilisateur est écrasée, la vue par défaut donne une nouvelle vue.\r\n this.loadViews(config).pipe(take(1)).subscribe(list => {\r\n const selected = list.views.find(v => v.id === list.selectedId);\r\n const ownView = selected && !selected.isDefault ? selected : null;\r\n\r\n this.askSaveView(config.title, !ownView, ownView?.label ?? '', false).subscribe(answer => {\r\n if (!answer.save)\r\n return;\r\n this.writeColumnOrder(config, columnOrder, ownView?.id ?? null, ownView ? null : answer.label, queries).subscribe();\r\n });\r\n });\r\n }\r\n\r\n confirmLeaveView(config: PpGridConfig & { title: string }, columnOrder: string[], queries?: PpViewQueries): Observable<boolean> {\r\n if (!config?.metaEntityKey || !columnOrder?.length)\r\n return of(true);\r\n return this.loadViews(config).pipe(\r\n take(1),\r\n switchMap(list => {\r\n const selected = list.views.find(v => v.id === list.selectedId);\r\n const ownView = selected && !selected.isDefault ? selected : null;\r\n return this.askSaveView(config.title, !ownView, ownView?.label ?? '', false).pipe(\r\n switchMap(answer => !answer.save\r\n ? of(true)\r\n : this.writeColumnOrder(config, columnOrder, ownView?.id ?? null, ownView ? null : answer.label, queries).pipe(map(() => false))),\r\n );\r\n }),\r\n catchError(() => of(true)),\r\n );\r\n }\r\n\r\n saveViewFilter(config: PpGridConfig & { title: string }, columnOrder: string[], queries: PpViewQueries): Observable<boolean> {\r\n if (!config?.metaEntityKey || !columnOrder?.length)\r\n return of(false);\r\n return this.loadViews(config).pipe(\r\n take(1),\r\n switchMap(list => {\r\n const selected = list.views.find(v => v.id === list.selectedId) ?? list.views.find(v => v.isDefault);\r\n if (!selected)\r\n return of(false);\r\n if (!selected.isDefault)\r\n return this.writeColumnOrder(config, columnOrder, selected.id, null, queries);\r\n if (!list.canEditDefault)\r\n return of(false);\r\n // Vue par défaut, administrateur : enregistrée telle quelle (le serveur garde son libellé technique).\r\n return this.resolver.loadContext({ ...config, purpose: PresentationProfilePurposes.Grid }).pipe(\r\n take(1),\r\n switchMap(ctx => {\r\n const resolved = new Map((ctx?.Resolved ?? []).map(i => [i.ColumnKey, i]));\r\n const catalog = new Map((ctx?.Catalog ?? []).map(i => [i.ColumnKey, i]));\r\n const items = columnOrder.map(key => resolved.get(key) ?? catalog.get(key)).filter((i): i is PresentationProfileItem => !!i);\r\n if (!items.length)\r\n return of(false);\r\n const request = PresentationProfileTransformer.toAdminConfigContext(items, {\r\n Id: selected.id,\r\n Label: selected.label,\r\n MetaEntityKey: config.metaEntityKey,\r\n PresentationProfilePurpose: PresentationProfilePurposes.Grid,\r\n PresentationProfileScope: PresentationProfileScopes.Default,\r\n SortQuery: queries.sortQuery,\r\n FilterQuery: queries.filterQuery,\r\n } as PresentationProfile);\r\n return this.profileData.savePresentationProfile(request).pipe(map(result => !!result && (result as any).Success !== false));\r\n }),\r\n );\r\n }),\r\n catchError(() => of(false)),\r\n );\r\n }\r\n\r\n saveCurrentColumnOrder(config: PpGridConfig & { title: string }, columnOrder: string[], queries?: PpViewQueries): Observable<boolean> {\r\n if (!config?.metaEntityKey || !columnOrder?.length)\r\n return of(false);\r\n\r\n return this.loadViews(config).pipe(\r\n take(1),\r\n switchMap(list => {\r\n const selected = list.views.find(v => v.id === list.selectedId);\r\n const ownView = selected && !selected.isDefault ? selected : null;\r\n if (ownView)\r\n return this.writeColumnOrder(config, columnOrder, ownView.id, null, queries);\r\n\r\n // Vue par défaut affichée : nom de la nouvelle vue demandé.\r\n return this.askSaveView(config.title, true, '', true).pipe(\r\n switchMap(answer => answer.save ? this.writeColumnOrder(config, columnOrder, null, answer.label, queries) : of(false)),\r\n );\r\n }),\r\n catchError(() => of(false)),\r\n );\r\n }\r\n\r\n /**\r\n * Fenêtre « Enregistrer la disposition des colonnes ? » : fenêtre standard des popups\r\n * (DialogComponent) avec SaveViewPromptComponent pour contenu ; « Ne pas enregistrer », la croix\r\n * ou Échap répondent non.\r\n */\r\n private askSaveView(title: string, isNewView: boolean, viewLabel: string, fromButton: boolean): Observable<SaveViewPromptResult> {\r\n const state = new DialogComponentParameter();\r\n state.showButtons = true;\r\n state.dialogOptions = {\r\n title: 'Enregistrer la disposition des colonnes ?',\r\n childComponentType: SaveViewPromptComponent,\r\n initialViewModel: { title, isNewView, viewLabel, fromButton },\r\n propertyCallback: 'label',\r\n okLabel: 'Enregistrer',\r\n cancelLabel: 'Ne pas enregistrer',\r\n enableDirtyCheck: false,\r\n };\r\n const ref = this.modalService.show(DialogComponent, { class: 'modal-md', initialState: state });\r\n const dialog = ref.content as DialogComponent | undefined;\r\n if (!dialog)\r\n return of({ save: false, label: '' });\r\n // Validé : le libellé saisi ; annulé : rien.\r\n return dialog.onClose.pipe(\r\n take(1),\r\n map(label => label === undefined || label === null\r\n ? { save: false, label: '' }\r\n : { save: true, label: (String(label).trim() || 'Ma vue') }),\r\n );\r\n }\r\n\r\n createView(config: PpGridConfig, queries?: PpViewQueries): Observable<boolean> {\r\n if (!config?.metaEntityKey)\r\n return of(false);\r\n return this.loadViews(config).pipe(\r\n take(1),\r\n switchMap(list => {\r\n const sourceId = list.selectedId ?? list.views.find(v => v.isDefault)?.id ?? null;\r\n if (sourceId == null)\r\n return of(false);\r\n return this.profileData.duplicateView({\r\n PresentationProfileId: sourceId,\r\n Label: PpFacadeService.NewViewLabel,\r\n ...(queries ? { SortQuery: queries.sortQuery, FilterQuery: queries.filterQuery } : {}),\r\n }).pipe(\r\n switchMap(result => result?.Success === false || result?.Id == null\r\n ? of(false)\r\n : this.selectView(config, result.Id).pipe(map(() => true))),\r\n );\r\n }),\r\n catchError(() => of(false)),\r\n );\r\n }\r\n\r\n loadCardView(config: PpGridConfig): Observable<PpCardView | null> {\r\n if (!config?.metaEntityKey)\r\n return of(null);\r\n return this.profileData.getCardView({ MetaEntityKey: config.metaEntityKey }).pipe(\r\n map(result => !result?.Card ? null : {\r\n id: result.Card.Id ?? null,\r\n label: result.Card.Label ?? '',\r\n items: (result.Card.Items ?? [])\r\n .filter(i => i.CardSlot != null && !!i.ColumnKey)\r\n .map(i => ({ key: i.ColumnKey!, slot: i.CardSlot!, sourceType: i.ColumnSourceType ?? 0 })),\r\n }),\r\n catchError(() => of(null)),\r\n );\r\n }\r\n\r\n loadViewColumns(config: PpGridConfig): Observable<GridColumnChoice[]> {\r\n if (!config?.metaEntityKey)\r\n return of([]);\r\n return this.resolver.loadContext({ ...config, purpose: PresentationProfilePurposes.Grid }).pipe(\r\n take(1),\r\n map(ctx => {\r\n const shown = new Set((ctx?.Resolved ?? []).map(i => i.ColumnKey));\r\n // Libellé : celui de la colonne dans la vue affichée, à défaut celui du catalogue ; jamais le\r\n // nom technique s'il y a un libellé.\r\n const resolvedLabels = new Map((ctx?.Resolved ?? []).filter(i => !!i.ColumnKey && !!i.Label).map(i => [i.ColumnKey!, i.Label!]));\r\n return (ctx?.Catalog ?? [])\r\n .filter(i => !!i.ColumnKey)\r\n .map(i => ({ key: i.ColumnKey!, label: resolvedLabels.get(i.ColumnKey!) || i.Label || i.ColumnKey!, visible: shown.has(i.ColumnKey) }));\r\n }),\r\n catchError(() => of([] as GridColumnChoice[])),\r\n );\r\n }\r\n\r\n /** Libellé proposé pour une vue créée par « Nouvelle vue » (numéroté par le serveur s'il est pris). */\r\n private static readonly NewViewLabel = 'Nouvelle vue';\r\n\r\n /**\r\n * Enregistre les colonnes données, dans leur ordre (colonnes de la grille, ajoutées ou retirées\r\n * comprises) : dans la vue de l'utilisateur, ou dans une nouvelle vue (libellé donné, « Ma vue » à\r\n * défaut), qui devient la vue affichée. Une colonne garde ses réglages de la vue affichée (largeur,\r\n * affichage) ; une colonne ajoutée prend ceux du catalogue.\r\n */\r\n private writeColumnOrder(config: PpGridConfig, columns: string[], viewId: number | null, label: string | null, queries?: PpViewQueries): Observable<boolean> {\r\n return this.resolver.loadContext({ ...config, purpose: PresentationProfilePurposes.Grid }).pipe(\r\n take(1),\r\n switchMap(ctx => {\r\n const resolved = new Map((ctx?.Resolved ?? []).map(i => [i.ColumnKey, i]));\r\n const catalog = new Map((ctx?.Catalog ?? []).map(i => [i.ColumnKey, i]));\r\n const items = columns\r\n .map(key => resolved.get(key) ?? catalog.get(key))\r\n .filter((i): i is PresentationProfileItem => !!i)\r\n .map(i => ({ ...i }));\r\n if (!items.length)\r\n return of(false);\r\n const request = PresentationProfileTransformer.toUserPreferenceContext(\r\n items, config.metaEntityKey, PresentationProfilePurposes.Grid, label,\r\n // Tri et filtre de la vue : envoyés (chaîne vide : aucun), sinon gardés par le serveur.\r\n { ...(viewId != null ? { Id: viewId } : {}), ...(queries ? { SortQuery: queries.sortQuery, FilterQuery: queries.filterQuery } : {}) } as PresentationProfile,\r\n );\r\n return this.profileData.savePresentationProfile(request).pipe(map(result => !!result && (result as any).Success !== false));\r\n }),\r\n catchError(() => of(false)),\r\n );\r\n }\r\n\r\n resolveColumns(config: { metaEntityKey: string; supplierId?: number | null; roleId?: number | null }): Observable<any[]> {\r\n return this.resolver.resolve(config as PpResolverConfig).pipe(map(r => r.columns));\r\n }\r\n\r\n buildDescriptors(ppColumns: any[], backendDescriptors: ColumnDescriptor[]): ColumnDescriptor[] {\r\n return PresentationProfileTransformer.buildDescriptors(ppColumns as PresentationProfileItem[], backendDescriptors);\r\n }\r\n\r\n splitForExport(columns: any[]): PpExportSplit {\r\n return PresentationProfileTransformer.splitForExport(columns as PresentationProfileItem[]);\r\n }\r\n\r\n get selectionConfirmed$(): Observable<{ purpose: number; columns: any[] }> {\r\n return this.actionService.selectionConfirmed$;\r\n }\r\n\r\n get gridSelectionConfirmed$(): Observable<any[]> {\r\n return this.actionService.selectionConfirmed$.pipe(\r\n filter(r => r.purpose === PresentationProfilePurposes.Grid),\r\n map(r => r.columns),\r\n );\r\n }\r\n}\r\n","import { ApplicationService, NewEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { ResourceLanguage } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-res-lang-editor',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/new-editor/new-editor.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class ResourceLanguageEditorComponent extends NewEditorComponent<ResourceLanguage> {\r\n getEntityKey(): string {\r\n return MetaEntityKeys.ResourceLanguage;\r\n }\r\n \r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvelle langue') : ('Langue (' + this.id + ')')): 'Langues';\r\n }\r\n \r\n getPath(withId: boolean): string {\r\n return withId ? MetaMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : MetaMenuItemProvider.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}\r\n","<div class=\"editor-container\">\r\n <div class=\"breadcrumb-panel\" *ngIf=\"(this.facade.editor.isStandaloneMode$| async)\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n <!-- entityConfigLoader\r\n #configLoader=\"entityConfigLoader\"\r\n [entityKey]=\"getEntityKey()\" -->\r\n\r\n <ng-container\r\n >\r\n <div class=\"property-editor-container\" [class.show-buttons]=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <alg-property-editor\r\n class=\"property-editor-container-inner\"\r\n #propertyGridComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-property-editor>\r\n </div>\r\n <div class=\"buttons-container\" *ngIf=\"(this.facade.editor.isStandaloneMode$ | async)\">\r\n <div class=\"footer-buttons\" >\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!this.dirty\"\r\n (click)=\"handleDialogButtonClick(false)\">\r\n Sauvegarder\r\n </button>\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <!-- [disabled]=\"this.isSaveDisabled()\" -->\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\">\r\n Annuler\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","import {\r\n CustomFieldGroupEntityDataService,\r\n CustomFieldGroupItemDataService,\r\n} from '@dflat-core/web/meta-data';\r\nimport { CustomFieldGroupEntityView, CustomFieldGroupItemView } from '@dflat-core/web/meta-model';\r\nimport { Injectable, OnDestroy } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class CustomFieldService implements OnDestroy {\r\n constructor(\r\n private customFieldGroupItemDataService: CustomFieldGroupItemDataService,\r\n private customFieldGroupEntityDataService: CustomFieldGroupEntityDataService\r\n ) {\r\n this.loadCustomFieldEntities();\r\n }\r\n\r\n private destroy$: Subject<void> = new Subject<void>();\r\n ngOnDestroy(): void {\r\n this.CustomFieldGroupEntities.clear()\r\n }\r\n\r\n CustomFieldGroupEntities: Map<string, CustomFieldGroupEntityView[]> = new Map<string, CustomFieldGroupEntityView[]>();\r\n IsCustomFieldGroupEntitiesLoaded : boolean = false;\r\n\r\n CustomFieldGroupItems: CustomFieldGroupItemView[] = [];\r\n IsCustomFieldGroupItemsLoaded : boolean = false;\r\n\r\n loadCustomFieldEntities() {\r\n this.customFieldGroupEntityDataService.search({}).subscribe({\r\n next: (res) => {\r\n res.Values.forEach((elt) => {\r\n const key = `${elt.EntityKey}¤${elt.EntityId}`;\r\n if (!this.CustomFieldGroupEntities.has(key)) {\r\n this.CustomFieldGroupEntities.set(key, [elt]);\r\n } else this.CustomFieldGroupEntities.get(key).push(elt);\r\n });\r\n },\r\n complete: () => {\r\n this.IsCustomFieldGroupEntitiesLoaded = true;\r\n },\r\n });\r\n }\r\n\r\n isCustomFieldGroupEntityExistent(elt: CustomFieldGroupEntityView): boolean {\r\n const key = `${elt.EntityKey}¤${elt.EntityId}`;\r\n return (\r\n this.CustomFieldGroupEntities.has(key) &&\r\n this.CustomFieldGroupEntities.get(key).includes(elt)\r\n );\r\n }\r\n\r\n getCustomFieldGroupEntities(entitykey : string,entityId : number) : CustomFieldGroupEntityView []{\r\n const key = `${entitykey}¤${entityId}`;\r\n if(this.CustomFieldGroupEntities.has(key))\r\n return this.CustomFieldGroupEntities.get(key);\r\n return undefined;\r\n }\r\n\r\n loadCustomFieldGroupItems() {\r\n this.customFieldGroupItemDataService.search({}).subscribe({\r\n next: (res) => {\r\n this.CustomFieldGroupItems = res.Values\r\n },\r\n complete: () => {\r\n this.IsCustomFieldGroupItemsLoaded = true;\r\n },\r\n });\r\n }\r\n}\r\n","import { DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Injector, NgModule } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { AngularEditorModule } from '@kolkov/angular-editor';\r\nimport { NgSelectModule } from '@ng-select/ng-select';\r\nimport { NgxDropzoneModule } from 'ngx-dropzone';\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, FilterEditorComponent, PP_SERVICE } from '@dflat-core/web/core-ux';\r\nimport { FilesDataService, MetaDataModule } from '@dflat-core/web/meta-data';\r\nimport { FILES_DATA_SERVICE } from '@dflat-core/web/core';\r\nimport { MetaModelModule } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaRootModule } from '@dflat-core/web/meta-root';\r\n\r\nimport { CustomFieldOptionsEditorComponent } from './custom-field-options/custom-field-options-editor.component';\r\nimport { CustomFieldEditorComponent } from './custom-field/custom-field-editor.component';\r\nimport { MetaGeneratedComponents, MetaGeneratedRoutes, MetaGeneratedSelectors } from './data-components/generated/meta-components.generated';\r\nimport { MetaGeneratedSectionService } from './data-components/generated/meta-sections.generated';\r\nimport { PresentationProfileScreenComponent } from './data-components/presentation-profile-screen.component';\r\nimport { CustomFieldGroupEditorComponent } from './editor-components/custom-field-group-editor.component';\r\nimport { CustomFieldGroupEntityEditorComponent } from './editor-components/custom-field-group-entity-editor.component';\r\nimport { CustomFieldGroupItemEditorComponent } from './editor-components/custom-field-group-item-editor.component';\r\nimport { PermissionEditorComponent } from './editor-components/permission-editor.component';\r\nimport { PresentationProfileEditorComponent } from './editor-components/presentation-profile-editor.component';\r\nimport { ResourceTranslationEditorComponent } from './editor-components/resource-translation-editor.component';\r\nimport { EntityFilesComponent } from './entity-files/entity-files.component';\r\nimport { FormEditorComponent } from './form-editor/form-editor.component';\r\nimport { MetaEntityFieldEditorComponent } from './meta-entity-field/meta-entity-field-editor.component';\r\nimport { PpFacadeService } from './presentation-profile/pp-facade.service';\r\nimport { PresentationProfileActionService } from './presentation-profile/presentation-profile-action-service';\r\nimport { PresentationProfileComponent } from './presentation-profile/presentation-profile.component';\r\nimport { ResourceLanguageEditorComponent } from './resource-language/resourcelanguage-editor.component';\r\nimport { CustomFieldActionService } from './services/custom-field-action-service';\r\nimport { CustomFieldService } from './services/custom-field-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/meta-components.generated.ts\r\n ...MetaGeneratedComponents,\r\n\r\n CustomFieldEditorComponent,\r\n CustomFieldOptionsEditorComponent,\r\n CustomFieldGroupEditorComponent,\r\n CustomFieldGroupItemEditorComponent,\r\n CustomFieldGroupEntityEditorComponent,\r\n EntityFilesComponent,\r\n FormEditorComponent,\r\n MetaEntityFieldEditorComponent,\r\n PermissionEditorComponent,\r\n PresentationProfileEditorComponent,\r\n PresentationProfileScreenComponent,\r\n ResourceLanguageEditorComponent,\r\n ResourceTranslationEditorComponent,\r\n];\r\n\r\n/**\r\n * Écrans du module Meta (Découpage modulaire System/Meta/Identity, C.5) : méta-modèle, formulaires,\r\n * profils de présentation, champs personnalisés, paramètres, fichiers, ressources et permissions.\r\n * SystemUxModule l'importe pour ses composants ; les routes sont dans MetaRoutingModule, chargé sous /mta.\r\n */\r\n@NgModule({\r\n imports: [\r\n DragDropModule,\r\n CommonModule,\r\n AngularEditorModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n CoreModelModule,\r\n CoreUxModule,\r\n CoreDataModule,\r\n PresentationProfileComponent,\r\n FilterEditorComponent,\r\n MetaModelModule,\r\n MetaDataModule,\r\n MetaRootModule,\r\n NgSelectModule,\r\n NgxDropzoneModule,\r\n ],\r\n declarations: [...components],\r\n exports: [...components],\r\n providers: [\r\n PresentationProfileActionService,\r\n PpFacadeService,\r\n { provide: PP_SERVICE, useExisting: PpFacadeService },\r\n CustomFieldActionService,\r\n CustomFieldService,\r\n // Service de données des fichiers des composants communs (core-ux), Dépendances des modules D.1.\r\n { provide: FILES_DATA_SERVICE, useExisting: FilesDataService },\r\n ],\r\n})\r\nexport class MetaUxModule {\r\n constructor(injector: Injector) {\r\n // Sélecteurs d'entité des champs Custom (clés étrangères) des formulaires : voir generated/meta-components.generated.ts\r\n EntitySelectors.register(MetaGeneratedSelectors, injector);\r\n // Onglets des entités liées des composants générés : voir generated/meta-sections.generated.ts\r\n EntitySections.register(injector.get(MetaGeneratedSectionService));\r\n }\r\n}\r\n","import { Component } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nexport interface SchemaFieldDeleteData {\r\n hasData: boolean;\r\n dataCount: number;\r\n topValues: string[];\r\n fieldName: string;\r\n message: string;\r\n}\r\n\r\n@Component({\r\n selector: 'msw-schema-field-delete-dialog',\r\n standalone: true,\r\n imports: [CommonModule],\r\n template: `\r\n <div class=\"modal-header\">\r\n <h2>Suppression de champ Schema</h2>\r\n </div>\r\n <div class=\"modal-body\">\r\n <div class=\"data-info\">\r\n <h3>{{ data.fieldName }}</h3>\r\n\r\n <div class=\"data-status\" *ngIf=\"data.hasData; else noData\">\r\n <strong class=\"text-warning\">⚠ Données trouvées</strong>\r\n <p class=\"text-muted\">{{ data.dataCount }} enregistrement(s) contiennent ce champ</p>\r\n\r\n <div class=\"sample-values\">\r\n <strong>Exemples de valeurs:</strong>\r\n <ul>\r\n <li *ngFor=\"let value of data.topValues\" class=\"text-truncate\">\r\n {{ value || '(vide)' }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n <ng-template #noData>\r\n <div class=\"data-status\">\r\n <strong class=\"text-info\">✓ Aucune donnée</strong>\r\n <p class=\"text-muted\">Ce champ ne contient pas de données</p>\r\n </div>\r\n </ng-template>\r\n </div>\r\n\r\n <hr>\r\n\r\n <div class=\"action-info\">\r\n <p><strong>Choisissez une action:</strong></p>\r\n\r\n <div class=\"option\">\r\n <strong>Supprimer (Hard delete)</strong>\r\n <p class=\"text-danger\">Supprime le champ et sa colonne physique</p>\r\n </div>\r\n\r\n <div class=\"option\">\r\n <strong>Désactiver (Soft delete)</strong>\r\n <p class=\"text-warning\">Désactive le champ mais conserve les données</p>\r\n <p class=\"text-muted small\">✓ Recommandé si données présentes</p>\r\n <p class=\"text-muted small\">✓ Le champ peut être réactivé plus tard</p>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"modal-footer\">\r\n <button class=\"btn btn-secondary\" (click)=\"onCancel()\">Annuler</button>\r\n <button class=\"btn btn-warning\" (click)=\"onDeactivate()\">\r\n Désactiver\r\n </button>\r\n <button class=\"btn btn-danger\" *ngIf=\"!data.hasData\" (click)=\"onDelete()\">\r\n Supprimer\r\n </button>\r\n </div>\r\n `,\r\n styles: [`\r\n .data-info {\r\n background: #f5f5f5;\r\n padding: 16px;\r\n border-radius: 4px;\r\n margin-bottom: 16px;\r\n }\r\n\r\n .data-status {\r\n margin: 8px 0;\r\n }\r\n\r\n .sample-values {\r\n margin-top: 12px;\r\n background: white;\r\n padding: 8px;\r\n border-radius: 4px;\r\n max-height: 150px;\r\n overflow-y: auto;\r\n }\r\n\r\n .sample-values ul {\r\n margin: 8px 0 0 20px;\r\n padding: 0;\r\n }\r\n\r\n .sample-values li {\r\n margin: 4px 0;\r\n font-family: monospace;\r\n font-size: 12px;\r\n }\r\n\r\n .action-info {\r\n margin: 12px 0;\r\n }\r\n\r\n .option {\r\n margin: 12px 0;\r\n padding: 8px;\r\n border-left: 3px solid #ccc;\r\n padding-left: 12px;\r\n }\r\n\r\n .option p {\r\n margin: 4px 0;\r\n }\r\n\r\n .text-danger { color: #d32f2f; }\r\n .text-warning { color: #f57c00; }\r\n .text-info { color: #1976d2; }\r\n .text-muted { color: #999; }\r\n .text-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\r\n .small { font-size: 0.875rem; }\r\n `]\r\n})\r\nexport class SchemaFieldDeleteDialogComponent {\r\n data: SchemaFieldDeleteData;\r\n isCancel: boolean = true;\r\n selectedAction: string | null = null;\r\n\r\n constructor() { }\r\n\r\n onCancel(): void {\r\n this.isCancel = true;\r\n this.selectedAction = null;\r\n }\r\n\r\n onDelete(): void {\r\n this.isCancel = false;\r\n this.selectedAction = 'delete';\r\n }\r\n\r\n onDeactivate(): void {\r\n this.isCancel = false;\r\n this.selectedAction = 'deactivate';\r\n }\r\n}\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur EntityFilesController).\r\n// Ne pas modifier : le code spécifique s'écrit dans EntityFilesComponent, dérivé de BaseEntityFilesComponent.\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 { EntityFiles, EntityFilesFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions } from '@dflat-core/web/meta-root';\r\n\r\n/**\r\n * Recherche et édition des EntityFiles (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : EntityFilesComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseEntityFilesComponent extends BaseComponent<EntityFilesFilterViewModel, EntityFiles> {\r\n getTitle(): string {\r\n return 'Fichier d\\'entité';\r\n }\r\n\r\n getPath(): string {\r\n return MetaMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return MetaEntityKeys.EntityFiles;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return MetaPermissions.META_ENTITYFILES;\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 'EFL';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\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 { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { CustomFieldOptionsEditorComponent } from './custom-field-options/custom-field-options-editor.component';\r\nimport { CustomFieldEditorComponent } from './custom-field/custom-field-editor.component';\r\nimport { MetaGeneratedRoutes } from './data-components/generated/meta-components.generated';\r\nimport { PresentationProfileScreenComponent } from './data-components/presentation-profile-screen.component';\r\nimport { CustomFieldGroupEditorComponent } from './editor-components/custom-field-group-editor.component';\r\nimport { CustomFieldGroupItemEditorComponent } from './editor-components/custom-field-group-item-editor.component';\r\nimport { PermissionEditorComponent } from './editor-components/permission-editor.component';\r\nimport { ResourceTranslationEditorComponent } from './editor-components/resource-translation-editor.component';\r\nimport { MetaEntityFieldEditorComponent } from './meta-entity-field/meta-entity-field-editor.component';\r\nimport { ResourceLanguageEditorComponent } from './resource-language/resourcelanguage-editor.component';\r\nimport { MetaUxModule } from './meta-ux.module';\r\n\r\n/**\r\n * Routes des écrans du module Meta, chargées par l'application sous /mta (Découpage modulaire\r\n * System/Meta/Identity) : { path: 'mta', loadChildren: () => import('@dflat-core/web/meta-ux').then(m => m.MetaRoutingModule) }.\r\n */\r\n@NgModule({\r\n imports: [\r\n MetaUxModule,\r\n RouterModule.forChild([\r\n // Routes des composants des entités (clé d'entité) : voir generated/meta-components.generated.ts\r\n ...MetaGeneratedRoutes,\r\n { path: MetaEntityKeys.Permission + '/:id', component: PermissionEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomField + '/:id', component: CustomFieldEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldOptions + '/:id', component: CustomFieldOptionsEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldGroup + '/:id', component: CustomFieldGroupEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.CustomFieldGroupItem + '/:id', component: CustomFieldGroupItemEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ResourceLanguage + '/:id', component: ResourceLanguageEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.ResourceTranslation + '/:id', component: ResourceTranslationEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.MetaEntityField + '/:id', component: MetaEntityFieldEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.PresentationProfile, component: PresentationProfileScreenComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: MetaEntityKeys.GridColumnConfig, component: PresentationProfileScreenComponent, canDeactivate: [CanDeactivateGuard] },\r\n ]),\r\n ],\r\n})\r\nexport class MetaRoutingModule {}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAa,oCAAb,MAAa,0CAA0C,mBAA0C;CAE7F,eAAY;EACR,OAAO,eAAe;CAC1B;CAEA,SAAS,QAAe;EACpB,OAAO,SAAW,KAAK,OAAO,MAAQ,+BAAiC,wBAAwB,KAAK,KAAK,MAAO;CACpH;CAEA,QAAQ,QAAe;EACnB,OAAO,SAAS,qBAAqB,QAAQ,KAAK,aAAY,CAAE,IAAI,MAAM,KAAK,KAAK,qBAAqB,QAAQ,KAAK,aAAY,CAAE;CACxI;CAIA,YACI,KACA,OAAqB;EACrB,MAAM,KAAK,KAAK;EALb,KAAA,WAAoB;CAM3B;CAEA,WAAQ;EACJ,MAAM,SAAQ;EACd,KAAK,OAAO,OAAO,2BAA2B,OAAM,KAAK,eAAe,EAAE,CAAC;CAC/E;CAEA,eAAe,IAAsD;EACjE,IAAG,CAAC,UAAU,MAAM,EAAE,GACtB;GACI,MAAM,iBAAiB,GAAG,cAAc,EAAE,CAAC,gBAAgB,WAAU,QAAO,IAAI,iBAAiB,WAAW;GAC5G,IAAI,iBAAiB,IACnB,GAAG,cAAc,EAAE,CAAC,gBAAgB,OAAO,gBAAgB,CAAC;GAE9D,IAAG,GAAG,cAAc,SAAS,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