@rxap/ngx-error 21.0.1-dev.0 → 21.0.1

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.
Files changed (156) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/compodoc/changelog.html +44 -0
  3. package/compodoc/components/AngularErrorComponent.html +16 -7
  4. package/compodoc/components/AnyHttpErrorComponent.html +18 -6
  5. package/compodoc/components/ErrorDialogComponent.html +67 -47
  6. package/compodoc/dependencies.html +5 -5
  7. package/compodoc/injectables/ErrorCaptureDialogService.html +7 -6
  8. package/compodoc/interfaces/IErrorCaptureDialogService.html +4 -3
  9. package/compodoc/interfaces/IErrorDialogComponent.html +10 -13
  10. package/compodoc/js/search/search_index.js +2 -2
  11. package/compodoc/properties.html +1 -1
  12. package/docs/documentation.json +947 -983
  13. package/docs/html/assets/hierarchy.js +1 -1
  14. package/docs/html/assets/search.js +1 -1
  15. package/docs/html/classes/AngularErrorComponent.html +2 -2
  16. package/docs/html/classes/AngularErrorService.html +2 -2
  17. package/docs/html/classes/AnyHttpErrorComponent.html +2 -2
  18. package/docs/html/classes/AnyHttpErrorService.html +2 -2
  19. package/docs/html/classes/CodeHttpErrorComponent.html +2 -2
  20. package/docs/html/classes/CodeHttpErrorService.html +2 -2
  21. package/docs/html/classes/ErrorCaptureDialogService.html +2 -2
  22. package/docs/html/classes/ErrorCaptureService.html +2 -2
  23. package/docs/html/classes/ErrorDialogComponent.html +2 -6
  24. package/docs/html/classes/MessageHttpErrorComponent.html +2 -2
  25. package/docs/html/classes/MessageHttpErrorService.html +2 -2
  26. package/docs/html/classes/OpenApiHttpResponseErrorComponent.html +2 -2
  27. package/docs/html/classes/OpenApiHttpResponseErrorService.html +2 -2
  28. package/docs/html/classes/RxapErrorHandler.html +3 -3
  29. package/docs/html/functions/DefaultErrorCodeExtractor.html +1 -1
  30. package/docs/html/functions/DefaultErrorFilter.html +1 -1
  31. package/docs/html/functions/ExtractContextFromError.html +1 -1
  32. package/docs/html/functions/ExtractError.html +1 -1
  33. package/docs/html/functions/ExtractExtraFromError.html +1 -1
  34. package/docs/html/functions/ExtractTagsFromError.html +1 -1
  35. package/docs/html/functions/HttpErrorInterceptor.html +1 -1
  36. package/docs/html/functions/PrintError.html +1 -1
  37. package/docs/html/functions/ProvideErrorHandler.html +2 -2
  38. package/docs/html/functions/SimplifyHttpErrorResponse.html +1 -1
  39. package/docs/html/functions/provideAutoErrorInterception.html +1 -1
  40. package/docs/html/functions/withErrorCaptureDialogDisabledIf.html +1 -1
  41. package/docs/html/functions/withErrorCaptureDialogService.html +1 -1
  42. package/docs/html/hierarchy.html +1 -1
  43. package/docs/html/index.html +2 -2
  44. package/docs/html/interfaces/AngularErrorDialogData.html +2 -2
  45. package/docs/html/interfaces/AnyHttpErrorDialogData.html +8 -8
  46. package/docs/html/interfaces/CodeHttpErrorDialogData.html +8 -8
  47. package/docs/html/interfaces/ErrorHandlerOptions.html +2 -2
  48. package/docs/html/interfaces/ErrorInterceptorOptions.html +2 -2
  49. package/docs/html/interfaces/IErrorCaptureDialogService.html +2 -2
  50. package/docs/html/interfaces/IErrorDialogComponent.html +2 -2
  51. package/docs/html/interfaces/MessageHttpErrorDialogData.html +8 -8
  52. package/docs/html/interfaces/OpenApiHttpResponseErrorDialogData.html +8 -8
  53. package/docs/html/interfaces/SimplifiedHttpErrorResponse.html +2 -2
  54. package/docs/html/modules.html +1 -1
  55. package/docs/html/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.html +1 -1
  56. package/docs/html/variables/RXAP_ERROR_DIALOG_COMPONENT.html +1 -1
  57. package/docs/html/variables/RXAP_ERROR_DIALOG_DATA.html +1 -1
  58. package/docs/html/variables/RXAP_ERROR_DIALOG_DISABLED.html +1 -1
  59. package/docs/html/variables/RXAP_ERROR_DIALOG_ERROR.html +1 -1
  60. package/docs/html/variables/RXAP_ERROR_HANDLER_OPTIONS.html +1 -1
  61. package/docs/html/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.html +1 -1
  62. package/docs/markdown/README.md +1 -1
  63. package/docs/markdown/classes/AngularErrorComponent.md +6 -6
  64. package/docs/markdown/classes/AngularErrorService.md +5 -5
  65. package/docs/markdown/classes/AnyHttpErrorComponent.md +4 -4
  66. package/docs/markdown/classes/AnyHttpErrorService.md +5 -5
  67. package/docs/markdown/classes/CodeHttpErrorComponent.md +5 -5
  68. package/docs/markdown/classes/CodeHttpErrorService.md +5 -5
  69. package/docs/markdown/classes/ErrorCaptureDialogService.md +6 -6
  70. package/docs/markdown/classes/ErrorCaptureService.md +5 -5
  71. package/docs/markdown/classes/ErrorDialogComponent.md +13 -35
  72. package/docs/markdown/classes/MessageHttpErrorComponent.md +5 -5
  73. package/docs/markdown/classes/MessageHttpErrorService.md +5 -5
  74. package/docs/markdown/classes/OpenApiHttpResponseErrorComponent.md +4 -4
  75. package/docs/markdown/classes/OpenApiHttpResponseErrorService.md +5 -5
  76. package/docs/markdown/classes/RxapErrorHandler.md +7 -7
  77. package/docs/markdown/functions/DefaultErrorCodeExtractor.md +2 -2
  78. package/docs/markdown/functions/DefaultErrorFilter.md +2 -2
  79. package/docs/markdown/functions/ExtractContextFromError.md +2 -2
  80. package/docs/markdown/functions/ExtractError.md +2 -2
  81. package/docs/markdown/functions/ExtractExtraFromError.md +2 -2
  82. package/docs/markdown/functions/ExtractTagsFromError.md +2 -2
  83. package/docs/markdown/functions/HttpErrorInterceptor.md +2 -2
  84. package/docs/markdown/functions/PrintError.md +2 -2
  85. package/docs/markdown/functions/ProvideErrorHandler.md +2 -2
  86. package/docs/markdown/functions/SimplifyHttpErrorResponse.md +2 -2
  87. package/docs/markdown/functions/provideAutoErrorInterception.md +2 -2
  88. package/docs/markdown/functions/withErrorCaptureDialogDisabledIf.md +2 -2
  89. package/docs/markdown/functions/withErrorCaptureDialogService.md +2 -2
  90. package/docs/markdown/globals.md +2 -2
  91. package/docs/markdown/interfaces/AngularErrorDialogData.md +8 -8
  92. package/docs/markdown/interfaces/AnyHttpErrorDialogData.md +15 -15
  93. package/docs/markdown/interfaces/CodeHttpErrorDialogData.md +16 -16
  94. package/docs/markdown/interfaces/ErrorHandlerOptions.md +5 -5
  95. package/docs/markdown/interfaces/ErrorInterceptorOptions.md +4 -4
  96. package/docs/markdown/interfaces/IErrorCaptureDialogService.md +3 -3
  97. package/docs/markdown/interfaces/IErrorDialogComponent.md +3 -3
  98. package/docs/markdown/interfaces/MessageHttpErrorDialogData.md +15 -15
  99. package/docs/markdown/interfaces/OpenApiHttpResponseErrorDialogData.md +18 -18
  100. package/docs/markdown/interfaces/SimplifiedHttpErrorResponse.md +12 -12
  101. package/docs/markdown/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +2 -2
  102. package/docs/markdown/variables/RXAP_ERROR_DIALOG_COMPONENT.md +2 -2
  103. package/docs/markdown/variables/RXAP_ERROR_DIALOG_DATA.md +2 -2
  104. package/docs/markdown/variables/RXAP_ERROR_DIALOG_DISABLED.md +2 -2
  105. package/docs/markdown/variables/RXAP_ERROR_DIALOG_ERROR.md +2 -2
  106. package/docs/markdown/variables/RXAP_ERROR_HANDLER_OPTIONS.md +2 -2
  107. package/docs/markdown/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.md +2 -2
  108. package/docs/wiki/Class.AngularErrorComponent.md +5 -5
  109. package/docs/wiki/Class.AngularErrorService.md +4 -4
  110. package/docs/wiki/Class.AnyHttpErrorComponent.md +3 -3
  111. package/docs/wiki/Class.AnyHttpErrorService.md +4 -4
  112. package/docs/wiki/Class.CodeHttpErrorComponent.md +4 -4
  113. package/docs/wiki/Class.CodeHttpErrorService.md +4 -4
  114. package/docs/wiki/Class.ErrorCaptureDialogService.md +5 -5
  115. package/docs/wiki/Class.ErrorCaptureService.md +4 -4
  116. package/docs/wiki/Class.ErrorDialogComponent.md +12 -34
  117. package/docs/wiki/Class.MessageHttpErrorComponent.md +4 -4
  118. package/docs/wiki/Class.MessageHttpErrorService.md +4 -4
  119. package/docs/wiki/Class.OpenApiHttpResponseErrorComponent.md +3 -3
  120. package/docs/wiki/Class.OpenApiHttpResponseErrorService.md +4 -4
  121. package/docs/wiki/Class.RxapErrorHandler.md +6 -6
  122. package/docs/wiki/Function.DefaultErrorCodeExtractor.md +1 -1
  123. package/docs/wiki/Function.DefaultErrorFilter.md +1 -1
  124. package/docs/wiki/Function.ExtractContextFromError.md +1 -1
  125. package/docs/wiki/Function.ExtractError.md +1 -1
  126. package/docs/wiki/Function.ExtractExtraFromError.md +1 -1
  127. package/docs/wiki/Function.ExtractTagsFromError.md +1 -1
  128. package/docs/wiki/Function.HttpErrorInterceptor.md +1 -1
  129. package/docs/wiki/Function.PrintError.md +1 -1
  130. package/docs/wiki/Function.ProvideErrorHandler.md +1 -1
  131. package/docs/wiki/Function.SimplifyHttpErrorResponse.md +1 -1
  132. package/docs/wiki/Function.provideAutoErrorInterception.md +1 -1
  133. package/docs/wiki/Function.withErrorCaptureDialogDisabledIf.md +1 -1
  134. package/docs/wiki/Function.withErrorCaptureDialogService.md +1 -1
  135. package/docs/wiki/Interface.AngularErrorDialogData.md +7 -7
  136. package/docs/wiki/Interface.AnyHttpErrorDialogData.md +14 -14
  137. package/docs/wiki/Interface.CodeHttpErrorDialogData.md +15 -15
  138. package/docs/wiki/Interface.ErrorHandlerOptions.md +4 -4
  139. package/docs/wiki/Interface.ErrorInterceptorOptions.md +3 -3
  140. package/docs/wiki/Interface.IErrorCaptureDialogService.md +2 -2
  141. package/docs/wiki/Interface.IErrorDialogComponent.md +2 -2
  142. package/docs/wiki/Interface.MessageHttpErrorDialogData.md +14 -14
  143. package/docs/wiki/Interface.OpenApiHttpResponseErrorDialogData.md +17 -17
  144. package/docs/wiki/Interface.SimplifiedHttpErrorResponse.md +11 -11
  145. package/docs/wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +1 -1
  146. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT.md +1 -1
  147. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DATA.md +1 -1
  148. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DISABLED.md +1 -1
  149. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_ERROR.md +1 -1
  150. package/docs/wiki/Variable.RXAP_ERROR_HANDLER_OPTIONS.md +1 -1
  151. package/docs/wiki/Variable.RXAP_ERROR_INTERCEPTOR_OPTIONS.md +1 -1
  152. package/docs/wiki/globals.md +1 -1
  153. package/fesm2022/rxap-ngx-error.mjs +20 -48
  154. package/fesm2022/rxap-ngx-error.mjs.map +1 -1
  155. package/package.json +25 -25
  156. package/types/rxap-ngx-error.d.ts +5 -5
