@rxap/ngx-error 19.3.0 → 21.0.1-dev.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 (184) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/compodoc/changelog.html +38 -0
  3. package/compodoc/components/AngularErrorComponent.html +56 -41
  4. package/compodoc/components/AnyHttpErrorComponent.html +75 -57
  5. package/compodoc/components/CodeHttpErrorComponent.html +19 -19
  6. package/compodoc/components/ErrorDialogComponent.html +98 -79
  7. package/compodoc/components/MessageHttpErrorComponent.html +19 -19
  8. package/compodoc/components/OpenApiHttpResponseErrorComponent.html +50 -34
  9. package/compodoc/dependencies.html +11 -11
  10. package/compodoc/injectables/ErrorCaptureDialogService.html +9 -7
  11. package/compodoc/interfaces/IErrorCaptureDialogService.html +6 -4
  12. package/compodoc/interfaces/IErrorDialogComponent.html +14 -23
  13. package/compodoc/js/search/search_index.js +2 -2
  14. package/compodoc/properties.html +1 -1
  15. package/docs/documentation.json +1007 -1043
  16. package/docs/html/assets/hierarchy.js +1 -1
  17. package/docs/html/assets/search.js +1 -1
  18. package/docs/html/classes/AngularErrorComponent.html +2 -2
  19. package/docs/html/classes/AngularErrorService.html +2 -2
  20. package/docs/html/classes/AnyHttpErrorComponent.html +2 -2
  21. package/docs/html/classes/AnyHttpErrorService.html +2 -2
  22. package/docs/html/classes/CodeHttpErrorComponent.html +2 -2
  23. package/docs/html/classes/CodeHttpErrorService.html +2 -2
  24. package/docs/html/classes/ErrorCaptureDialogService.html +2 -2
  25. package/docs/html/classes/ErrorCaptureService.html +2 -2
  26. package/docs/html/classes/ErrorDialogComponent.html +2 -6
  27. package/docs/html/classes/MessageHttpErrorComponent.html +2 -2
  28. package/docs/html/classes/MessageHttpErrorService.html +2 -2
  29. package/docs/html/classes/OpenApiHttpResponseErrorComponent.html +2 -2
  30. package/docs/html/classes/OpenApiHttpResponseErrorService.html +2 -2
  31. package/docs/html/classes/RxapErrorHandler.html +3 -3
  32. package/docs/html/functions/DefaultErrorCodeExtractor.html +1 -1
  33. package/docs/html/functions/DefaultErrorFilter.html +1 -1
  34. package/docs/html/functions/ExtractContextFromError.html +1 -1
  35. package/docs/html/functions/ExtractError.html +1 -1
  36. package/docs/html/functions/ExtractExtraFromError.html +1 -1
  37. package/docs/html/functions/ExtractTagsFromError.html +1 -1
  38. package/docs/html/functions/HttpErrorInterceptor.html +1 -1
  39. package/docs/html/functions/PrintError.html +1 -1
  40. package/docs/html/functions/ProvideErrorHandler.html +2 -2
  41. package/docs/html/functions/SimplifyHttpErrorResponse.html +1 -1
  42. package/docs/html/functions/provideAutoErrorInterception.html +1 -1
  43. package/docs/html/functions/withErrorCaptureDialogDisabledIf.html +1 -1
  44. package/docs/html/functions/withErrorCaptureDialogService.html +1 -1
  45. package/docs/html/hierarchy.html +1 -1
  46. package/docs/html/index.html +2 -2
  47. package/docs/html/interfaces/AngularErrorDialogData.html +2 -2
  48. package/docs/html/interfaces/AnyHttpErrorDialogData.html +8 -8
  49. package/docs/html/interfaces/CodeHttpErrorDialogData.html +8 -8
  50. package/docs/html/interfaces/ErrorHandlerOptions.html +2 -2
  51. package/docs/html/interfaces/ErrorInterceptorOptions.html +2 -2
  52. package/docs/html/interfaces/IErrorCaptureDialogService.html +2 -2
  53. package/docs/html/interfaces/IErrorDialogComponent.html +2 -2
  54. package/docs/html/interfaces/MessageHttpErrorDialogData.html +8 -8
  55. package/docs/html/interfaces/OpenApiHttpResponseErrorDialogData.html +8 -8
  56. package/docs/html/interfaces/SimplifiedHttpErrorResponse.html +2 -2
  57. package/docs/html/modules.html +1 -1
  58. package/docs/html/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.html +1 -1
  59. package/docs/html/variables/RXAP_ERROR_DIALOG_COMPONENT.html +1 -1
  60. package/docs/html/variables/RXAP_ERROR_DIALOG_DATA.html +1 -1
  61. package/docs/html/variables/RXAP_ERROR_DIALOG_DISABLED.html +1 -1
  62. package/docs/html/variables/RXAP_ERROR_DIALOG_ERROR.html +1 -1
  63. package/docs/html/variables/RXAP_ERROR_HANDLER_OPTIONS.html +1 -1
  64. package/docs/html/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.html +1 -1
  65. package/docs/markdown/README.md +1 -1
  66. package/docs/markdown/classes/AngularErrorComponent.md +6 -6
  67. package/docs/markdown/classes/AngularErrorService.md +5 -5
  68. package/docs/markdown/classes/AnyHttpErrorComponent.md +4 -4
  69. package/docs/markdown/classes/AnyHttpErrorService.md +5 -5
  70. package/docs/markdown/classes/CodeHttpErrorComponent.md +5 -5
  71. package/docs/markdown/classes/CodeHttpErrorService.md +5 -5
  72. package/docs/markdown/classes/ErrorCaptureDialogService.md +6 -6
  73. package/docs/markdown/classes/ErrorCaptureService.md +5 -5
  74. package/docs/markdown/classes/ErrorDialogComponent.md +13 -35
  75. package/docs/markdown/classes/MessageHttpErrorComponent.md +5 -5
  76. package/docs/markdown/classes/MessageHttpErrorService.md +5 -5
  77. package/docs/markdown/classes/OpenApiHttpResponseErrorComponent.md +4 -4
  78. package/docs/markdown/classes/OpenApiHttpResponseErrorService.md +5 -5
  79. package/docs/markdown/classes/RxapErrorHandler.md +7 -7
  80. package/docs/markdown/functions/DefaultErrorCodeExtractor.md +2 -2
  81. package/docs/markdown/functions/DefaultErrorFilter.md +2 -2
  82. package/docs/markdown/functions/ExtractContextFromError.md +2 -2
  83. package/docs/markdown/functions/ExtractError.md +2 -2
  84. package/docs/markdown/functions/ExtractExtraFromError.md +2 -2
  85. package/docs/markdown/functions/ExtractTagsFromError.md +2 -2
  86. package/docs/markdown/functions/HttpErrorInterceptor.md +2 -2
  87. package/docs/markdown/functions/PrintError.md +2 -2
  88. package/docs/markdown/functions/ProvideErrorHandler.md +2 -2
  89. package/docs/markdown/functions/SimplifyHttpErrorResponse.md +2 -2
  90. package/docs/markdown/functions/provideAutoErrorInterception.md +2 -2
  91. package/docs/markdown/functions/withErrorCaptureDialogDisabledIf.md +2 -2
  92. package/docs/markdown/functions/withErrorCaptureDialogService.md +2 -2
  93. package/docs/markdown/globals.md +2 -2
  94. package/docs/markdown/interfaces/AngularErrorDialogData.md +8 -8
  95. package/docs/markdown/interfaces/AnyHttpErrorDialogData.md +15 -15
  96. package/docs/markdown/interfaces/CodeHttpErrorDialogData.md +16 -16
  97. package/docs/markdown/interfaces/ErrorHandlerOptions.md +5 -5
  98. package/docs/markdown/interfaces/ErrorInterceptorOptions.md +4 -4
  99. package/docs/markdown/interfaces/IErrorCaptureDialogService.md +3 -3
  100. package/docs/markdown/interfaces/IErrorDialogComponent.md +3 -3
  101. package/docs/markdown/interfaces/MessageHttpErrorDialogData.md +15 -15
  102. package/docs/markdown/interfaces/OpenApiHttpResponseErrorDialogData.md +18 -18
  103. package/docs/markdown/interfaces/SimplifiedHttpErrorResponse.md +12 -12
  104. package/docs/markdown/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +2 -2
  105. package/docs/markdown/variables/RXAP_ERROR_DIALOG_COMPONENT.md +2 -2
  106. package/docs/markdown/variables/RXAP_ERROR_DIALOG_DATA.md +2 -2
  107. package/docs/markdown/variables/RXAP_ERROR_DIALOG_DISABLED.md +2 -2
  108. package/docs/markdown/variables/RXAP_ERROR_DIALOG_ERROR.md +2 -2
  109. package/docs/markdown/variables/RXAP_ERROR_HANDLER_OPTIONS.md +2 -2
  110. package/docs/markdown/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.md +2 -2
  111. package/docs/wiki/Class.AngularErrorComponent.md +5 -5
  112. package/docs/wiki/Class.AngularErrorService.md +4 -4
  113. package/docs/wiki/Class.AnyHttpErrorComponent.md +3 -3
  114. package/docs/wiki/Class.AnyHttpErrorService.md +4 -4
  115. package/docs/wiki/Class.CodeHttpErrorComponent.md +4 -4
  116. package/docs/wiki/Class.CodeHttpErrorService.md +4 -4
  117. package/docs/wiki/Class.ErrorCaptureDialogService.md +5 -5
  118. package/docs/wiki/Class.ErrorCaptureService.md +4 -4
  119. package/docs/wiki/Class.ErrorDialogComponent.md +12 -34
  120. package/docs/wiki/Class.MessageHttpErrorComponent.md +4 -4
  121. package/docs/wiki/Class.MessageHttpErrorService.md +4 -4
  122. package/docs/wiki/Class.OpenApiHttpResponseErrorComponent.md +3 -3
  123. package/docs/wiki/Class.OpenApiHttpResponseErrorService.md +4 -4
  124. package/docs/wiki/Class.RxapErrorHandler.md +6 -6
  125. package/docs/wiki/Function.DefaultErrorCodeExtractor.md +1 -1
  126. package/docs/wiki/Function.DefaultErrorFilter.md +1 -1
  127. package/docs/wiki/Function.ExtractContextFromError.md +1 -1
  128. package/docs/wiki/Function.ExtractError.md +1 -1
  129. package/docs/wiki/Function.ExtractExtraFromError.md +1 -1
  130. package/docs/wiki/Function.ExtractTagsFromError.md +1 -1
  131. package/docs/wiki/Function.HttpErrorInterceptor.md +1 -1
  132. package/docs/wiki/Function.PrintError.md +1 -1
  133. package/docs/wiki/Function.ProvideErrorHandler.md +1 -1
  134. package/docs/wiki/Function.SimplifyHttpErrorResponse.md +1 -1
  135. package/docs/wiki/Function.provideAutoErrorInterception.md +1 -1
  136. package/docs/wiki/Function.withErrorCaptureDialogDisabledIf.md +1 -1
  137. package/docs/wiki/Function.withErrorCaptureDialogService.md +1 -1
  138. package/docs/wiki/Interface.AngularErrorDialogData.md +7 -7
  139. package/docs/wiki/Interface.AnyHttpErrorDialogData.md +14 -14
  140. package/docs/wiki/Interface.CodeHttpErrorDialogData.md +15 -15
  141. package/docs/wiki/Interface.ErrorHandlerOptions.md +4 -4
  142. package/docs/wiki/Interface.ErrorInterceptorOptions.md +3 -3
  143. package/docs/wiki/Interface.IErrorCaptureDialogService.md +2 -2
  144. package/docs/wiki/Interface.IErrorDialogComponent.md +2 -2
  145. package/docs/wiki/Interface.MessageHttpErrorDialogData.md +14 -14
  146. package/docs/wiki/Interface.OpenApiHttpResponseErrorDialogData.md +17 -17
  147. package/docs/wiki/Interface.SimplifiedHttpErrorResponse.md +11 -11
  148. package/docs/wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +1 -1
  149. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT.md +1 -1
  150. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DATA.md +1 -1
  151. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DISABLED.md +1 -1
  152. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_ERROR.md +1 -1
  153. package/docs/wiki/Variable.RXAP_ERROR_HANDLER_OPTIONS.md +1 -1
  154. package/docs/wiki/Variable.RXAP_ERROR_INTERCEPTOR_OPTIONS.md +1 -1
  155. package/docs/wiki/globals.md +1 -1
  156. package/fesm2022/rxap-ngx-error.mjs +75 -109
  157. package/fesm2022/rxap-ngx-error.mjs.map +1 -1
  158. package/package.json +42 -41
  159. package/types/rxap-ngx-error.d.ts +256 -0
  160. package/index.d.ts +0 -24
  161. package/lib/any-http-error/any-http-error-dialog-data.d.ts +0 -36
  162. package/lib/any-http-error/any-http-error.component.d.ts +0 -9
  163. package/lib/any-http-error/any-http-error.service.d.ts +0 -11
  164. package/lib/code-http-error/code-http-error-dialog-data.d.ts +0 -7
  165. package/lib/code-http-error/code-http-error.component.d.ts +0 -10
  166. package/lib/code-http-error/code-http-error.service.d.ts +0 -10
  167. package/lib/error/angular-error-dialog-data.d.ts +0 -8
  168. package/lib/error/angular-error.component.d.ts +0 -11
  169. package/lib/error/angular-error.service.d.ts +0 -10
  170. package/lib/error-capture-dialog.service.d.ts +0 -16
  171. package/lib/error-capture.service.d.ts +0 -12
  172. package/lib/error-dialog/error-dialog.component.d.ts +0 -20
  173. package/lib/error-handler.d.ts +0 -27
  174. package/lib/error-interceptor-options.d.ts +0 -7
  175. package/lib/http-error-interceptor.d.ts +0 -3
  176. package/lib/message-http-error/message-http-error-dialog-data.d.ts +0 -6
  177. package/lib/message-http-error/message-http-error.component.d.ts +0 -10
  178. package/lib/message-http-error/message-http-error.service.d.ts +0 -10
  179. package/lib/open-api-http-response-error/open-api-http-response-error-dialog-data.d.ts +0 -7
  180. package/lib/open-api-http-response-error/open-api-http-response-error.component.d.ts +0 -9
  181. package/lib/open-api-http-response-error/open-api-http-response-error.service.d.ts +0 -10
  182. package/lib/provide.d.ts +0 -10
  183. package/lib/tokens.d.ts +0 -11
  184. package/lib/utilities.d.ts +0 -19
