@dflat-core/web 1.0.61 → 1.0.62

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dflat-core/web",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "Librairies Angular Dflat (core, core-*, system-*) et assets partagés, empaquetées en un module npm unique.",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -10,9 +10,11 @@ import * as i117 from "@dflat-core/web/system-model";
10
10
  import { ActivationResults, AddressView, AddressViewFilterViewModel, ChangePasswordViewModel, CompanyFilterViewModel, CompanyView, Country, CountryFilterViewModel, Currency, CurrencyFilterViewModel, CustomFieldFilterViewModel, CustomFieldGroup, CustomFieldGroupEntityFilterViewModel, CustomFieldGroupEntityView, CustomFieldGroupFilterViewModel, CustomFieldGroupItemFilterViewModel, CustomFieldGroupItemView, CustomFieldOptionsFilterViewModel, CustomFieldOptionsView, CustomFieldValueFilterViewModel, CustomFieldValueView, CustomFieldView, DayInfo, DayInfoFilterViewModel, EntityFiles, EntityFilesFilterViewModel, ErrorCategory, ErrorCategoryFilterViewModel, ExchangeRateFilterViewModel, ExchangeRateView, FieldFilterTypes, FileDescriptor, FileTypes, FilesFilterViewModel, FilesView, FormEditorContext, ImageUploadEvent, Keyword, KeywordFilterViewModel, MetaEntity, MetaEntityField, MetaEntityFieldFilterViewModel, MetaEntityFilterViewModel, MetaEntityFormFieldFilterViewModel, MetaEntityFormFieldView, MetaEntityFormFilterViewModel, MetaEntityFormSectionFilterViewModel, MetaEntityFormSectionView, MetaEntityFormView, MetaEntityKeyword, MetaEntityKeywordFilterViewModel, MetaEntityRelation, MetaEntityRelationDefinition, MetaEntityRelationDefinitionFilterViewModel, MetaEntityRelationFilterViewModel, MetaEntityTranslation, MetaEntityTranslationFilterViewModel, MetaEntityViewField, MetaEntityViewFieldFilterViewModel, News, NewsFilterViewModel, ParameterSection, ParameterSectionFilterViewModel, ParameterValueView, ParameterValueViewFilterViewModel, ParameterView, ParameterViewFilterViewModel, Permission, PermissionFilterViewModel, PermissionView, PresentationContext, PresentationProfile, PresentationProfileFilterViewModel, PresentationProfileItem, PresentationProfileItemFilterViewModel, PresentationProfileItemView, PresentationProfilePurposes, PresentationProfileView, RatingFilterViewModel, RatingSummary, RatingSummaryFilterViewModel, RatingView, RequestEntity, RequestEntityFilterViewModel, RequestFilterViewModel, RequestResultFilterViewModel, RequestResultView, RequestType, RequestTypeFilterViewModel, RequestView, ResourceKey, ResourceKeyFilterViewModel, ResourceLanguage, ResourceLanguageFilterViewModel, ResourceTranslationFilterViewModel, ResourceTranslationView, RoleFilterViewModel, RolePermission, RolePermissionFilterViewModel, RoleView, SubcompanyFilterViewModel, SupplierCompany, SupplierCompanyFilterViewModel, SupplierFilterViewModel, SupplierView, SynchronizedCompanyView, SynchronizedCompanyViewFilterViewModel, TvaRateFilterViewModel, TvaRateView, UploadFileResult, UserAccount, UserAccountCompanyFilterViewModel, UserAccountCompanyView, UserAccountFilterViewModel, UserAccountLoginFilterViewModel, UserAccountLoginView, UserAccountNews, UserAccountNewsFilterViewModel, UserAccountRoleFilterViewModel, UserAccountRoleView, UserAccountToken, UserAccountTokenFilterViewModel, UserFavorite, UserFavoriteFilterViewModel, UserGroup, UserGroupDefinitionFilterViewModel, UserGroupDefinitionView, UserGroupFilterViewModel, UserHistory, UserHistoryFilterViewModel, UserPermissionView, UserPermissionViewFilterViewModel, UserProfileViewModel, UserSession, UserSessionFilterViewModel, Version, VersionFilterViewModel } from "@dflat-core/web/system-model";
