@dflat-core/web 1.7.2086 → 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.2086",
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": {
@@ -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. OrderNumber). 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;
@@ -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
  }
@@ -808,6 +811,7 @@ export interface PresentationProfileItemView extends EntityViewModel {
808
811
  Multiplier?: number;
809
812
  NullCaseText?: string;
810
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;
@@ -1230,6 +1235,7 @@ export interface CustomFieldOptionsView extends EntityViewModel {
1230
1235
  ModificationDate?: Date;
1231
1236
  ModifiedBy?: string;
1232
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 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)[];
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
  /**