@dsivd/prestations-ng 19.2.0-beta.1 → 19.2.0-beta.3

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.
@@ -269,17 +269,15 @@ class SessionInfo {
269
269
  if (this.neverConnected) {
270
270
  return of(null);
271
271
  }
272
- if (!this.pulling_) {
273
- this.pulling_ = this.http
274
- .get(SESSION_INFO_API_URL)
275
- .pipe(map((r) => {
276
- if (r) {
277
- this.sessionData = r;
278
- return r;
279
- }
280
- return null;
281
- }), shareReplay(1));
282
- }
272
+ this.pulling_ ??= this.http
273
+ .get(SESSION_INFO_API_URL)
274
+ .pipe(map((r) => {
275
+ if (r) {
276
+ this.sessionData = r;
277
+ return r;
278
+ }
279
+ return null;
280
+ }), shareReplay(1));
283
281
  return this.pulling_;
284
282
  }
285
283
  get neverConnected() {
@@ -2254,7 +2252,9 @@ class GesdemHandlerService {
2254
2252
  url = `api/${this.prefix}`;
2255
2253
  }
2256
2254
  url = `${url}/${reference}/action-statut`;
2257
- return this.http.get(url).pipe(map((status) => status), catchError((response) => this.handleGesdemError(reference, null, response)));
2255
+ return this.http
2256
+ .get(url)
2257
+ .pipe(catchError((response) => this.handleGesdemError(reference, null, response)));
2258
2258
  }