11
11
  import * as i113 from "@dflat-core/web/core-model";
12
12
  import { ApiError, ColumnDescriptor, EntityViewModel, EntityViewModelWithFields, FieldDescriptor, FilterDescriptor, HistoryItem, IExternalLoginProvider, IUserCredential, ImageFormats, PropertyEditorEvent, SaveResult, Section, SpecificSection, TreeItem, User } from "@dflat-core/web/core-model";
13
+ import * as i108 from "ngx-bootstrap/modal";
14
+ import { BsModalService } from "ngx-bootstrap/modal";
15
+ import { Observable, Subject, Subscription } from "rxjs";
13
16
  import * as i118 from "@dflat-core/web/system-data";
14
17
  import { AccountDataService, CompanyDataService, ConfigDataService, CountryDataService, CurrencyDataService, CustomFieldGroupEntityDataService, CustomFieldGroupItemDataService, CustomFieldOptionsDataService, ExchangeRateDataService, FilesDataService, MetaEntityDataService, MetaEntityFieldDataService, MetaEntityFormDataService, PermissionDataService, PresentationProfileDataService, PresentationProfileItemDataService, SupplierDataService, TvaRateDataService, UserAccountCompanyDataService, UserAccountDataService, UserAccountRoleDataService, UserGroupDefinitionDataService } from "@dflat-core/web/system-data";
15
- import { Observable, Subject, Subscription } from "rxjs";
16
18
  import * as i14 from "ngx-toastr";
17
19
  import { ToastrService } from "ngx-toastr";
18
20
  import * as i9 from "@dflat-core/web/core-services";
@@ -29,8 +31,6 @@ import * as i109 from "@angular/cdk/drag-drop";
29
31
  import { CdkDragDrop } from "@angular/cdk/drag-drop";
30
32
  import { HttpErrorResponse, HttpEvent } from "@angular/common/http";
31
33
  import { NgxImageCompressService } from "ngx-image-compress";
32
- import * as i108 from "ngx-bootstrap/modal";
33
- import { BsModalService } from "ngx-bootstrap/modal";
34
34
  import * as i110 from "@angular/common";
35
35
  import * as i116 from "@dflat-core/web/core-data";
36
36
  import * as i119 from "@dflat-core/web/system-root";
@@ -94,16 +94,77 @@ export declare abstract class BaseCompanyComponent extends BaseComponent<Company
94
94
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseCompanyComponent, never>;
95
95
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseCompanyComponent, never, never, {}, {}, never, never, true, never>;
96
96
  }
