@dflat-core/web 1.0.62 → 1.0.63

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.62",
3
+ "version": "1.0.63",
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,11 +10,9 @@ 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";
16
13
  import * as i118 from "@dflat-core/web/system-data";
17
14
  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";
18
16
  import * as i14 from "ngx-toastr";
19
17
  import { ToastrService } from "ngx-toastr";
20
18
  import * as i9 from "@dflat-core/web/core-services";
@@ -31,6 +29,8 @@ import * as i109 from "@angular/cdk/drag-drop";
31
29
  import { CdkDragDrop } from "@angular/cdk/drag-drop";
32
30
  import { HttpErrorResponse, HttpEvent } from "@angular/common/http";
33
31
  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,77 +94,16 @@ 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
- }
156
97
  declare namespace company_component_d_exports {
157
98
  export { CompanyComponent };
158
99
  }
159
100
  export declare class CompanyComponent extends BaseCompanyComponent {
160
101
  protected route: ActivatedRoute;
161
102
  private systemSection;
162
- private profileSelector;
163
103
  ADDRESS_SECTION: string;
164
104
  SUBCOMPANY_SECTION: string;
165
- constructor(app: ApplicationService, route: ActivatedRoute, systemSection: SystemSectionService, profileSelector: PresentationProfileActionService);
105
+ constructor(app: ApplicationService, route: ActivatedRoute, systemSection: SystemSectionService);
166
106
  ngOnInit(): void;
167
- selectColumns(): void;
168
107
  static ɵfac: i0.ɵɵFactoryDeclaration<CompanyComponent, never>;
169
108
  static ɵcmp: i0.ɵɵComponentDeclaration<CompanyComponent, "msw-company", never, {}, {}, never, ["[actionsPanelContent]", "*"], false, never>;
170
109
  }
@@ -3445,6 +3384,53 @@ export declare class PresentationProfileScreenComponent extends BasePresentation
3445
3384
  static ɵfac: i0.ɵɵFactoryDeclaration<PresentationProfileScreenComponent, never>;
3446
3385
  static ɵcmp: i0.ɵɵComponentDeclaration<PresentationProfileScreenComponent, "alg-presentation-profile-screen", never, {}, {}, never, ["[actionsPanelContent]", "*"], false, never>;
3447
3386
  }
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
+ }
3448
3434
  export interface PpResolverConfig {
3449
3435
  metaEntityKey: string;
3450
3436
  purpose?: number;
@@ -3596,6 +3582,18 @@ export declare class SystemSelectorMapperService extends SelectorMapperServiceBa
3596
3582
  static ɵfac: i0.ɵɵFactoryDeclaration<SystemSelectorMapperService, never>;
3597
3583
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3598
3584
  }
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
+ }
3599
3597
  /** Global entry point for all Presentation Profile concerns. Bound to PP_SERVICE injection token. */
3600
3598
  export declare class PpFacadeService implements IPpService {
3601
3599
  private readonly resolver;
@@ -3687,7 +3685,7 @@ export declare abstract class BaseEntityFilesComponent extends BaseComponent<Ent
3687
3685
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseEntityFilesComponent, never, never, {}, {}, never, never, true, never>;
3688
3686
  }
3689
3687
  /** Composants des entités du module System (composants spécifiques), à déclarer dans son module Angular. */
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)[];
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)[];
3691
3689
  /** Routes des composants des entités du module System (clé d'entité), à ajouter à RouterModule.forChild. */
3692
3690
  export declare const SystemGeneratedRoutes: Routes;
3693
3691
  /**