2259
2259
  validate(form) {
2260
2260
  let url = 'api/validated-only';
@@ -3122,7 +3122,7 @@ function getConcurrentSafeCall(fn) {
3122
3122
  class AbstractPageComponent {
3123
3123
  foehnFormComponent = viewChild(FoehnFormComponent, ...(ngDevMode ? [{ debugName: "foehnFormComponent" }] : /* istanbul ignore next */ []));
3124
3124
  form = null;
3125
- reference = null;
3125
+ reference = undefined;
3126
3126
  _destroyRef = inject(DestroyRef);
3127
3127
  _gesdemService = inject(GesdemHandlerService);
3128
3128
  _gesdemEventService = inject(GesdemEventService);
@@ -3147,7 +3147,7 @@ class AbstractPageComponent {
3147
3147
  .pipe(takeUntilDestroyed(this._destroyRef))
3148
3148
  .subscribe(() => {
3149
3149
  this.reference =
3150
- this._gesdemService.lastResponse?.meta.reference ?? null;
3150
+ this._gesdemService.lastResponse?.meta.reference;
3151
3151
  const statut = this._gesdemService.lastResponse?.meta.statut;
3152
3152
  const shouldPreventNavigationToLast = this._activatedRoute.snapshot.data
3153
3153
  .preventNavigationToLastOnTransferred === true;
@@ -6646,7 +6646,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
6646
6646
  }], propDecorators: { targetAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetAnchor", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }] } });
6647
6647
 
6648
6648
  class FoehnHeaderComponent {
6649
- title = input(...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
6649
+ title = input(undefined, ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
6650
6650
  showSecuredAreaLoginButton = input(false, ...(ngDevMode ? [{ debugName: "showSecuredAreaLoginButton" }] : /* istanbul ignore next */ []));
6651
6651
  routerLinkAppTitle = input(...(ngDevMode ? [undefined, { debugName: "routerLinkAppTitle" }] : /* istanbul ignore next */ []));
6652
6652
  userInfo = model(...(ngDevMode ? [undefined, { debugName: "userInfo" }] : /* istanbul ignore next */ []));
@@ -7150,8 +7150,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
7150
7150
  const DEFAULT_DRAFTS_URL = 'api/{etapeId}/drafts';
7151
7151
  class DraftsContainerComponent {
7152
7152
  // Some prestation have their own backend to handle drafts
7153
- draftsUrl = input(...(ngDevMode ? [undefined, { debugName: "draftsUrl" }] : /* istanbul ignore next */ []));
7154
- etapeId = input(...(ngDevMode ? [undefined, { debugName: "etapeId" }] : /* istanbul ignore next */ []));
7153
+ draftsUrl = input(undefined, ...(ngDevMode ? [{ debugName: "draftsUrl" }] : /* istanbul ignore next */ []));
7154
+ etapeId = input(undefined, ...(ngDevMode ? [{ debugName: "etapeId" }] : /* istanbul ignore next */ []));
7155
7155
  referenceLink = viewChild('referenceLink', ...(ngDevMode ? [{ debugName: "referenceLink" }] : /* istanbul ignore next */ []));
7156
7156
  detailLink = viewChild('detailLink', ...(ngDevMode ? [{ debugName: "detailLink" }] : /* istanbul ignore next */ []));
7157
7157
  draftsToDisplay;
@@ -7330,8 +7330,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
7330
7330
  const DEFAULT_SUPPORT_ALERT_URL = 'api/support-alert/{etapeId}';
7331
7331
  class SupportAlertContainerComponent {
7332
7332
  // Some prestation have their own backend to handle alerts, such as ES.
7333
- supportAlertUrl = input(...(ngDevMode ? [undefined, { debugName: "supportAlertUrl" }] : /* istanbul ignore next */ []));
7334
- etapeId = input(...(ngDevMode ? [undefined, { debugName: "etapeId" }] : /* istanbul ignore next */ []));
7333
+ supportAlertUrl = input(undefined, ...(ngDevMode ? [{ debugName: "supportAlertUrl" }] : /* istanbul ignore next */ []));
7334
+ etapeId = input(undefined, ...(ngDevMode ? [{ debugName: "etapeId" }] : /* istanbul ignore next */ []));
7335
7335
  alertsToDisplay;
7336
7336
  hasAlerts;
7337
7337
  hasHiddenAlerts;
@@ -7753,11 +7753,11 @@ class FoehnPageComponent {
7753
7753
  * If set to 'false', hide the default Security Best Practice link.
7754
7754
  */
7755
7755
  showDefaultSecurityBestPracticeLink = input(true, ...(ngDevMode ? [{ debugName: "showDefaultSecurityBestPracticeLink" }] : /* istanbul ignore next */ []));
7756
- appTitle = input(...(ngDevMode ? [undefined, { debugName: "appTitle" }] : /* istanbul ignore next */ []));
7756
+ appTitle = input(undefined, ...(ngDevMode ? [{ debugName: "appTitle" }] : /* istanbul ignore next */ []));
7757
7757
  footerLinks = input(...(ngDevMode ? [undefined, { debugName: "footerLinks" }] : /* istanbul ignore next */ []));
7758
7758
  draftsEnabled = input(false, ...(ngDevMode ? [{ debugName: "draftsEnabled" }] : /* istanbul ignore next */ []));
7759
7759
  draftsUrl = input(...(ngDevMode ? [undefined, { debugName: "draftsUrl" }] : /* istanbul ignore next */ []));
7760
- etapeId = input(...(ngDevMode ? [undefined, { debugName: "etapeId" }] : /* istanbul ignore next */ []));
7760
+ etapeId = input(undefined, ...(ngDevMode ? [{ debugName: "etapeId" }] : /* istanbul ignore next */ []));
7761
7761
  userConnectedAsDisplayed = input(true, ...(ngDevMode ? [{ debugName: "userConnectedAsDisplayed" }] : /* istanbul ignore next */ []));
7762
7762
  statusProgressBarHidden = input(...(ngDevMode ? [undefined, { debugName: "statusProgressBarHidden" }] : /* istanbul ignore next */ []));
7763
7763
  /**
@@ -11291,12 +11291,9 @@ class DisplayDatePipe {
11291
11291
  return this.transformFromArray(value, showTime);
11292
11292
  }
11293
11293
  transformFromDate(value, showTime) {
11294
- if (showTime) {
11295
- return value.toLocaleString(DATE_LOCALE);
11296
- }
11297
- else {
11298
- return value.toLocaleDateString(DATE_LOCALE);
11299
- }
11294
+ return showTime
11295
+ ? value.toLocaleString(DATE_LOCALE)
11296
+ : value.toLocaleDateString(DATE_LOCALE);
11300
11297
  }
11301
11298
  transformFromArray(value, showTime) {
11302
11299
  const date = this.dateHelper.toDateFromNumberArray(value);
@@ -13583,7 +13580,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
13583
13580
 
13584
13581
  class FoehnMultiUploadComponent extends AbstractFoehnUploaderComponent {
13585
13582
  url = input('api/document', ...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
13586
- reference = input(...(ngDevMode ? [undefined, { debugName: "reference" }] : /* istanbul ignore next */ []));
13583
+ reference = input(undefined, ...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
13587
13584
  multiUploadService = inject(MultiUploadService);
13588
13585
  pendingUploadService = inject(PendingUploadService);
13589
13586
  pageUploadLimitService = inject(PageUploadLimitService);