@@ -1,20 +1,20 @@
1
1
  import * as i1 from '@angular/common';
2
- import { CommonModule, NgIf, NgClass, NgForOf, DOCUMENT, DatePipe, KeyValuePipe, JsonPipe } from '@angular/common';
2
+ import { CommonModule, NgClass, DatePipe, KeyValuePipe, JsonPipe } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { InjectionToken, inject, Component, ChangeDetectionStrategy, signal, computed, EventEmitter, INJECTOR, Injector, ViewChild, Output, ApplicationRef, createComponent, Injectable, isDevMode, runInInjectionContext, ErrorHandler } from '@angular/core';
4
+ import { InjectionToken, inject, ChangeDetectionStrategy, Component, viewChild, signal, computed, output, INJECTOR, Injector, afterNextRender, ApplicationRef, DOCUMENT, createComponent, Injectable, isDevMode, runInInjectionContext, ErrorHandler } from '@angular/core';
5
5
  import { CopyToClipboardComponent, JsonViewerComponent } from '@rxap/components';
6
- import * as i1$2 from '@rxap/data-grid';
7
- import { DataGridCellDefDirective, DataGridComponent, DataGridRowDefDirective, DataGridModule } from '@rxap/data-grid';
6
+ import { DataGridCellDefDirective, DataGridComponent, DataGridRowDefDirective, DataGridHeaderCellDefDirective } from '@rxap/data-grid';
8
7
  import { RXAP_ENVIRONMENT, IsNotReleaseVersion } from '@rxap/environment';
