@dflat-core/web 1.7.2088 → 1.7.2090

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.2088",
3
+ "version": "1.7.2090",
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": {
@@ -198,7 +198,7 @@ export declare class AuthService {
198
198
  * Connexion par le jeton d'identité remis par un fournisseur externe. Le serveur vérifie le
199
199
  * jeton, retrouve ou crée le compte, puis répond comme la connexion par mot de passe.
200
200
  */
201
- loginExternal(provider: string, idToken: string, rememberMe: boolean, firstName?: string, lastName?: string): Observable<IUserCredential>;
201
+ loginExternal(provider: string, idToken: string, rememberMe: boolean, firstName?: string, lastName?: string, authorizationCode?: string, redirectUri?: string): Observable<IUserCredential>;
202
202
  register(captchaToken: string, firstName: string, lastName: string, email: string, password: string, rememberMe: boolean): Observable<IUserCredential>;
203
203
  activate(code: string): Observable<Response>;
204
204
  saveUserInfos(user: any, userDetails: string, rememberMe?: boolean): void;
@@ -272,6 +272,10 @@ export interface IExternalLoginResult {
272
272
  firstName?: string;
273
273
  /** Nom transmis hors du jeton (Apple, à la première connexion). */
274
274
  lastName?: string;
275
+ /** Apple : code d'autorisation, échangé par le serveur contre un jeton de rafraîchissement (révoqué à la suppression du compte). */
276
+ authorizationCode?: string;
277
+ /** Apple : adresse de retour de la demande d'autorisation, exigée à l'échange du code. */
278
+ redirectUri?: string;
275
279
  }
276
280
  /**
277
281
  * Lance, dans le navigateur, la connexion chez un fournisseur d'identité externe et en récupère
@@ -65,6 +65,15 @@ export declare class Utilities {
65
65
  static printShortDate(date: Date, separator?: string, dateTimeSeparator?: string): string;
66
66
  static parseDate(date: any): Date;
67
67
  static Format2Digits(n: any): string;
68
+ /**
69
+ * Formate une date JavaScript pour un paramètre envoyé à l'API : date et heure locales, telles que saisies,
70
+ * suivies de « Z » comme l'a toujours fait le socle. Une date sans heure (minuit local) donne donc
71
+ * « AAAA-MM-JJT00:00:00.000Z », comme avant ; une date avec une heure garde désormais son heure
72
+ * (avant, elle était ramenée à minuit).
73
+ * @param date Date à formater.
74
+ * @returns Texte ISO de la date et de l'heure locales.
75
+ */
76
+ static formatDateParam(date: Date): string;
68
77
  static printDuration(start: Date, end: Date): string;
69
78
  static getAge(birthDate: any, otherDate: any): number;
70
79
  static isDateAEarlierThanDateB(dateA: Date, dateB: Date): boolean;
@@ -317,10 +317,12 @@ export interface LoginViewModel {
317
317
  Username?: string;
318
318
  }
319
319
  export interface ExternalLoginViewModel {
320
+ AuthorizationCode?: string;
320
321
  FirstName?: string;
321
322
  IdToken?: string;
322
323
  LastName?: string;
323
324
  Provider?: string;
325
+ RedirectUri?: string;
324
326
  }
325
327
  export interface ExternalLoginProviderViewModel {
326
328
  ClientId?: string;
@@ -727,7 +727,7 @@ export declare class IdentityUxModule {
727
727
  static ɵinj: i0.ɵɵInjectorDeclaration<IdentityUxModule>;
728
728
  }
729
729
  /** Composants des entités du module Identity (composants spécifiques), à déclarer dans son module Angular. */
730
- export declare const IdentityGeneratedComponents: (typeof RoleComponent | typeof UserGroupDefinitionComponent | typeof PresentationProfileAssignmentComponent | typeof RolePermissionComponent | typeof UserAccountComponent | typeof UserAccountLoginComponent | typeof UserAccountRoleComponent | typeof UserAccountTokenComponent | typeof UserFavoriteComponent | typeof UserGroupComponent | typeof UserHistoryComponent | typeof UserPermissionViewComponent | typeof UserSessionComponent)[];
730
+ export declare const IdentityGeneratedComponents: (typeof RoleComponent | typeof UserAccountComponent | typeof PresentationProfileAssignmentComponent | typeof RolePermissionComponent | typeof UserAccountLoginComponent | typeof UserAccountRoleComponent | typeof UserAccountTokenComponent | typeof UserFavoriteComponent | typeof UserGroupComponent | typeof UserGroupDefinitionComponent | typeof UserHistoryComponent | typeof UserPermissionViewComponent | typeof UserSessionComponent)[];
731
731
  /** Routes des composants des entités du module Identity (clé d'entité), à ajouter à RouterModule.forChild. */
732
732
  export declare const IdentityGeneratedRoutes: Routes;
733
733
  /**
@@ -1811,7 +1811,7 @@ export declare class MetaUxModule {
1811
1811
  static ɵinj: i0.ɵɵInjectorDeclaration<MetaUxModule>;
1812
1812
  }
1813
1813
  /** Composants des entités du module Meta (composants spécifiques), à déclarer dans son module Angular. */
1814
- export declare const MetaGeneratedComponents: (typeof MetaEntityFieldComponent | typeof CustomFieldComponent | typeof CustomFieldGroupComponent | typeof CustomFieldGroupEntityComponent | typeof CustomFieldGroupItemComponent | typeof CustomFieldOptionsComponent | typeof FilesComponent | typeof KeywordComponent | typeof MetaEntityComponent | typeof MetaEntityFormComponent | typeof MetaEntityFormFieldComponent | typeof MetaEntityFormSectionComponent | typeof MetaEntityKeywordComponent | typeof MetaEntityRelationComponent | typeof MetaEntityRelationDefinitionComponent | typeof MetaEntityTranslationComponent | typeof MetaEntityViewFieldComponent | typeof ParameterComponent | typeof ParameterSectionComponent | typeof ParameterValueComponent | typeof PermissionComponent | typeof PresentationProfileItemComponent | typeof ResourceKeyComponent | typeof ResourceLanguageComponent | typeof ResourceTranslationComponent | typeof VersionComponent)[];
1814
+ export declare const MetaGeneratedComponents: (typeof MetaEntityFieldComponent | typeof CustomFieldGroupEntityComponent | typeof CustomFieldOptionsComponent | typeof CustomFieldGroupComponent | typeof CustomFieldGroupItemComponent | typeof CustomFieldComponent | typeof FilesComponent | typeof KeywordComponent | typeof MetaEntityComponent | typeof MetaEntityFormComponent | typeof MetaEntityFormFieldComponent | typeof MetaEntityFormSectionComponent | typeof MetaEntityKeywordComponent | typeof MetaEntityRelationComponent | typeof MetaEntityRelationDefinitionComponent | typeof MetaEntityTranslationComponent | typeof MetaEntityViewFieldComponent | typeof ParameterComponent | typeof ParameterSectionComponent | typeof ParameterValueComponent | typeof PermissionComponent | typeof PresentationProfileItemComponent | typeof ResourceTranslationComponent | typeof ResourceKeyComponent | typeof ResourceLanguageComponent | typeof VersionComponent)[];
1815
1815
  /** Routes des composants des entités du module Meta (clé d'entité), à ajouter à RouterModule.forChild. */
1816
1816
  export declare const MetaGeneratedRoutes: Routes;
1817
1817
  /**
@@ -2897,7 +2897,7 @@ export declare class DflatAppModule {
2897
2897
  static ɵinj: i0.ɵɵInjectorDeclaration<DflatAppModule>;
2898
2898
  }
2899
2899
  /** Composants des entités du module System (composants spécifiques), à déclarer dans son module Angular. */
2900
- export declare const SystemGeneratedComponents: (typeof TvaRateComponent | typeof ExchangeRateComponent | typeof DataSourceComponent | typeof AddressComponent | typeof CityComponent | typeof CompanyComponent | typeof CountryComponent | typeof CurrencyComponent | typeof DashboardComponent | typeof DashboardFilterComponent | typeof DashboardWidgetComponent | typeof DashboardWidgetDimensionComponent | typeof DashboardWidgetMeasureComponent | typeof DataSourceCompanyComponent | typeof DayInfoComponent | typeof NewsComponent | typeof RatingComponent | typeof RatingSummaryComponent | typeof SubcompanyComponent | typeof UserAccountCompanyComponent | typeof UserAccountNewsComponent)[];
2900
+ export declare const SystemGeneratedComponents: (typeof DataSourceComponent | typeof AddressComponent | typeof CityComponent | typeof CompanyComponent | typeof CountryComponent | typeof CurrencyComponent | typeof DashboardComponent | typeof DashboardFilterComponent | typeof DashboardWidgetComponent | typeof DashboardWidgetDimensionComponent | typeof DashboardWidgetMeasureComponent | typeof DataSourceCompanyComponent | typeof DayInfoComponent | typeof ExchangeRateComponent | typeof NewsComponent | typeof RatingComponent | typeof RatingSummaryComponent | typeof SubcompanyComponent | typeof TvaRateComponent | typeof UserAccountCompanyComponent | typeof UserAccountNewsComponent)[];
2901
2901
  /** Routes des composants des entités du module System (clé d'entité), à ajouter à RouterModule.forChild. */
2902
2902
  export declare const SystemGeneratedRoutes: Routes;
2903
2903
  /**