@@ -201,19 +201,18 @@
201
201
  } from '@angular/cdk/portal';
202
202
  import { NgClass } from '@angular/common';
203
203
  import {
204
- AfterViewInit,
204
+ afterNextRender,
205
205
  ChangeDetectionStrategy,
206
206
  Component,
207
207
  computed,
208
208
  ElementRef,
209
- EventEmitter,
210
209
  inject,
211
210
  INJECTOR,
212
211
  Injector,
213
- Output,
212
+ output,
214
213
  signal,
215
214
  Signal,
216
- ViewChild,
215
+ viewChild
217
216
  } from '@angular/core';
218
217
  import {
219
218
  RXAP_ERROR_DIALOG_COMPONENT,
@@ -229,16 +228,15 @@ export interface IErrorDialogComponent<Error = any> {
229
228
  selector: 'rxap-error-dialog',
230
229
  templateUrl: './error-dialog.component.html',
231
230
  styleUrls: ['./error-dialog.component.scss'],
232
- changeDetection: ChangeDetectionStrategy.Default,
231
+ changeDetection: ChangeDetectionStrategy.OnPush,
233
232
  imports: [
234
233
  NgClass,
235
234
  PortalModule
236
235
  ]
237
236
  })
238
- export class ErrorDialogComponent implements AfterViewInit {
237
+ export class ErrorDialogComponent {
239
238
 
240
- @ViewChild('dialog', { static: true })
241
- public dialog!: ElementRef<HTMLDialogElement>;
239
+ public readonly dialog = viewChild.required<ElementRef<HTMLDialogElement>>('dialog');
242
240
 
243
241
  public readonly data: Signal<any[]> = inject(RXAP_ERROR_DIALOG_DATA);
244
242
 
@@ -248,8 +246,7 @@ export class ErrorDialogComponent implements AfterViewInit {
248
246
  const end = Math.min(this.data().length, start + 5);
249
247
  return Array.from({ length: end - start }, (_, i) => start + i);
250
248
  });
251
- @Output()
252
- public closeDialog = new EventEmitter<void>();
249
+ public readonly closeDialog = output<void>();
253
250
  private readonly component = inject(RXAP_ERROR_DIALOG_COMPONENT);
254
251
  private readonly injector = inject(INJECTOR);
255
252
  public readonly componentPortal = computed(() => {
@@ -267,12 +264,12 @@ export class ErrorDialogComponent implements AfterViewInit {
267
264
  return new ComponentPortal(this.component, null, injector);
268
265
  });
269
266
 
270
- ngAfterViewInit() {
271
- this.dialog.nativeElement.showModal();
267
+ constructor() {
268
+ afterNextRender(() => this.dialog().nativeElement.showModal());
272
269
  }
273
270
 
274
271
  close() {
275
- this.dialog.nativeElement.close();
272
+ this.dialog().nativeElement.close();
276
273
  this.closeDialog.emit();
277
274
  }
278
275