8
+ import { outputToObservable } from '@angular/core/rxjs-interop';
9
9
  import { EMPTY, Observable, take, finalize } from 'rxjs';
10
10
  import { tap } from 'rxjs/operators';
11
11
  import * as i1$1 from '@angular/cdk/portal';
12
12
  import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
13
+ import { __decorate } from 'tslib';
13
14
  import { HttpErrorResponse } from '@angular/common/http';
14
15
  import { ConfigService } from '@rxap/config';
15
16
  import { OpenApiHttpResponseError } from '@rxap/open-api';
16
17
  import * as Sentry from '@sentry/angular';
17
-
18
18
  const RXAP_ERROR_DIALOG_DATA = new InjectionToken('rxap/error/dialog-data');
19
19
  const RXAP_ERROR_DIALOG_ERROR = new InjectionToken('rxap/error/dialog-error');
20
20
  const RXAP_ERROR_DIALOG_COMPONENT = new InjectionToken('rxap/error/dialog-component');
@@ -24,33 +24,32 @@ const RXAP_ERROR_DIALOG_DISABLED = new InjectionToken('rxap/error/dialog-disable
24
24
  providedIn: 'root',
25
25
  factory: () => false,
26
26
  });
27
-
28
27
  class OpenApiHttpResponseErrorComponent {
29
28
  constructor() {
30
29
  this.isProduction = inject(RXAP_ENVIRONMENT, { optional: true })?.production ?? false;
31
30
  this.error = inject(RXAP_ERROR_DIALOG_ERROR);
32
31
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: OpenApiHttpResponseErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: OpenApiHttpResponseErrorComponent, isStandalone: true, selector: "rxap-open-api-http-response-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n <ng-container *ngFor=\"let entry of value | keyvalue\" [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value.length > 1\">\n <ul>\n <li *ngFor=\"let item of value\">{{ item }}</li>\n </ul>\n </ng-container>\n <ng-container *ngIf=\"value.length === 1\">{{ value[0] }}</ng-container>\n <ng-container *ngIf=\"value.length === 0\">NONE</ng-container>\n </td>\n </ng-container>\n </rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: i1.KeyValuePipe, name: "keyvalue" }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value", "containerClass", "position"] }, { kind: "directive", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "component", type: DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenApiHttpResponseErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: OpenApiHttpResponseErrorComponent, isStandalone: true, selector: "rxap-open-api-http-response-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n @for (entry of value | keyvalue; track entry) {\n <ng-container [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value.length > 1) {\n <ul>\n @for (item of value; track item) {\n <li>{{ item }}</li>\n }\n </ul>\n }\n @if (value.length === 1) {\n {{ value[0] }}\n }\n @if (value.length === 0) {\n NONE\n }\n </td>\n </ng-container>\n }\n </rxap-data-grid>\n </td>\n </ng-container>\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value", "containerClass", "position"] }, { kind: "directive", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "component", type: DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: i1.KeyValuePipe, name: "keyvalue" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
34
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: OpenApiHttpResponseErrorComponent, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenApiHttpResponseErrorComponent, decorators: [{
37
36
  type: Component,
38
37
  args: [{ selector: 'rxap-open-api-http-response-error', imports: [
39
38
  CommonModule, CopyToClipboardComponent, DataGridCellDefDirective, DataGridComponent,
40
39
  DataGridRowDefDirective, JsonViewerComponent,
41
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n <ng-container *ngFor=\"let entry of value | keyvalue\" [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value.length > 1\">\n <ul>\n <li *ngFor=\"let item of value\">{{ item }}</li>\n </ul>\n </ng-container>\n <ng-container *ngIf=\"value.length === 1\">{{ value[0] }}</ng-container>\n <ng-container *ngIf=\"value.length === 0\">NONE</ng-container>\n </td>\n </ng-container>\n </rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n</rxap-data-grid>\n" }]
40
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n @for (entry of value | keyvalue; track entry) {\n <ng-container [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value.length > 1) {\n <ul>\n @for (item of value; track item) {\n <li>{{ item }}</li>\n }\n </ul>\n }\n @if (value.length === 1) {\n {{ value[0] }}\n }\n @if (value.length === 0) {\n NONE\n }\n </td>\n </ng-container>\n }\n </rxap-data-grid>\n </td>\n </ng-container>\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n" }]
42
41
  }] });
