@dflat-core/web 1.0.62 → 1.0.64
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/fesm2022/dflat-core-web-core-ux.mjs +126 -13
- package/fesm2022/dflat-core-web-core-ux.mjs.map +1 -1
- package/fesm2022/dflat-core-web-system-ux.mjs +4 -14
- package/fesm2022/dflat-core-web-system-ux.mjs.map +1 -1
- package/package.json +1 -1
- package/types/dflat-core-web-core-ux.d.ts +46 -10
- package/types/dflat-core-web-system-ux.d.ts +64 -66
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { AfterContentInit, AfterViewChecked, AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, EventEmitter, InjectionToken, Injector, IterableDiffers, NgZone, OnChanges, OnDestroy, OnInit, PipeTransform, QueryList, Renderer2, SimpleChanges, TemplateRef, Type, ViewContainerRef } from "@angular/core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as i90 from "@dflat-core/web/core-model";
|
|
4
4
|
import { ActionDescriptor, AggregateFunction, AggregationValue, ColumnDescriptor, DictionnaryWrapper, EntityConfig, EntityViewModel, EntityViewModelWithFields, ExtendedProperty, FieldDescriptor, FieldEvent, FieldValidators, FilterDescriptor, FilterQuery, FilterRow, FilterType, FilterViewModel, IFilterDescriptorExtra, Notification, PagedList, PropertyEditorEvent, RunActionContext, SaveResult, SaveResults, Section, SectionError, SpecificSection, TextZoneButtonEvent, TrackRecordProperty, User } from "@dflat-core/web/core-model";
|
|
5
5
|
import { AuthService, BreadcrumbService, BusMessageService, FilterService, HubService, LocalStoreManager, MenuItem, MenuService, NotificationMqService, UserService } from "@dflat-core/web/core-services";
|
|
6
|
-
import * as
|
|
7
|
-
import { AbstractControl, ControlValueAccessor, FormBuilder, FormControl, FormGroup, NgForm, UntypedFormControl, UntypedFormGroup, ValidatorFn } from "@angular/forms";
|
|
6
|
+
import * as i91 from "@angular/forms";
|
|
7
|
+
import { AbstractControl, ControlValueAccessor, FormBuilder, FormControl, FormGroup, NgForm, UntypedFormControl, UntypedFormGroup, ValidationErrors, Validator, ValidatorFn } from "@angular/forms";
|
|
8
8
|
import { BehaviorSubject, Observable, Subject, Subscription } from "rxjs";
|
|
9
9
|
import { DataService, EntityDataService } from "@dflat-core/web/core-data";
|
|
10
10
|
import { ActionDataService, FilesDataService } from "@dflat-core/web/system-data";
|
|
11
|
-
import * as
|
|
11
|
+
import * as i89 from "@angular/common";
|
|
12
12
|
import { DatePipe, Location } from "@angular/common";
|
|
13
|
-
import * as
|
|
13
|
+
import * as i88 from "@angular/router";
|
|
14
14
|
import { ActivatedRoute, ActivatedRouteSnapshot, Router, RouterStateSnapshot } from "@angular/router";
|
|
15
15
|
import { SelectionType, TableColumn } from "@swimlane/ngx-datatable";
|
|
16
16
|
import { ActiveToast, IndividualConfig, ToastrService } from "ngx-toastr";
|
|
17
17
|
import { Guid } from "guid-typescript";
|
|
18
|
-
import * as
|
|
18
|
+
import * as i94 from "ngx-bootstrap/modal";
|
|
19
19
|
import { BsModalRef, BsModalService, ModalOptions } from "ngx-bootstrap/modal";
|
|
20
|
-
import * as
|
|
20
|
+
import * as i93 from "ngx-bootstrap/datepicker";
|
|
21
21
|
import { BsDatepickerConfig, BsLocaleService } from "ngx-bootstrap/datepicker";
|
|
22
22
|
import { EnvironmentBase } from "@dflat-core/web/core";
|
|
23
23
|
import { AnimationBuilder } from "@angular/animations";
|
|
24
24
|
import { DomSanitizer, SafeUrl } from "@angular/platform-browser";
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
25
|
+
import * as i92 from "@ng-select/ng-select";
|
|
26
|
+
import * as i97 from "ngx-bootstrap/focus-trap";
|
|
27
27
|
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
28
28
|
export type FacadeAction = ((param?: any) => void) | ((param?: any) => Observable<ActionResult<any>>);
|
|
29
29
|
export declare class ActionDefinition {
|
|
@@ -4997,6 +4997,42 @@ export declare class BaseShortcutsDirective implements OnDestroy {
|
|
|
4997
4997
|
};
|
|
4998
4998
|
}, {}, never, never, false, never>;
|
|
4999
4999
|
}
|
|
5000
|
+
declare namespace decimal_input_directive_d_exports {
|
|
5001
|
+
export { DecimalInputDirective, formatDecimal, parseDecimal };
|
|
5002
|
+
}
|
|
5003
|
+
/**
|
|
5004
|
+
* Lit un nombre décimal saisi : virgule ou point comme séparateur décimal, signe moins et espaces
|
|
5005
|
+
* de milliers admis.
|
|
5006
|
+
* @param text Texte saisi.
|
|
5007
|
+
* @returns Le nombre, null si le texte est vide, undefined s'il n'est pas un nombre décimal.
|
|
5008
|
+
*/
|
|
5009
|
+
export declare function parseDecimal(text: string | null | undefined): number | null | undefined;
|
|
5010
|
+
/**
|
|
5011
|
+
* Affiche un nombre décimal dans un champ de saisie, avec la virgule comme séparateur décimal.
|
|
5012
|
+
* @param value Valeur du contrôle.
|
|
5013
|
+
*/
|
|
5014
|
+
export declare function formatDecimal(value: unknown): string;
|
|
5015
|
+
/**
|
|
5016
|
+
* Champ de saisie d'un nombre décimal : le contrôle de formulaire porte un nombre (ou null), le
|
|
5017
|
+
* champ affiche le texte saisi (« 12,5 », « -3.25 »). Un texte qui n'est pas un nombre décimal
|
|
5018
|
+
* laisse le contrôle à null, avec l'erreur de validation `decimal`.
|
|
5019
|
+
*/
|
|
5020
|
+
export declare class DecimalInputDirective implements ControlValueAccessor, Validator {
|
|
5021
|
+
private host;
|
|
5022
|
+
private invalid;
|
|
5023
|
+
private onChange;
|
|
5024
|
+
private onTouched;
|
|
5025
|
+
constructor(host: ElementRef<HTMLInputElement>);
|
|
5026
|
+
onInput(): void;
|
|
5027
|
+
onBlur(): void;
|
|
5028
|
+
writeValue(value: unknown): void;
|
|
5029
|
+
registerOnChange(fn: (value: number | null) => void): void;
|
|
5030
|
+
registerOnTouched(fn: () => void): void;
|
|
5031
|
+
setDisabledState(isDisabled: boolean): void;
|
|
5032
|
+
validate(_control: AbstractControl): ValidationErrors | null;
|
|
5033
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DecimalInputDirective, never>;
|
|
5034
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DecimalInputDirective, "input[algDecimalInput]", never, {}, {}, never, never, false, never>;
|
|
5035
|
+
}
|
|
5000
5036
|
declare namespace field_component_d_exports {
|
|
5001
5037
|
export { FieldComponent };
|
|
5002
5038
|
}
|
|
@@ -5500,7 +5536,7 @@ export declare class RowRefDirective implements AfterViewInit, OnDestroy {
|
|
|
5500
5536
|
}
|
|
5501
5537
|
export declare class CoreUxModule {
|
|
5502
5538
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreUxModule, never>;
|
|
5503
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreUxModule, [typeof ActionsComponent, typeof ActionsContentComponent, typeof BreadcrumbComponent, typeof CollapseDirective, typeof ConfirmModalComponent, typeof DatagridCustomComponent, typeof DataGridComponent, typeof OldDataPageComponent, typeof DefaultLayoutComponent, typeof DialogComponent, typeof DynamicFieldComponent, typeof DynamicFilterComponent, typeof DynamicFilterExtraComponent, typeof DynamicFilterPanel, typeof DynamicFormComponent, typeof ImageComponent, typeof ExportDataModalComponent, typeof TrackRecordModalComponent, typeof FilterSummaryComponent, typeof GridRowComponent, typeof DatagridCellComponent, typeof InputSelectorComponent, typeof InputTreeSelectorComponent, typeof InsertionDirective, typeof LoginLayoutComponent, typeof LogsComponent, typeof MenuComponent, typeof MenuDashboardComponent, typeof PaginatorComponent, typeof PropertyGridComponent, typeof Tab, typeof TabHeadingDirective, typeof Tabset, typeof TabTranscludeDirective, typeof ToDefinePipe, typeof ToFixedSizeIntegerPipe, typeof ValidateOnEnterDirective, typeof ValidationErrorComponent, typeof ValidationModalComponent, typeof TextViewerComponent, typeof EditModeDirective, typeof ViewModeDirective, typeof FocusableDirective, typeof OnEnterDirective, typeof TextViewerComponent, typeof WizardComponent, typeof WizardStepComponent, typeof TooltipDirective, typeof AddclassDirective, typeof BaseItemListComponent, typeof DroppableDirective, typeof DraggableDirective, typeof ParameterFieldComponent, typeof BaseParameterTypeComponent, typeof BaseArrayParameterTypeComponent, typeof ParameterTypeTextComponent, typeof ParameterTypeNumberComponent, typeof ParameterTypeBoolComponent, typeof ParameterTypeDateComponent, typeof ParameterTypePasswordComponent, typeof ParameterTypeTextArrayComponent, typeof ParameterTypeNumberArrayComponent, typeof ParameterTypeDateArrayComponent, typeof ParameterTypeBoolArrayComponent, typeof TimePickerComponent, typeof ExtendedActionComponent, typeof FormPasswordComponent, typeof SearchResultsComponent, typeof LayoutHandlerDirective, typeof OldLayoutHandlerDirective, typeof PageLayoutComponent, typeof HideOnThresholdDirective, typeof BaseShortcutsDirective, typeof NewEditorComponent, typeof PropertyEditorComponent, typeof FieldComponent, typeof EditorTabSetComponent, typeof EditorTabComponent, typeof BreadcrumbComponent, typeof NewPaginatorComponent, typeof FilterSummaryPanelComponent, typeof ActionPanelComponent, typeof StandardPageLayoutComponent, typeof DataListComponent, typeof CellRendererComponent, typeof SelectorComponent, typeof CellRendererComponent, typeof FilterFormModalComponent, typeof GridFieldComponent], [typeof
|
|
5539
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreUxModule, [typeof ActionsComponent, typeof ActionsContentComponent, typeof BreadcrumbComponent, typeof CollapseDirective, typeof ConfirmModalComponent, typeof DatagridCustomComponent, typeof DataGridComponent, typeof OldDataPageComponent, typeof DefaultLayoutComponent, typeof DialogComponent, typeof DynamicFieldComponent, typeof DynamicFilterComponent, typeof DynamicFilterExtraComponent, typeof DynamicFilterPanel, typeof DynamicFormComponent, typeof ImageComponent, typeof ExportDataModalComponent, typeof TrackRecordModalComponent, typeof FilterSummaryComponent, typeof GridRowComponent, typeof DatagridCellComponent, typeof InputSelectorComponent, typeof InputTreeSelectorComponent, typeof InsertionDirective, typeof LoginLayoutComponent, typeof LogsComponent, typeof MenuComponent, typeof MenuDashboardComponent, typeof PaginatorComponent, typeof PropertyGridComponent, typeof Tab, typeof TabHeadingDirective, typeof Tabset, typeof TabTranscludeDirective, typeof ToDefinePipe, typeof ToFixedSizeIntegerPipe, typeof ValidateOnEnterDirective, typeof ValidationErrorComponent, typeof ValidationModalComponent, typeof TextViewerComponent, typeof EditModeDirective, typeof ViewModeDirective, typeof FocusableDirective, typeof OnEnterDirective, typeof TextViewerComponent, typeof WizardComponent, typeof WizardStepComponent, typeof TooltipDirective, typeof AddclassDirective, typeof BaseItemListComponent, typeof DroppableDirective, typeof DraggableDirective, typeof ParameterFieldComponent, typeof BaseParameterTypeComponent, typeof BaseArrayParameterTypeComponent, typeof ParameterTypeTextComponent, typeof ParameterTypeNumberComponent, typeof ParameterTypeBoolComponent, typeof ParameterTypeDateComponent, typeof ParameterTypePasswordComponent, typeof ParameterTypeTextArrayComponent, typeof ParameterTypeNumberArrayComponent, typeof ParameterTypeDateArrayComponent, typeof ParameterTypeBoolArrayComponent, typeof TimePickerComponent, typeof ExtendedActionComponent, typeof FormPasswordComponent, typeof SearchResultsComponent, typeof LayoutHandlerDirective, typeof OldLayoutHandlerDirective, typeof PageLayoutComponent, typeof HideOnThresholdDirective, typeof BaseShortcutsDirective, typeof DecimalInputDirective, typeof NewEditorComponent, typeof PropertyEditorComponent, typeof FieldComponent, typeof EditorTabSetComponent, typeof EditorTabComponent, typeof BreadcrumbComponent, typeof NewPaginatorComponent, typeof FilterSummaryPanelComponent, typeof ActionPanelComponent, typeof StandardPageLayoutComponent, typeof DataListComponent, typeof CellRendererComponent, typeof SelectorComponent, typeof CellRendererComponent, typeof FilterFormModalComponent, typeof GridFieldComponent], [typeof i88.RouterModule, typeof i89.CommonModule, typeof i90.CoreModelModule, typeof i91.FormsModule, typeof i91.ReactiveFormsModule, typeof i92.NgSelectModule, typeof i93.BsDatepickerModule, typeof i94.ModalModule, typeof i91.ReactiveFormsModule, typeof GridStylePipe, typeof RowRefDirective, typeof i97.FocusTrapDirective], [typeof ActionsComponent, typeof ActionsContentComponent, typeof BreadcrumbComponent, typeof CollapseDirective, typeof ConfirmModalComponent, typeof DatagridCustomComponent, typeof DataGridComponent, typeof OldDataPageComponent, typeof DefaultLayoutComponent, typeof DialogComponent, typeof DynamicFieldComponent, typeof DynamicFilterComponent, typeof DynamicFilterExtraComponent, typeof DynamicFilterPanel, typeof DynamicFormComponent, typeof ImageComponent, typeof ExportDataModalComponent, typeof TrackRecordModalComponent, typeof FilterSummaryComponent, typeof GridRowComponent, typeof DatagridCellComponent, typeof InputSelectorComponent, typeof InputTreeSelectorComponent, typeof InsertionDirective, typeof LoginLayoutComponent, typeof LogsComponent, typeof MenuComponent, typeof MenuDashboardComponent, typeof PaginatorComponent, typeof PropertyGridComponent, typeof Tab, typeof TabHeadingDirective, typeof Tabset, typeof TabTranscludeDirective, typeof ToDefinePipe, typeof ToFixedSizeIntegerPipe, typeof ValidateOnEnterDirective, typeof ValidationErrorComponent, typeof ValidationModalComponent, typeof TextViewerComponent, typeof EditModeDirective, typeof ViewModeDirective, typeof FocusableDirective, typeof OnEnterDirective, typeof TextViewerComponent, typeof WizardComponent, typeof WizardStepComponent, typeof TooltipDirective, typeof AddclassDirective, typeof BaseItemListComponent, typeof DroppableDirective, typeof DraggableDirective, typeof ParameterFieldComponent, typeof BaseParameterTypeComponent, typeof BaseArrayParameterTypeComponent, typeof ParameterTypeTextComponent, typeof ParameterTypeNumberComponent, typeof ParameterTypeBoolComponent, typeof ParameterTypeDateComponent, typeof ParameterTypePasswordComponent, typeof ParameterTypeTextArrayComponent, typeof ParameterTypeNumberArrayComponent, typeof ParameterTypeDateArrayComponent, typeof ParameterTypeBoolArrayComponent, typeof TimePickerComponent, typeof ExtendedActionComponent, typeof FormPasswordComponent, typeof SearchResultsComponent, typeof LayoutHandlerDirective, typeof OldLayoutHandlerDirective, typeof PageLayoutComponent, typeof HideOnThresholdDirective, typeof BaseShortcutsDirective, typeof DecimalInputDirective, typeof NewEditorComponent, typeof PropertyEditorComponent, typeof FieldComponent, typeof EditorTabSetComponent, typeof EditorTabComponent, typeof BreadcrumbComponent, typeof NewPaginatorComponent, typeof FilterSummaryPanelComponent, typeof ActionPanelComponent, typeof StandardPageLayoutComponent, typeof DataListComponent, typeof CellRendererComponent, typeof SelectorComponent, typeof CellRendererComponent, typeof FilterFormModalComponent, typeof GridFieldComponent]>;
|
|
5504
5540
|
static ɵinj: i0.ɵɵInjectorDeclaration<CoreUxModule>;
|
|
5505
5541
|
}
|
|
5506
5542
|
export declare class CanDeactivateGuard {
|
|
@@ -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
|
|
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
|
|
3688
|
+
export declare const SystemGeneratedComponents: (typeof RoleComponent | typeof MetaEntityFieldComponent | typeof CustomFieldGroupEntityComponent | typeof CustomFieldGroupComponent | typeof CustomFieldGroupItemComponent | typeof CustomFieldOptionsComponent | typeof AddressComponent | typeof CompanyComponent | typeof CountryComponent | typeof CurrencyComponent | typeof CustomFieldComponent | typeof CustomFieldValueComponent | typeof DayInfoComponent | typeof ErrorCategoryComponent | typeof ExchangeRateComponent | typeof FilesComponent | typeof KeywordComponent | 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 RequestComponent | typeof RequestEntityComponent | typeof RequestResultComponent | typeof RequestTypeComponent | typeof ResourceKeyComponent | typeof ResourceLanguageComponent | typeof ResourceTranslationComponent | typeof RolePermissionComponent | typeof SubcompanyComponent | typeof SupplierComponent | typeof SupplierCompanyComponent | typeof SynchronizedCompanyComponent | typeof TvaRateComponent | 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)[];
|
|
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
|
/**
|