@dflat-core/web 1.7.2085 → 1.7.2087

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.7.2085",
3
+ "version": "1.7.2087",
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": {
@@ -291,6 +291,10 @@ export interface EntityImage {
291
291
  EntityId?: number;
292
292
  Url?: string;
293
293
  }
294
+ export interface DistinctValuesResult {
295
+ HasMore?: boolean;
296
+ Values?: any[];
297
+ }
294
298
  export declare enum TextSearch {
295
299
  Contains = 0,
296
300
  StartsWith = 1,
@@ -317,9 +317,12 @@ export declare class EntityConfigContext<TData extends EntityViewModel, TFilter
317
317
  cellFocus: boolean;
318
318
  /**
319
319
  * Lignes déplaçables à la souris (poignée dans la première cellule) : propriété numérique qui porte
320
- * leur ordre (ex. DisplayOrder). Les lignes déplacées passent en modification. Set from the component TS.
320
+ * leur ordre (ex. OrderNumber, FLOAT) : seule la ligne déplacée change, avec la moyenne des valeurs de ses
321
+ * voisines, et passe en modification. Set from the component TS.
321
322
  */
322
323
  rowOrderProperty?: string;
324
+ /** Rang affiché des lignes déplaçables, calculé par la vue (ex. OrderRank) : suit le déplacement jusqu'au rechargement. */
325
+ rowRankProperty?: string;
323
326
  constructor(dataService: DataService, entityKey: string);
324
327
  getApiViewModel(id: number): Observable<EntityViewModelWithFields<TData>>;
325
328
  getExtendedProperties(ids: number[]): Observable<ExtendedProperty[]>;
@@ -4636,7 +4639,12 @@ export declare class DataGridComponent<TData extends EntityViewModel> implements
4636
4639
  onRowHandleMouseDown(row: TData, event: MouseEvent): void;
4637
4640
  /** Souris déplacée : la ligne prend la place de la ligne survolée dès que la souris en passe le milieu. */
4638
4641
  private onRowDragMove;
4639
- /** Bouton relâché : valeurs d'ordre redistribuées dans le nouvel ordre des lignes affichées. */
4642
+ /**
4643
+ * Bouton relâché : seule la ligne déplacée change de valeur d'ordre, la moyenne de celles de ses
4644
+ * voisines (précédente - 1 ou suivante + 1 en bout de liste). Valeurs absentes ou en double : les
4645
+ * lignes affichées sont renumérotées à la suite de la page (Offset + 1, + 2...). Le rang affiché
4646
+ * (config.rowRankProperty, calculé par la vue) suit le nouvel ordre jusqu'au rechargement.
4647
+ */
4640
4648
  private onRowDragEnd;
4641
4649
  /** Largeur choisie par colonne (propriété), en pixels. */
4642
4650
  columnWidths: Record<string, number>;
@@ -100,6 +100,7 @@ export interface MetaEntityFormFieldView extends EntityViewModel {
100
100
  MultipleSelection?: boolean;
101
101
  NotDefaultRequired?: boolean;
102
102
  OrderNumber?: number;
103
+ OrderRank?: number;
103
104
  PropertyName?: string;
104
105
  RowVersion?: Date;
105
106
  ToolTip?: string;
@@ -177,7 +178,6 @@ export interface PresentationProfileItem extends EntityViewModel {
177
178
  DeletionDate?: Date;
178
179
  DeletionStatus?: boolean;
179
180
  DisplayFormat?: string;
180
- DisplayOrder?: number;
181
181
  DisplayWidth?: number;
182
182
  EnumEntityName?: string;
183
183
  GroupId?: number;
@@ -194,6 +194,7 @@ export interface PresentationProfileItem extends EntityViewModel {
194
194
  ModifiedBy?: string;
195
195
  Multiplier?: number;
196
196
  NullCaseText?: string;
197
+ OrderNumber?: number;
197
198
  PresentationProfileId?: number;
198
199
  RowVersion?: Date;
199
200
  }
@@ -236,6 +237,7 @@ export interface MetaEntityFormSectionView extends EntityViewModel {
236
237
  ModifiedBy?: string;
237
238
  Name?: string;
238
239
  OrderNumber?: number;
240
+ OrderRank?: number;
239
241
  RowVersion?: Date;
240
242
  }
241
243
  export interface CustomFieldGroupItemView extends EntityViewModel {
@@ -257,6 +259,7 @@ export interface CustomFieldGroupItemView extends EntityViewModel {
257
259
  ModificationDate?: Date;
258
260
  ModifiedBy?: string;
259
261
  OrderNumber?: number;
262
+ OrderRank?: number;
260
263
  RowVersion?: Date;
261
264
  SourceLabel?: string;
262
265
  }
@@ -794,7 +797,6 @@ export interface PresentationProfileItemView extends EntityViewModel {
794
797
  DeletionDate?: Date;
795
798
  DeletionStatus?: boolean;
796
799
  DisplayFormat?: string;
797
- DisplayOrder?: number;
798
800
  DisplayWidth?: number;
799
801
  HandleError?: boolean;
800
802
  Id?: number;
@@ -808,6 +810,8 @@ export interface PresentationProfileItemView extends EntityViewModel {
808
810
  ModifiedBy?: string;
809
811
  Multiplier?: number;
810
812
  NullCaseText?: string;
813
+ OrderNumber?: number;
814
+ OrderRank?: number;
811
815
  PresentationProfileId?: number;
812
816
  RowVersion?: Date;
813
817
  }
@@ -865,6 +869,7 @@ export interface ParameterView extends EntityViewModel {
865
869
  Label?: string;
866
870
  ModificationDate?: Date;
867
871
  ModifiedBy?: string;
872
+ OrderRank?: number;
868
873
  ParameterOrderNumber?: number;
869
874
  ParameterSectionCode?: string;
870
875
  ParameterSectionDescription?: string;
@@ -1223,13 +1228,14 @@ export interface CustomFieldOptionsView extends EntityViewModel {
1223
1228
  DeletedBy?: string;
1224
1229
  DeletionDate?: Date;
1225
1230
  DeletionStatus?: boolean;
1226
- DisplayOrder?: number;
1227
1231
  DisplayValue?: string;
1228
1232
  Id?: number;
1229
1233
  IsDefault?: boolean;
1230
1234
  IsDefaultImage?: string;
1231
1235
  ModificationDate?: Date;
1232
1236
  ModifiedBy?: string;
1237
+ OrderNumber?: number;
1238
+ OrderRank?: number;
1233
1239
  RowVersion?: Date;
1234
1240
  Value?: string;
1235
1241
  }
@@ -4178,7 +4178,7 @@ export declare abstract class BaseEntityFilesComponent extends BaseComponent<Ent
4178
4178
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseEntityFilesComponent, never, never, {}, {}, never, never, true, never>;
4179
4179
  }
4180
4180
  /** Composants des entités du module System (composants spécifiques), à déclarer dans son module Angular. */
4181
- export declare const SystemGeneratedComponents: (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 ExchangeRateComponent | typeof FilesComponent | typeof KeywordComponent | typeof MetaEntityComponent | 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 ResourceKeyComponent | typeof ResourceLanguageComponent | typeof ResourceTranslationComponent | typeof RoleComponent | 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)[];
4181
+ 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)[];
4182
4182
  /** Routes des composants des entités du module System (clé d'entité), à ajouter à RouterModule.forChild. */
4183
4183
  export declare const SystemGeneratedRoutes: Routes;
4184
4184
  /**