43
-
44
42
  class ErrorDialogComponent {
45
43
  constructor() {
44
+ this.dialog = viewChild.required('dialog');
46
45
  this.data = inject(RXAP_ERROR_DIALOG_DATA);
47
- this.activeIndex = signal(0);
46
+ this.activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
48
47
  this.displayedButtons = computed(() => {
49
48
  const start = Math.max(0, this.activeIndex() - 2);
50
49
  const end = Math.min(this.data().length, start + 5);
51
50
  return Array.from({ length: end - start }, (_, i) => start + i);
52
- });
53
- this.closeDialog = new EventEmitter();
51
+ }, ...(ngDevMode ? [{ debugName: "displayedButtons" }] : /* istanbul ignore next */ []));
52
+ this.closeDialog = output();
54
53
  this.component = inject(RXAP_ERROR_DIALOG_COMPONENT);
55
54
  this.injector = inject(INJECTOR);
56
55
  this.componentPortal = computed(() => {
@@ -66,33 +65,23 @@ class ErrorDialogComponent {
66
65
  ],
67
66
  });
68
67
  return new ComponentPortal(this.component, null, injector);
69
- });
70
- }
71
- ngAfterViewInit() {
72
- this.dialog.nativeElement.showModal();
68
+ }, ...(ngDevMode ? [{ debugName: "componentPortal" }] : /* istanbul ignore next */ []));
69
+ afterNextRender(() => this.dialog().nativeElement.showModal());
73
70
  }
74
71
  close() {
75
- this.dialog.nativeElement.close();
72
+ this.dialog().nativeElement.close();
76
73
  this.closeDialog.emit();
77
74
  }
78
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ErrorDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
79
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: ErrorDialogComponent, isStandalone: true, selector: "rxap-error-dialog", outputs: { closeDialog: "closeDialog" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, static: true }], ngImport: i0, template: "<dialog #dialog\n class=\"rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6\"\n style=\"max-width: 80vw; max-height: 80vh\">\n <div *ngIf=\"data().length > 1\" class=\"controls flex justify-center space-x-2 mt-4\">\n <button\n (click)=\"activeIndex.set(activeIndex() - 1)\"\n *ngIf=\"activeIndex() > 0\" class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Previous\n </button>\n <button (click)=\"activeIndex.set(item)\"\n *ngFor=\"let item of displayedButtons()\"\n [ngClass]=\"{\n 'bg-primary-500': item === activeIndex(),\n 'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item !== activeIndex()\n }\"\n class=\"px-4 py-2 rounded\">\n {{ item + 1 }}\n </button>\n <button\n (click)=\"activeIndex.set(activeIndex() + 1)\"\n *ngIf=\"activeIndex() < data().length - 1\" class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Next\n </button>\n </div>\n <div class=\"flex flex-col overflow-auto\">\n <ng-template [cdkPortalOutlet]=\"componentPortal()\"></ng-template>\n </div>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>close</button>\n</dialog>\n", styles: ["dialog::backdrop{background:#000000b3}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
75
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
76
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: ErrorDialogComponent, isStandalone: true, selector: "rxap-error-dialog", outputs: { closeDialog: "closeDialog" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }], ngImport: i0, template: "<dialog #dialog\n class=\"rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6\"\n style=\"max-width: 80vw; max-height: 80vh\">\n @if (data().length > 1) {\n <div class=\"controls flex justify-center space-x-2 mt-4\">\n @if (activeIndex() > 0) {\n <button\n (click)=\"activeIndex.set(activeIndex() - 1)\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Previous\n </button>\n }\n @for (item of displayedButtons(); track item) {\n <button (click)=\"activeIndex.set(item)\"\n [ngClass]=\"{\n 'bg-primary-500': item === activeIndex(),\n 'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item !== activeIndex()\n }\"\n class=\"px-4 py-2 rounded\">\n {{ item + 1 }}\n </button>\n }\n @if (activeIndex() < data().length - 1) {\n <button\n (click)=\"activeIndex.set(activeIndex() + 1)\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Next\n </button>\n }\n </div>\n }\n <div class=\"flex flex-col overflow-auto\">\n <ng-template [cdkPortalOutlet]=\"componentPortal()\"></ng-template>\n </div>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>close</button>\n</dialog>\n", styles: ["dialog::backdrop{background:#000000b3}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
80
77
  }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ErrorDialogComponent, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorDialogComponent, decorators: [{
82
79
  type: Component,
83
- args: [{ selector: 'rxap-error-dialog', changeDetection: ChangeDetectionStrategy.Default, imports: [
84
- NgIf,
80
+ args: [{ selector: 'rxap-error-dialog', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
85
81
  NgClass,
86
- NgForOf,
87
- PortalModule,
88
- ], template: "<dialog #dialog\n class=\"rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6\"\n style=\"max-width: 80vw; max-height: 80vh\">\n <div *ngIf=\"data().length > 1\" class=\"controls flex justify-center space-x-2 mt-4\">\n <button\n (click)=\"activeIndex.set(activeIndex() - 1)\"\n *ngIf=\"activeIndex() > 0\" class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Previous\n </button>\n <button (click)=\"activeIndex.set(item)\"\n *ngFor=\"let item of displayedButtons()\"\n [ngClass]=\"{\n 'bg-primary-500': item === activeIndex(),\n 'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item !== activeIndex()\n }\"\n class=\"px-4 py-2 rounded\">\n {{ item + 1 }}\n </button>\n <button\n (click)=\"activeIndex.set(activeIndex() + 1)\"\n *ngIf=\"activeIndex() < data().length - 1\" class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Next\n </button>\n </div>\n <div class=\"flex flex-col overflow-auto\">\n <ng-template [cdkPortalOutlet]=\"componentPortal()\"></ng-template>\n </div>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>close</button>\n</dialog>\n", styles: ["dialog::backdrop{background:#000000b3}\n"] }]
89
- }], propDecorators: { dialog: [{
90
- type: ViewChild,
91
- args: ['dialog', { static: true }]
92
- }], closeDialog: [{
93
- type: Output
94
- }] } });
95
-
82
+ PortalModule
83
+ ], template: "<dialog #dialog\n class=\"rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6\"\n style=\"max-width: 80vw; max-height: 80vh\">\n @if (data().length > 1) {\n <div class=\"controls flex justify-center space-x-2 mt-4\">\n @if (activeIndex() > 0) {\n <button\n (click)=\"activeIndex.set(activeIndex() - 1)\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Previous\n </button>\n }\n @for (item of displayedButtons(); track item) {\n <button (click)=\"activeIndex.set(item)\"\n [ngClass]=\"{\n 'bg-primary-500': item === activeIndex(),\n 'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item !== activeIndex()\n }\"\n class=\"px-4 py-2 rounded\">\n {{ item + 1 }}\n </button>\n }\n @if (activeIndex() < data().length - 1) {\n <button\n (click)=\"activeIndex.set(activeIndex() + 1)\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Next\n </button>\n }\n </div>\n }\n <div class=\"flex flex-col overflow-auto\">\n <ng-template [cdkPortalOutlet]=\"componentPortal()\"></ng-template>\n </div>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>close</button>\n</dialog>\n", styles: ["dialog::backdrop{background:#000000b3}\n"] }]
84
+ }], ctorParameters: () => [], propDecorators: { dialog: [{ type: i0.ViewChild, args: ['dialog', { isSignal: true }] }], closeDialog: [{ type: i0.Output, args: ["closeDialog"] }] } });
96
85
  class ErrorCaptureDialogService {
97
86
  constructor() {
98
87
  this.applicationRef = inject(ApplicationRef);
@@ -125,7 +114,7 @@ class ErrorCaptureDialogService {
125
114
  });
126
115
  this.applicationRef.attachView(componentRef.hostView);
127
116
  return new Observable(subscriber => {
128
- const subscription = componentRef.instance.closeDialog.pipe(take(1), tap(() => {
117
+ const subscription = outputToObservable(componentRef.instance.closeDialog).pipe(take(1), tap(() => {
129
118
  subscriber.next();
130
119
  subscriber.complete();
131
120
  }), finalize(() => {
@@ -138,14 +127,13 @@ class ErrorCaptureDialogService {
138
127
  };
139
128
  });
140
129
  }
141
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ErrorCaptureDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
142
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ErrorCaptureDialogService, providedIn: 'root' }); }
130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
131
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureDialogService, providedIn: 'root' }); }
143
132
  }