97
+ export declare const PP_GRP_STANDARD = "standard";
98
+ export declare const PP_GRP_CUSTOM = "custom";
99
+ export interface PpConfig {
100
+ metaEntityKey: string;
101
+ title?: string;
102
+ purpose?: PresentationProfilePurposes;
103
+ embedded?: boolean;
104
+ supplierId?: number | null;
105
+ roleId?: number | null;
106
+ }
107
+ export interface PpGroup {
108
+ id: string;
109
+ label: string;
110
+ isCustom: boolean;
111
+ }
112
+ export interface PpResult {
113
+ purpose: PresentationProfilePurposes;
114
+ profileId: number | null;
115
+ columns: PresentationProfileItem[];
116
+ }
117
+ export interface PpExportSplit {
118
+ columns: string[];
119
+ customFieldIds: number[];
120
+ }
121
+ export declare class PresentationProfileTransformer {
122
+ /**
123
+ * Build the display groups from a catalog: a "standard" group + one group per custom-field
124
+ * group (by GroupId/GroupName provided by the backend), falling back to a single "Attributs".
125
+ */
126
+ static buildGroups(catalog: PresentationProfileItem[]): PpGroup[];
127
+ /**
128
+ * Converts resolved PresentationProfileItem[] into ColumnDescriptor[] for the data grid.
129
+ * Standard columns are matched from the backend descriptors by Property (ColumnKey);
130
+ * custom-field columns get a synthetic text descriptor.
131
+ * item.Label is the custom override saved with the profile; it is null when the column keeps its
132
+ * natural label, which is then the backend descriptor's Name (the column key only as a last resort).
133
+ */
134
+ static buildDescriptors(items: PresentationProfileItem[], backendDescriptors: ColumnDescriptor[]): ColumnDescriptor[];
135
+ /** User profile selection → unified PresentationContext for savePresentationProfile (Profile carries Items). */
136
+ static toUserPreferenceContext(items: PresentationProfileItem[], key: string, purpose: number, label?: string | null, profile?: PresentationProfile | null): PresentationContext;
137
+ /** Admin selection → unified PresentationContext for savePresentationProfile (Profile carries Items). */
138
+ static toAdminConfigContext(items: PresentationProfileItem[], profile: PresentationProfile): PresentationContext;
139
+ /** Normalises selected columns into persistable items (order = position). */
140
+ private static toSaveItems;
141
+ /** Split selected items into standard column keys and custom-field ids (for export payloads). */
142
+ static splitForExport(items: PresentationProfileItem[]): PpExportSplit;
143
+ }
144
+ export declare class PresentationProfileActionService {
145
+ private readonly modalService;
146
+ constructor(modalService: BsModalService);
147
+ private readonly selectionSubject;
148
+ private readonly cancelledSubject;
149
+ readonly selectionConfirmed$: Observable<PpResult>;
150
+ readonly selectionCancelled$: Observable<void>;
151
+ open(config: PpConfig): void;
152
+ splitForExport(columns: PpResult['columns']): PpExportSplit;
153
+ static ɵfac: i0.ɵɵFactoryDeclaration<PresentationProfileActionService, never>;
154
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
155
+ }
97
156
  declare namespace company_component_d_exports {
98
157
  export { CompanyComponent };
99
158
  }
100
159
  export declare class CompanyComponent extends BaseCompanyComponent {
101
160
  protected route: ActivatedRoute;
102
161
  private systemSection;
162
+ private profileSelector;
103
163
  ADDRESS_SECTION: string;
104
164
  SUBCOMPANY_SECTION: string;
105
- constructor(app: ApplicationService, route: ActivatedRoute, systemSection: SystemSectionService);
165
+ constructor(app: ApplicationService, route: ActivatedRoute, systemSection: SystemSectionService, profileSelector: PresentationProfileActionService);
106
166
  ngOnInit(): void;
167
+ selectColumns(): void;
107
168
  static ɵfac: i0.ɵɵFactoryDeclaration<CompanyComponent, never>;
108
169
  static ɵcmp: i0.ɵɵComponentDeclaration<CompanyComponent, "msw-company", never, {}, {}, never, ["[actionsPanelContent]", "*"], false, never>;
109
170
  }
@@ -3384,53 +3445,6 @@ export declare class PresentationProfileScreenComponent extends BasePresentation
3384
3445
  static ɵfac: i0.ɵɵFactoryDeclaration<PresentationProfileScreenComponent, never>;
3385
3446
  static ɵcmp: i0.ɵɵComponentDeclaration<PresentationProfileScreenComponent, "alg-presentation-profile-screen", never, {}, {}, never, ["[actionsPanelContent]", "*"], false, never>;
3386
3447
  }