144
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ErrorCaptureDialogService, decorators: [{
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureDialogService, decorators: [{
145
134
  type: Injectable,
146
135
  args: [{ providedIn: 'root' }]
147
136
  }] });
148
-
149
137
  class ErrorCaptureService {
150
138
  constructor() {
151
139
  this.errorCaptureDialogService = inject(RXAP_ERROR_CAPTURE_DIALOG_SERVICE, { optional: true }) ?? inject(ErrorCaptureDialogService);
@@ -163,39 +151,35 @@ class ErrorCaptureService {
163
151
  return;
164
152
  }
165
153
  }
166
- const newList = signal([error]);
154
+ const newList = signal([error], ...(ngDevMode ? [{ debugName: "newList" }] : /* istanbul ignore next */ []));
167
155
  this.errorList.push(newList);
168
156
  this.errorCaptureDialogService.open(this.component, newList);
169
157
  }
170
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ErrorCaptureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
171
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ErrorCaptureService }); }
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
159
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureService }); }
172
160
  }
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: ErrorCaptureService, decorators: [{
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureService, decorators: [{
174
162
  type: Injectable
175
163
  }] });
176
-
177
- class AnyHttpErrorComponent {
164
+ let AnyHttpErrorComponent = class AnyHttpErrorComponent {
178
165
  constructor() {
179
166
  this.isProduction = inject(RXAP_ENVIRONMENT, { optional: true })?.production ?? false;
180
167
  this.error = inject(RXAP_ERROR_DIALOG_ERROR);
181
168
  }
182
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AnyHttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
183
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: AnyHttpErrorComponent, isStandalone: true, selector: "rxap-any-http-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n <ng-container *ngFor=\"let entry of value | keyvalue\" [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value.length > 1\">\n <ul>\n <li *ngFor=\"let item of value\">{{ item }}</li>\n </ul>\n </ng-container>\n <ng-container *ngIf=\"value.length === 1\">{{ value[0] }}</ng-container>\n <ng-container *ngIf=\"value.length === 0\">NONE</ng-container>\n </td>\n </ng-container>\n </rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: DataGridModule }, { kind: "component", type: i1$2.DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: i1$2.DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "directive", type: i1$2.DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value", "containerClass", "position"] }, { kind: "pipe", type: JsonPipe, name: "json" }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
184
- }
185
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AnyHttpErrorComponent, decorators: [{
169
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AnyHttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
170
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AnyHttpErrorComponent, isStandalone: true, selector: "rxap-any-http-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n @for (entry of value | keyvalue; track entry) {\n <ng-container [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value.length > 1) {\n <ul>\n @for (item of value; track item) {\n <li>{{ item }}</li>\n }\n </ul>\n }\n @if (value.length === 1) {\n {{ value[0] }}\n }\n @if (value.length === 0) {\n NONE\n }\n </td>\n </ng-container>\n }\n </rxap-data-grid>\n </td>\n </ng-container>\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "component", type: DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "directive", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value", "containerClass", "position"] }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: JsonPipe, name: "json" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
171
+ };
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AnyHttpErrorComponent, decorators: [{
186
173
  type: Component,
187
174
  args: [{ selector: 'rxap-any-http-error', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
188
- DataGridModule,
189
- NgIf,
175
+ DataGridComponent, DataGridRowDefDirective, DataGridCellDefDirective,
190
176
  DatePipe,
191
177
  KeyValuePipe,
192
- NgForOf,
193
178
  CopyToClipboardComponent,
194
179
  JsonPipe,
195
- JsonViewerComponent,
196
- ], template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n <ng-container *ngFor=\"let entry of value | keyvalue\" [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value.length > 1\">\n <ul>\n <li *ngFor=\"let item of value\">{{ item }}</li>\n </ul>\n </ng-container>\n <ng-container *ngIf=\"value.length === 1\">{{ value[0] }}</ng-container>\n <ng-container *ngIf=\"value.length === 0\">NONE</ng-container>\n </td>\n </ng-container>\n </rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n</rxap-data-grid>\n" }]
180
+ JsonViewerComponent
181
+ ], template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n @for (entry of value | keyvalue; track entry) {\n <ng-container [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value.length > 1) {\n <ul>\n @for (item of value; track item) {\n <li>{{ item }}</li>\n }\n </ul>\n }\n @if (value.length === 1) {\n {{ value[0] }}\n }\n @if (value.length === 0) {\n NONE\n }\n </td>\n </ng-container>\n }\n </rxap-data-grid>\n </td>\n </ng-container>\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n" }]
197
182
  }] });
198
-
199
183
  class AnyHttpErrorService extends ErrorCaptureService {
200
184
  constructor() {
201
185
  super(...arguments);
@@ -204,14 +188,13 @@ class AnyHttpErrorService extends ErrorCaptureService {
204
188
  compare(a, b) {
205
189
  return a.url === b.url && a.method === b.method && a.status === b.status && a.message === b.message;
206
190
  }
207
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AnyHttpErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
208
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AnyHttpErrorService, providedIn: 'root' }); }
191
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AnyHttpErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
192
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AnyHttpErrorService, providedIn: 'root' }); }
209
193
  }
210
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AnyHttpErrorService, decorators: [{
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AnyHttpErrorService, decorators: [{
211
195
  type: Injectable,
212
196
  args: [{ providedIn: 'root' }]
213
197
  }] });
214
-
215
198
  class OpenApiHttpResponseErrorService extends AnyHttpErrorService {
216
199
  constructor() {
217
200
  super(...arguments);
@@ -220,31 +203,28 @@ class OpenApiHttpResponseErrorService extends AnyHttpErrorService {
220
203
  compare(a, b) {
221
204
  return true;
222
205
  }
223
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: OpenApiHttpResponseErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
224
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: OpenApiHttpResponseErrorService, providedIn: 'root' }); }
206
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenApiHttpResponseErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
207
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenApiHttpResponseErrorService, providedIn: 'root' }); }
225
208
  }
226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: OpenApiHttpResponseErrorService, decorators: [{
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenApiHttpResponseErrorService, decorators: [{
227
210
  type: Injectable,
228
211
  args: [{ providedIn: 'root' }]
229
212
  }] });
230
-
231
213
  class MessageHttpErrorComponent {
232
214
  constructor() {
233
215
  this.isProduction = inject(RXAP_ENVIRONMENT, { optional: true })?.production ?? false;
234
216
  this.error = inject(RXAP_ERROR_DIALOG_ERROR);
235
- this.showMore = signal(false);
217
+ this.showMore = signal(false, ...(ngDevMode ? [{ debugName: "showMore" }] : /* istanbul ignore next */ []));
236
218
  }
237
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: MessageHttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
238
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: MessageHttpErrorComponent, isStandalone: true, selector: "rxap-http-error-message", ngImport: i0, template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Message:</p>\n <p>{{ error.error.message }}</p>\n <ng-container *ngIf=\"!isProduction\">\n <hr>\n <button (click)=\"showMore.set(true)\"\n *ngIf=\"!showMore()\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n <rxap-any-http-error *ngIf=\"showMore()\"></rxap-any-http-error>\n </ng-container>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AnyHttpErrorComponent, selector: "rxap-any-http-error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
219
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MessageHttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
220
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: MessageHttpErrorComponent, isStandalone: true, selector: "rxap-http-error-message", ngImport: i0, template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Message:</p>\n <p>{{ error.error.message }}</p>\n @if (!isProduction) {\n <hr>\n @if (!showMore()) {\n <button (click)=\"showMore.set(true)\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n }\n @if (showMore()) {\n <rxap-any-http-error></rxap-any-http-error>\n }\n }\n </div>\n", styles: [""], dependencies: [{ kind: "component", type: AnyHttpErrorComponent, selector: "rxap-any-http-error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
239
221
  }
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: MessageHttpErrorComponent, decorators: [{
222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MessageHttpErrorComponent, decorators: [{
241
223
  type: Component,
242
224
  args: [{ selector: 'rxap-http-error-message', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
243
- NgIf,
244
- AnyHttpErrorComponent,
245
- ], template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Message:</p>\n <p>{{ error.error.message }}</p>\n <ng-container *ngIf=\"!isProduction\">\n <hr>\n <button (click)=\"showMore.set(true)\"\n *ngIf=\"!showMore()\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n <rxap-any-http-error *ngIf=\"showMore()\"></rxap-any-http-error>\n </ng-container>\n</div>\n" }]
225
+ AnyHttpErrorComponent
226
+ ], template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Message:</p>\n <p>{{ error.error.message }}</p>\n @if (!isProduction) {\n <hr>\n @if (!showMore()) {\n <button (click)=\"showMore.set(true)\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n }\n @if (showMore()) {\n <rxap-any-http-error></rxap-any-http-error>\n }\n }\n </div>\n" }]
246
227
  }] });
247
-
248
228
  class MessageHttpErrorService extends AnyHttpErrorService {
249
229
  constructor() {
250
230
  super(...arguments);
@@ -253,14 +233,13 @@ class MessageHttpErrorService extends AnyHttpErrorService {
253
233
  compare(a, b) {
254
234
  return super.compare(a, b) && a.error.message === b.error.message;
255
235
  }
256
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: MessageHttpErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
257
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: MessageHttpErrorService, providedIn: 'root' }); }
236
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MessageHttpErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
237
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MessageHttpErrorService, providedIn: 'root' }); }
258
238
  }
259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: MessageHttpErrorService, decorators: [{
239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MessageHttpErrorService, decorators: [{
260
240
  type: Injectable,
261
241
  args: [{ providedIn: 'root' }]
262
242
  }] });