3387
- export declare const PP_GRP_STANDARD = "standard";
3388
- export declare const PP_GRP_CUSTOM = "custom";
3389
- export interface PpConfig {
3390
- metaEntityKey: string;
3391
- title?: string;
3392
- purpose?: PresentationProfilePurposes;
3393
- embedded?: boolean;
3394
- supplierId?: number | null;
3395
- roleId?: number | null;
3396
- }
3397
- export interface PpGroup {
3398
- id: string;
3399
- label: string;
3400
- isCustom: boolean;
3401
- }
3402
- export interface PpResult {
3403
- purpose: PresentationProfilePurposes;
3404
- profileId: number | null;
3405
- columns: PresentationProfileItem[];
3406
- }
3407
- export interface PpExportSplit {
3408
- columns: string[];
3409
- customFieldIds: number[];
3410
- }
3411
- export declare class PresentationProfileTransformer {
3412
- /**
3413
- * Build the display groups from a catalog: a "standard" group + one group per custom-field
3414
- * group (by GroupId/GroupName provided by the backend), falling back to a single "Attributs".
3415
- */
3416
- static buildGroups(catalog: PresentationProfileItem[]): PpGroup[];
3417
- /**
3418
- * Converts resolved PresentationProfileItem[] into ColumnDescriptor[] for the data grid.
3419
- * Standard columns are matched from the backend descriptors by Property (ColumnKey);
3420
- * custom-field columns get a synthetic text descriptor.
3421
- * item.Label is the custom override saved with the profile; it is null when the column keeps its
3422
- * natural label, which is then the backend descriptor's Name (the column key only as a last resort).
3423
- */
3424
- static buildDescriptors(items: PresentationProfileItem[], backendDescriptors: ColumnDescriptor[]): ColumnDescriptor[];
3425
- /** User profile selection → unified PresentationContext for savePresentationProfile (Profile carries Items). */
3426
- static toUserPreferenceContext(items: PresentationProfileItem[], key: string, purpose: number, label?: string | null, profile?: PresentationProfile | null): PresentationContext;
3427
- /** Admin selection → unified PresentationContext for savePresentationProfile (Profile carries Items). */
3428
- static toAdminConfigContext(items: PresentationProfileItem[], profile: PresentationProfile): PresentationContext;
3429
- /** Normalises selected columns into persistable items (order = position). */
3430
- private static toSaveItems;
3431
- /** Split selected items into standard column keys and custom-field ids (for export payloads). */
3432
- static splitForExport(items: PresentationProfileItem[]): PpExportSplit;
3433
- }
3434
3448
  export interface PpResolverConfig {
3435
3449
  metaEntityKey: string;
3436
3450
  purpose?: number;
@@ -3582,18 +3596,6 @@ export declare class SystemSelectorMapperService extends SelectorMapperServiceBa
3582
3596
  static ɵfac: i0.ɵɵFactoryDeclaration<SystemSelectorMapperService, never>;
3583
3597
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3584
3598
  }
3585
- export declare class PresentationProfileActionService {
3586
- private readonly modalService;
3587
- constructor(modalService: BsModalService);
3588
- private readonly selectionSubject;
3589
- private readonly cancelledSubject;
3590
- readonly selectionConfirmed$: Observable<PpResult>;
3591
- readonly selectionCancelled$: Observable<void>;
3592
- open(config: PpConfig): void;
3593
- splitForExport(columns: PpResult['columns']): PpExportSplit;
3594
- static ɵfac: i0.ɵɵFactoryDeclaration<PresentationProfileActionService, never>;
3595
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3596
- }
3597
3599
  /** Global entry point for all Presentation Profile concerns. Bound to PP_SERVICE injection token. */
3598
3600
  export declare class PpFacadeService implements IPpService {
3599
3601
  private readonly resolver;
@@ -3685,7 +3687,7 @@ export declare abstract class BaseEntityFilesComponent extends BaseComponent<Ent
3685
3687
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseEntityFilesComponent, never, never, {}, {}, never, never, true, never>;
3686
3688
  }
3687
3689
  /** Composants des entités du module System (composants spécifiques), à déclarer dans son module Angular. */