263
-
264
243
  class AngularErrorComponent {
265
244
  constructor() {
266
245
  this.error = inject(RXAP_ERROR_DIALOG_ERROR);
@@ -274,14 +253,13 @@ class AngularErrorComponent {
274
253
  get hasExtra() {
275
254
  return Object.keys(this.error.extra).length > 0;
276
255
  }
277
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AngularErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
278
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: AngularErrorComponent, isStandalone: true, selector: "rxap-angular-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container *ngIf=\"error.name\" rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container *ngIf=\"hasExtra || hasTags || hasContexts || error.stack\" rxapDataGridRowDef>\n <th *rxapDataGridHeaderCellDef>\n <span i18n>Details</span>\n </th>\n </ng-container>\n <ng-container *ngIf=\"error.stack\" rxapDataGridRowDef=\"stack\">\n <td *rxapDataGridCellDef=\"let value\">\n <pre>{{ value }}</pre>\n </td>\n </ng-container>\n <ng-container *ngIf=\"hasTags\" rxapDataGridRowDef=\"tags\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"hasExtra\" rxapDataGridRowDef=\"extra\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"hasContexts\" rxapDataGridRowDef=\"contexts\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: DataGridModule }, { kind: "component", type: i1$2.DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: i1$2.DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "directive", type: i1$2.DataGridHeaderCellDefDirective, selector: "[rxapDataGridHeaderCellDef]" }, { kind: "directive", type: i1$2.DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
256
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AngularErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
257
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AngularErrorComponent, isStandalone: true, selector: "rxap-angular-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n @if (error.name) {\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n }\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n @if (hasExtra || hasTags || hasContexts || error.stack) {\n <ng-container rxapDataGridRowDef>\n <th *rxapDataGridHeaderCellDef>\n <span i18n>Details</span>\n </th>\n </ng-container>\n }\n @if (error.stack) {\n <ng-container rxapDataGridRowDef=\"stack\">\n <td *rxapDataGridCellDef=\"let value\">\n <pre>{{ value }}</pre>\n </td>\n </ng-container>\n }\n @if (hasTags) {\n <ng-container rxapDataGridRowDef=\"tags\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n @if (hasExtra) {\n <ng-container rxapDataGridRowDef=\"extra\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n @if (hasContexts) {\n <ng-container rxapDataGridRowDef=\"contexts\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "component", type: DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "directive", type: DataGridHeaderCellDefDirective, selector: "[rxapDataGridHeaderCellDef]" }, { kind: "directive", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
279
258
  }
280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AngularErrorComponent, decorators: [{
259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AngularErrorComponent, decorators: [{
281
260
  type: Component,
282
- args: [{ selector: 'rxap-angular-error', imports: [DataGridModule, KeyValuePipe, NgForOf, NgIf], template: "<rxap-data-grid [data]=\"error\">\n <ng-container *ngIf=\"error.name\" rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container *ngIf=\"hasExtra || hasTags || hasContexts || error.stack\" rxapDataGridRowDef>\n <th *rxapDataGridHeaderCellDef>\n <span i18n>Details</span>\n </th>\n </ng-container>\n <ng-container *ngIf=\"error.stack\" rxapDataGridRowDef=\"stack\">\n <td *rxapDataGridCellDef=\"let value\">\n <pre>{{ value }}</pre>\n </td>\n </ng-container>\n <ng-container *ngIf=\"hasTags\" rxapDataGridRowDef=\"tags\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"hasExtra\" rxapDataGridRowDef=\"extra\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"hasContexts\" rxapDataGridRowDef=\"contexts\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n</rxap-data-grid>\n" }]
261
+ args: [{ selector: 'rxap-angular-error', changeDetection: ChangeDetectionStrategy.OnPush, imports: [DataGridComponent, DataGridRowDefDirective, DataGridHeaderCellDefDirective, DataGridCellDefDirective, KeyValuePipe], template: "<rxap-data-grid [data]=\"error\">\n @if (error.name) {\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n }\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n @if (hasExtra || hasTags || hasContexts || error.stack) {\n <ng-container rxapDataGridRowDef>\n <th *rxapDataGridHeaderCellDef>\n <span i18n>Details</span>\n </th>\n </ng-container>\n }\n @if (error.stack) {\n <ng-container rxapDataGridRowDef=\"stack\">\n <td *rxapDataGridCellDef=\"let value\">\n <pre>{{ value }}</pre>\n </td>\n </ng-container>\n }\n @if (hasTags) {\n <ng-container rxapDataGridRowDef=\"tags\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n @if (hasExtra) {\n <ng-container rxapDataGridRowDef=\"extra\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n @if (hasContexts) {\n <ng-container rxapDataGridRowDef=\"contexts\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n" }]
283
262
  }] });
284
-
285
263
  class AngularErrorService extends ErrorCaptureService {
286
264
  constructor() {
287
265
  super(...arguments);
@@ -290,31 +268,28 @@ class AngularErrorService extends ErrorCaptureService {
290
268
  compare(a, b) {
291
269
  return true;
292
270
  }
293
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AngularErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
294
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AngularErrorService, providedIn: 'root' }); }
271
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AngularErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
272
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AngularErrorService, providedIn: 'root' }); }
295
273
  }
296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AngularErrorService, decorators: [{
274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AngularErrorService, decorators: [{
297
275
  type: Injectable,
298
276
  args: [{ providedIn: 'root' }]
299
277
  }] });