3688
- export declare const SystemGeneratedComponents: (typeof CustomFieldOptionsComponent | typeof CustomFieldComponent | typeof CustomFieldGroupItemComponent | typeof CustomFieldGroupComponent | typeof AddressComponent | typeof SubcompanyComponent | typeof RequestComponent | typeof CompanyComponent | typeof CountryComponent | typeof CurrencyComponent | typeof CustomFieldGroupEntityComponent | typeof CustomFieldValueComponent | typeof DayInfoComponent | typeof ErrorCategoryComponent | typeof ExchangeRateComponent | typeof FilesComponent | typeof KeywordComponent | typeof MetaEntityFieldComponent | typeof MetaEntityComponent | typeof MetaEntityFormComponent | typeof MetaEntityFormFieldComponent | typeof MetaEntityFormSectionComponent | typeof MetaEntityKeywordComponent | typeof MetaEntityRelationComponent | typeof MetaEntityRelationDefinitionComponent | typeof MetaEntityTranslationComponent | typeof MetaEntityViewFieldComponent | typeof NewsComponent | typeof ParameterComponent | typeof ParameterSectionComponent | typeof ParameterValueComponent | typeof PermissionComponent | typeof PresentationProfileItemComponent | typeof RatingComponent | typeof RatingSummaryComponent | typeof RequestEntityComponent | typeof RequestResultComponent | typeof RequestTypeComponent | typeof ResourceTranslationComponent | typeof ResourceKeyComponent | typeof ResourceLanguageComponent | typeof RoleComponent | typeof RolePermissionComponent | typeof SupplierComponent | typeof SupplierCompanyComponent | typeof SynchronizedCompanyComponent | typeof TvaRateComponent | typeof UserAccountComponent | typeof UserAccountCompanyComponent | typeof UserAccountLoginComponent | typeof UserAccountNewsComponent | typeof UserAccountRoleComponent | typeof UserAccountTokenComponent | typeof UserFavoriteComponent | typeof UserGroupDefinitionComponent | typeof UserGroupComponent | typeof UserHistoryComponent | typeof UserPermissionViewComponent | typeof UserSessionComponent | typeof VersionComponent)[];
3690
+ export declare const SystemGeneratedComponents: (typeof TvaRateComponent | typeof ResourceKeyComponent | typeof MetaEntityComponent | typeof ExchangeRateComponent | typeof AddressComponent | typeof CompanyComponent | typeof CountryComponent | typeof CurrencyComponent | typeof CustomFieldComponent | typeof CustomFieldGroupComponent | typeof CustomFieldGroupEntityComponent | typeof CustomFieldGroupItemComponent | typeof CustomFieldOptionsComponent | typeof CustomFieldValueComponent | typeof DayInfoComponent | typeof ErrorCategoryComponent | typeof FilesComponent | typeof KeywordComponent | typeof MetaEntityFieldComponent | typeof MetaEntityFormComponent | typeof MetaEntityFormFieldComponent | typeof MetaEntityFormSectionComponent | typeof MetaEntityKeywordComponent | typeof MetaEntityRelationComponent | typeof MetaEntityRelationDefinitionComponent | typeof MetaEntityTranslationComponent | typeof MetaEntityViewFieldComponent | typeof NewsComponent | typeof ParameterComponent | typeof ParameterSectionComponent | typeof ParameterValueComponent | typeof PermissionComponent | typeof PresentationProfileItemComponent | typeof RatingComponent | typeof RatingSummaryComponent | typeof RequestComponent | typeof RequestEntityComponent | typeof RequestResultComponent | typeof RequestTypeComponent | typeof ResourceLanguageComponent | typeof ResourceTranslationComponent | typeof RoleComponent | typeof RolePermissionComponent | typeof SubcompanyComponent | typeof SupplierComponent | typeof SupplierCompanyComponent | typeof SynchronizedCompanyComponent | typeof UserAccountComponent | typeof UserAccountCompanyComponent | typeof UserAccountLoginComponent | typeof UserAccountNewsComponent | typeof UserAccountRoleComponent | typeof UserAccountTokenComponent | typeof UserFavoriteComponent | typeof UserGroupComponent | typeof UserGroupDefinitionComponent | typeof UserHistoryComponent | typeof UserPermissionViewComponent | typeof UserSessionComponent | typeof VersionComponent)[];
3689
3691
  /** Routes des composants des entités du module System (clé d'entité), à ajouter à RouterModule.forChild. */
3690
3692
  export declare const SystemGeneratedRoutes: Routes;
3691
3693
  /**