300
-
301
278
  class CodeHttpErrorComponent {
302
279
  constructor() {
303
280
  this.isProduction = inject(RXAP_ENVIRONMENT, { optional: true })?.production ?? false;
304
281
  this.error = inject(RXAP_ERROR_DIALOG_ERROR);
305
- this.showMore = signal(false);
282
+ this.showMore = signal(false, ...(ngDevMode ? [{ debugName: "showMore" }] : /* istanbul ignore next */ []));
306
283
  }
307
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CodeHttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
308
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: CodeHttpErrorComponent, isStandalone: true, selector: "rxap-http-error-message", ngImport: i0, template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Code:&nbsp;<span class=\"font-bold text-red-800\">{{ error.errorCode }}</span></p>\n <p>{{ error.error.message ?? error.message }}</p>\n <ng-container *ngIf=\"!isProduction\">\n <hr>\n <button (click)=\"showMore.set(true)\"\n *ngIf=\"!showMore()\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n <rxap-any-http-error *ngIf=\"showMore()\"></rxap-any-http-error>\n </ng-container>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AnyHttpErrorComponent, selector: "rxap-any-http-error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
284
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CodeHttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
285
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: CodeHttpErrorComponent, isStandalone: true, selector: "rxap-http-error-message", ngImport: i0, template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Code:&nbsp;<span class=\"font-bold text-red-800\">{{ error.errorCode }}</span></p>\n <p>{{ error.error.message ?? error.message }}</p>\n @if (!isProduction) {\n <hr>\n @if (!showMore()) {\n <button (click)=\"showMore.set(true)\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n }\n @if (showMore()) {\n <rxap-any-http-error></rxap-any-http-error>\n }\n }\n </div>\n", styles: [""], dependencies: [{ kind: "component", type: AnyHttpErrorComponent, selector: "rxap-any-http-error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
309
286
  }
310
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CodeHttpErrorComponent, decorators: [{
287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CodeHttpErrorComponent, decorators: [{
311
288
  type: Component,
312
289
  args: [{ selector: 'rxap-http-error-message', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
313
- NgIf,
314
- AnyHttpErrorComponent,
315
- ], template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Code:&nbsp;<span class=\"font-bold text-red-800\">{{ error.errorCode }}</span></p>\n <p>{{ error.error.message ?? error.message }}</p>\n <ng-container *ngIf=\"!isProduction\">\n <hr>\n <button (click)=\"showMore.set(true)\"\n *ngIf=\"!showMore()\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n <rxap-any-http-error *ngIf=\"showMore()\"></rxap-any-http-error>\n </ng-container>\n</div>\n" }]
290
+ AnyHttpErrorComponent
291
+ ], template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Code:&nbsp;<span class=\"font-bold text-red-800\">{{ error.errorCode }}</span></p>\n <p>{{ error.error.message ?? error.message }}</p>\n @if (!isProduction) {\n <hr>\n @if (!showMore()) {\n <button (click)=\"showMore.set(true)\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n }\n @if (showMore()) {\n <rxap-any-http-error></rxap-any-http-error>\n }\n }\n </div>\n" }]
316
292
  }] });
317
-
318
293
  class CodeHttpErrorService extends AnyHttpErrorService {
319
294
  constructor() {
320
295
  super(...arguments);
@@ -323,14 +298,13 @@ class CodeHttpErrorService extends AnyHttpErrorService {
323
298
  compare(a, b) {
324
299
  return super.compare(a, b) && a.errorCode === b.errorCode;
325
300
  }
326
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CodeHttpErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
327
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CodeHttpErrorService, providedIn: 'root' }); }
301
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CodeHttpErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
302
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CodeHttpErrorService, providedIn: 'root' }); }
328
303
  }
329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: CodeHttpErrorService, decorators: [{
304
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CodeHttpErrorService, decorators: [{
330
305
  type: Injectable,
331
306
  args: [{ providedIn: 'root' }]
332
307
  }] });
333
-
334
308
  function SimplifyHttpErrorResponse(event) {
335
309
  let error = event.error;
336
310
  if (typeof error !== 'object') {
@@ -410,7 +384,6 @@ function PrintError(errorCandidate) {
410
384
  console.error(errorCandidate);
411
385
  }
412
386
  }
413
-
414
387
  const RXAP_ERROR_HANDLER_OPTIONS = new InjectionToken('rxap-error-handler-options', {
415
388
  providedIn: 'root',
416
389
  factory: () => ({ logErrors: true }),
@@ -544,20 +517,18 @@ class RxapErrorHandler {
544
517
  inject(AngularErrorService).push(data);
545
518
  });
546
519
  }
547
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: RxapErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
548
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: RxapErrorHandler }); }
520
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
521
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapErrorHandler }); }
549
522
  }
550
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: RxapErrorHandler, decorators: [{
523
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapErrorHandler, decorators: [{
551
524
  type: Injectable
552
525
  }] });
553
-
554
526
  function DefaultErrorCodeExtractor(error) {
555
527
  return error.error?.code ?? null;
556
528
  }
557
529
  function DefaultErrorFilter(error) {
558
530
  return error.status >= 400 && (!error.url || !/\/api\/status/.test(error.url));
559
531
  }
560
-
561
532
  function HttpErrorInterceptor(req, next) {
562
533
  const anyHttpErrorService = inject(AnyHttpErrorService);
563
534
  const messageHttpErrorService = inject(MessageHttpErrorService);
@@ -591,7 +562,7 @@ function HttpErrorInterceptor(req, next) {
591
562
  timestamp: Date.now(),
592
563
  };
593
564
  if (error && typeof error === 'object') {
594
- const errorCode = options.extractErrorCode(error);
565
+ const errorCode = options.extractErrorCode(event);
595
566
  if (errorCode) {
596
567
  Sentry.captureMessage(`Error Code ${errorCode}`, {
597
568
  level: 'warning',
@@ -604,7 +575,7 @@ function HttpErrorInterceptor(req, next) {
604
575
  errorCode,
605
576
  });
606
577
  }
607
- else if (event.error.message) {
578
+ else if (error.message) {
608
579
  messageHttpErrorService.push(data);
609
580
  }
610
581
  else {
@@ -618,7 +589,6 @@ function HttpErrorInterceptor(req, next) {
618
589
  },
619
590
  }));
620
591
  }
621
-
622
592
  function provideAutoErrorInterception(...providers) {
623
593
  return [
624
594
  {
@@ -651,13 +621,9 @@ function ProvideErrorHandler() {
651
621
  }
652
622
  ];
653
623
  }
654
-
655
624
  // region open-api-http-response-error
656
625
  // endregion
657
-
658
626
  /**
659
627
  * Generated bundle index. Do not edit.
660
628
  */
661
-
662
629
  export { AngularErrorComponent, AngularErrorService, AnyHttpErrorComponent, AnyHttpErrorService, CodeHttpErrorComponent, CodeHttpErrorService, DefaultErrorCodeExtractor, DefaultErrorFilter, ErrorCaptureDialogService, ErrorCaptureService, ErrorDialogComponent, ExtractContextFromError, ExtractError, ExtractExtraFromError, ExtractTagsFromError, HttpErrorInterceptor, MessageHttpErrorComponent, MessageHttpErrorService, OpenApiHttpResponseErrorComponent, OpenApiHttpResponseErrorService, PrintError, ProvideErrorHandler, RXAP_ERROR_CAPTURE_DIALOG_SERVICE, RXAP_ERROR_DIALOG_COMPONENT, RXAP_ERROR_DIALOG_DATA, RXAP_ERROR_DIALOG_DISABLED, RXAP_ERROR_DIALOG_ERROR, RXAP_ERROR_HANDLER_OPTIONS, RXAP_ERROR_INTERCEPTOR_OPTIONS, RxapErrorHandler, SimplifyHttpErrorResponse, provideAutoErrorInterception, withErrorCaptureDialogDisabledIf, withErrorCaptureDialogService };
663
- //# sourceMappingURL=rxap-ngx-error.mjs.map