@rxap/ngx-error 19.3.0 → 21.0.1-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/compodoc/changelog.html +18 -0
- package/compodoc/components/AngularErrorComponent.html +45 -39
- package/compodoc/components/AnyHttpErrorComponent.html +60 -54
- package/compodoc/components/CodeHttpErrorComponent.html +19 -19
- package/compodoc/components/ErrorDialogComponent.html +39 -40
- package/compodoc/components/MessageHttpErrorComponent.html +19 -19
- package/compodoc/components/OpenApiHttpResponseErrorComponent.html +50 -34
- package/compodoc/dependencies.html +11 -11
- package/compodoc/injectables/ErrorCaptureDialogService.html +7 -6
- package/compodoc/interfaces/IErrorCaptureDialogService.html +4 -3
- package/compodoc/interfaces/IErrorDialogComponent.html +4 -10
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +319 -319
- package/docs/html/classes/AngularErrorComponent.html +2 -2
- package/docs/html/classes/AngularErrorService.html +2 -2
- package/docs/html/classes/AnyHttpErrorComponent.html +2 -2
- package/docs/html/classes/AnyHttpErrorService.html +2 -2
- package/docs/html/classes/CodeHttpErrorComponent.html +2 -2
- package/docs/html/classes/CodeHttpErrorService.html +2 -2
- package/docs/html/classes/ErrorCaptureDialogService.html +2 -2
- package/docs/html/classes/ErrorCaptureService.html +2 -2
- package/docs/html/classes/ErrorDialogComponent.html +3 -3
- package/docs/html/classes/MessageHttpErrorComponent.html +2 -2
- package/docs/html/classes/MessageHttpErrorService.html +2 -2
- package/docs/html/classes/OpenApiHttpResponseErrorComponent.html +2 -2
- package/docs/html/classes/OpenApiHttpResponseErrorService.html +2 -2
- package/docs/html/classes/RxapErrorHandler.html +3 -3
- package/docs/html/functions/DefaultErrorCodeExtractor.html +1 -1
- package/docs/html/functions/DefaultErrorFilter.html +1 -1
- package/docs/html/functions/ExtractContextFromError.html +1 -1
- package/docs/html/functions/ExtractError.html +1 -1
- package/docs/html/functions/ExtractExtraFromError.html +1 -1
- package/docs/html/functions/ExtractTagsFromError.html +1 -1
- package/docs/html/functions/HttpErrorInterceptor.html +1 -1
- package/docs/html/functions/PrintError.html +1 -1
- package/docs/html/functions/ProvideErrorHandler.html +2 -2
- package/docs/html/functions/SimplifyHttpErrorResponse.html +1 -1
- package/docs/html/functions/provideAutoErrorInterception.html +1 -1
- package/docs/html/functions/withErrorCaptureDialogDisabledIf.html +1 -1
- package/docs/html/functions/withErrorCaptureDialogService.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/AngularErrorDialogData.html +2 -2
- package/docs/html/interfaces/AnyHttpErrorDialogData.html +8 -8
- package/docs/html/interfaces/CodeHttpErrorDialogData.html +8 -8
- package/docs/html/interfaces/ErrorHandlerOptions.html +2 -2
- package/docs/html/interfaces/ErrorInterceptorOptions.html +2 -2
- package/docs/html/interfaces/IErrorCaptureDialogService.html +2 -2
- package/docs/html/interfaces/IErrorDialogComponent.html +2 -2
- package/docs/html/interfaces/MessageHttpErrorDialogData.html +8 -8
- package/docs/html/interfaces/OpenApiHttpResponseErrorDialogData.html +8 -8
- package/docs/html/interfaces/SimplifiedHttpErrorResponse.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_COMPONENT.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_DATA.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_DISABLED.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_ERROR.html +1 -1
- package/docs/html/variables/RXAP_ERROR_HANDLER_OPTIONS.html +1 -1
- package/docs/html/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AngularErrorComponent.md +6 -6
- package/docs/markdown/classes/AngularErrorService.md +5 -5
- package/docs/markdown/classes/AnyHttpErrorComponent.md +4 -4
- package/docs/markdown/classes/AnyHttpErrorService.md +5 -5
- package/docs/markdown/classes/CodeHttpErrorComponent.md +5 -5
- package/docs/markdown/classes/CodeHttpErrorService.md +5 -5
- package/docs/markdown/classes/ErrorCaptureDialogService.md +6 -6
- package/docs/markdown/classes/ErrorCaptureService.md +5 -5
- package/docs/markdown/classes/ErrorDialogComponent.md +10 -10
- package/docs/markdown/classes/MessageHttpErrorComponent.md +5 -5
- package/docs/markdown/classes/MessageHttpErrorService.md +5 -5
- package/docs/markdown/classes/OpenApiHttpResponseErrorComponent.md +4 -4
- package/docs/markdown/classes/OpenApiHttpResponseErrorService.md +5 -5
- package/docs/markdown/classes/RxapErrorHandler.md +7 -7
- package/docs/markdown/functions/DefaultErrorCodeExtractor.md +2 -2
- package/docs/markdown/functions/DefaultErrorFilter.md +2 -2
- package/docs/markdown/functions/ExtractContextFromError.md +2 -2
- package/docs/markdown/functions/ExtractError.md +2 -2
- package/docs/markdown/functions/ExtractExtraFromError.md +2 -2
- package/docs/markdown/functions/ExtractTagsFromError.md +2 -2
- package/docs/markdown/functions/HttpErrorInterceptor.md +2 -2
- package/docs/markdown/functions/PrintError.md +2 -2
- package/docs/markdown/functions/ProvideErrorHandler.md +2 -2
- package/docs/markdown/functions/SimplifyHttpErrorResponse.md +2 -2
- package/docs/markdown/functions/provideAutoErrorInterception.md +2 -2
- package/docs/markdown/functions/withErrorCaptureDialogDisabledIf.md +2 -2
- package/docs/markdown/functions/withErrorCaptureDialogService.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/AngularErrorDialogData.md +8 -8
- package/docs/markdown/interfaces/AnyHttpErrorDialogData.md +15 -15
- package/docs/markdown/interfaces/CodeHttpErrorDialogData.md +16 -16
- package/docs/markdown/interfaces/ErrorHandlerOptions.md +5 -5
- package/docs/markdown/interfaces/ErrorInterceptorOptions.md +4 -4
- package/docs/markdown/interfaces/IErrorCaptureDialogService.md +3 -3
- package/docs/markdown/interfaces/IErrorDialogComponent.md +3 -3
- package/docs/markdown/interfaces/MessageHttpErrorDialogData.md +15 -15
- package/docs/markdown/interfaces/OpenApiHttpResponseErrorDialogData.md +18 -18
- package/docs/markdown/interfaces/SimplifiedHttpErrorResponse.md +12 -12
- package/docs/markdown/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_DATA.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_DISABLED.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_ERROR.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_HANDLER_OPTIONS.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.md +2 -2
- package/docs/wiki/Class.AngularErrorComponent.md +5 -5
- package/docs/wiki/Class.AngularErrorService.md +4 -4
- package/docs/wiki/Class.AnyHttpErrorComponent.md +3 -3
- package/docs/wiki/Class.AnyHttpErrorService.md +4 -4
- package/docs/wiki/Class.CodeHttpErrorComponent.md +4 -4
- package/docs/wiki/Class.CodeHttpErrorService.md +4 -4
- package/docs/wiki/Class.ErrorCaptureDialogService.md +5 -5
- package/docs/wiki/Class.ErrorCaptureService.md +4 -4
- package/docs/wiki/Class.ErrorDialogComponent.md +9 -9
- package/docs/wiki/Class.MessageHttpErrorComponent.md +4 -4
- package/docs/wiki/Class.MessageHttpErrorService.md +4 -4
- package/docs/wiki/Class.OpenApiHttpResponseErrorComponent.md +3 -3
- package/docs/wiki/Class.OpenApiHttpResponseErrorService.md +4 -4
- package/docs/wiki/Class.RxapErrorHandler.md +6 -6
- package/docs/wiki/Function.DefaultErrorCodeExtractor.md +1 -1
- package/docs/wiki/Function.DefaultErrorFilter.md +1 -1
- package/docs/wiki/Function.ExtractContextFromError.md +1 -1
- package/docs/wiki/Function.ExtractError.md +1 -1
- package/docs/wiki/Function.ExtractExtraFromError.md +1 -1
- package/docs/wiki/Function.ExtractTagsFromError.md +1 -1
- package/docs/wiki/Function.HttpErrorInterceptor.md +1 -1
- package/docs/wiki/Function.PrintError.md +1 -1
- package/docs/wiki/Function.ProvideErrorHandler.md +1 -1
- package/docs/wiki/Function.SimplifyHttpErrorResponse.md +1 -1
- package/docs/wiki/Function.provideAutoErrorInterception.md +1 -1
- package/docs/wiki/Function.withErrorCaptureDialogDisabledIf.md +1 -1
- package/docs/wiki/Function.withErrorCaptureDialogService.md +1 -1
- package/docs/wiki/Interface.AngularErrorDialogData.md +7 -7
- package/docs/wiki/Interface.AnyHttpErrorDialogData.md +14 -14
- package/docs/wiki/Interface.CodeHttpErrorDialogData.md +15 -15
- package/docs/wiki/Interface.ErrorHandlerOptions.md +4 -4
- package/docs/wiki/Interface.ErrorInterceptorOptions.md +3 -3
- package/docs/wiki/Interface.IErrorCaptureDialogService.md +2 -2
- package/docs/wiki/Interface.IErrorDialogComponent.md +2 -2
- package/docs/wiki/Interface.MessageHttpErrorDialogData.md +14 -14
- package/docs/wiki/Interface.OpenApiHttpResponseErrorDialogData.md +17 -17
- package/docs/wiki/Interface.SimplifiedHttpErrorResponse.md +11 -11
- package/docs/wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DATA.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DISABLED.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_ERROR.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_HANDLER_OPTIONS.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_INTERCEPTOR_OPTIONS.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-error.mjs +60 -66
- package/fesm2022/rxap-ngx-error.mjs.map +1 -1
- package/package.json +42 -41
- package/types/rxap-ngx-error.d.ts +256 -0
- package/index.d.ts +0 -24
- package/lib/any-http-error/any-http-error-dialog-data.d.ts +0 -36
- package/lib/any-http-error/any-http-error.component.d.ts +0 -9
- package/lib/any-http-error/any-http-error.service.d.ts +0 -11
- package/lib/code-http-error/code-http-error-dialog-data.d.ts +0 -7
- package/lib/code-http-error/code-http-error.component.d.ts +0 -10
- package/lib/code-http-error/code-http-error.service.d.ts +0 -10
- package/lib/error/angular-error-dialog-data.d.ts +0 -8
- package/lib/error/angular-error.component.d.ts +0 -11
- package/lib/error/angular-error.service.d.ts +0 -10
- package/lib/error-capture-dialog.service.d.ts +0 -16
- package/lib/error-capture.service.d.ts +0 -12
- package/lib/error-dialog/error-dialog.component.d.ts +0 -20
- package/lib/error-handler.d.ts +0 -27
- package/lib/error-interceptor-options.d.ts +0 -7
- package/lib/http-error-interceptor.d.ts +0 -3
- package/lib/message-http-error/message-http-error-dialog-data.d.ts +0 -6
- package/lib/message-http-error/message-http-error.component.d.ts +0 -10
- package/lib/message-http-error/message-http-error.service.d.ts +0 -10
- package/lib/open-api-http-response-error/open-api-http-response-error-dialog-data.d.ts +0 -7
- package/lib/open-api-http-response-error/open-api-http-response-error.component.d.ts +0 -9
- package/lib/open-api-http-response-error/open-api-http-response-error.service.d.ts +0 -10
- package/lib/provide.d.ts +0 -10
- package/lib/tokens.d.ts +0 -11
- package/lib/utilities.d.ts +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 21.0.1-dev.0 (2026-11-20)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **upgrade:** TestBed.get->inject (removed in angular) + dedupe rxjs to single version
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated angular-environment to 21.0.1-dev.0
|
|
10
|
+
- Updated angular-components to 21.0.1-dev.0
|
|
11
|
+
- Updated angular-data-grid to 21.0.1-dev.0
|
|
12
|
+
- Updated angular-open-api to 21.0.1-dev.0
|
|
13
|
+
- Updated angular-config to 21.0.1-dev.0
|
|
14
|
+
- Updated utilities to 16.5.2-dev.0
|
|
15
|
+
|
|
16
|
+
### ❤️ Thank You
|
|
17
|
+
|
|
18
|
+
- Merzough Münker
|
|
19
|
+
|
|
1
20
|
## 19.3.0 (2026-11-20)
|
|
2
21
|
|
|
3
22
|
This was a version bump only for angular-error to align it with other projects, there were no code changes.
|
package/compodoc/changelog.html
CHANGED
|
@@ -82,6 +82,24 @@
|
|
|
82
82
|
<div class="content getting-started">
|
|
83
83
|
<div class="content-data">
|
|
84
84
|
|
|
85
|
+
<h2>21.0.1-dev.0 (2026-11-20)</h2>
|
|
86
|
+
<h3>🩹 Fixes</h3>
|
|
87
|
+
<ul>
|
|
88
|
+
<li><strong>upgrade:</strong> TestBed.get->inject (removed in angular) + dedupe rxjs to single version</li>
|
|
89
|
+
</ul>
|
|
90
|
+
<h3>🧱 Updated Dependencies</h3>
|
|
91
|
+
<ul>
|
|
92
|
+
<li>Updated angular-environment to 21.0.1-dev.0</li>
|
|
93
|
+
<li>Updated angular-components to 21.0.1-dev.0</li>
|
|
94
|
+
<li>Updated angular-data-grid to 21.0.1-dev.0</li>
|
|
95
|
+
<li>Updated angular-open-api to 21.0.1-dev.0</li>
|
|
96
|
+
<li>Updated angular-config to 21.0.1-dev.0</li>
|
|
97
|
+
<li>Updated utilities to 16.5.2-dev.0</li>
|
|
98
|
+
</ul>
|
|
99
|
+
<h3>❤️ Thank You</h3>
|
|
100
|
+
<ul>
|
|
101
|
+
<li>Merzough Münker</li>
|
|
102
|
+
</ul>
|
|
85
103
|
<h2>19.3.0 (2026-11-20)</h2>
|
|
86
104
|
<p>This was a version bump only for angular-error to align it with other projects, there were no code changes.</p>
|
|
87
105
|
<h2>19.3.0-dev.1 (2026-06-30)</h2>
|
|
@@ -161,8 +161,6 @@
|
|
|
161
161
|
<td class="col-md-9">
|
|
162
162
|
<code>DataGridModule</code>
|
|
163
163
|
<code>KeyValuePipe</code>
|
|
164
|
-
<code>NgForOf</code>
|
|
165
|
-
<code>NgIf</code>
|
|
166
164
|
</td>
|
|
167
165
|
</tr>
|
|
168
166
|
|
|
@@ -276,7 +274,7 @@
|
|
|
276
274
|
</tr>
|
|
277
275
|
<tr>
|
|
278
276
|
<td class="col-md-4">
|
|
279
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
277
|
+
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/lib/error/angular-error.component.ts:19</a></div>
|
|
280
278
|
</td>
|
|
281
279
|
</tr>
|
|
282
280
|
|
|
@@ -305,7 +303,7 @@
|
|
|
305
303
|
</tr>
|
|
306
304
|
<tr>
|
|
307
305
|
<td class="col-md-4">
|
|
308
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
306
|
+
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">src/lib/error/angular-error.component.ts:21</a></div>
|
|
309
307
|
</td>
|
|
310
308
|
</tr>
|
|
311
309
|
|
|
@@ -327,7 +325,7 @@
|
|
|
327
325
|
</tr>
|
|
328
326
|
<tr>
|
|
329
327
|
<td class="col-md-4">
|
|
330
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
328
|
+
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/error/angular-error.component.ts:25</a></div>
|
|
331
329
|
</td>
|
|
332
330
|
</tr>
|
|
333
331
|
|
|
@@ -349,7 +347,7 @@
|
|
|
349
347
|
</tr>
|
|
350
348
|
<tr>
|
|
351
349
|
<td class="col-md-4">
|
|
352
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
350
|
+
<div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/lib/error/angular-error.component.ts:29</a></div>
|
|
353
351
|
</td>
|
|
354
352
|
</tr>
|
|
355
353
|
|
|
@@ -360,11 +358,7 @@
|
|
|
360
358
|
|
|
361
359
|
|
|
362
360
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
363
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
364
|
-
KeyValuePipe,
|
|
365
|
-
NgForOf,
|
|
366
|
-
NgIf,
|
|
367
|
-
} from '@angular/common';
|
|
361
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { KeyValuePipe } from '@angular/common';
|
|
368
362
|
import {
|
|
369
363
|
Component,
|
|
370
364
|
inject,
|
|
@@ -376,7 +370,7 @@ import { AngularErrorDialogData } from './angular-error-dialog-data';
|
|
|
376
370
|
|
|
377
371
|
@Component({
|
|
378
372
|
selector: 'rxap-angular-error',
|
|
379
|
-
imports: [DataGridModule, KeyValuePipe
|
|
373
|
+
imports: [DataGridModule, KeyValuePipe],
|
|
380
374
|
templateUrl: './angular-error.component.html',
|
|
381
375
|
styleUrls: ['./angular-error.component.scss']
|
|
382
376
|
})
|
|
@@ -402,33 +396,45 @@ export class AngularErrorComponent implements IErrorDialogComponent<AngularEr
|
|
|
402
396
|
|
|
403
397
|
<div class="tab-pane fade " id="templateData">
|
|
404
398
|
<pre class="line-numbers"><code class="language-html"><rxap-data-grid [data]="error">
|
|
405
|
-
|
|
399
|
+
@if (error.name) {
|
|
400
|
+
<ng-container rxapDataGridRowDef="name"></ng-container>
|
|
401
|
+
}
|
|
406
402
|
<ng-container rxapDataGridRowDef="message"></ng-container>
|
|
407
|
-
|
|
408
|
-
<
|
|
409
|
-
<
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
<
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
403
|
+
@if (hasExtra || hasTags || hasContexts || error.stack) {
|
|
404
|
+
<ng-container rxapDataGridRowDef>
|
|
405
|
+
<th *rxapDataGridHeaderCellDef>
|
|
406
|
+
<span i18n>Details</span>
|
|
407
|
+
</th>
|
|
408
|
+
</ng-container>
|
|
409
|
+
}
|
|
410
|
+
@if (error.stack) {
|
|
411
|
+
<ng-container rxapDataGridRowDef="stack">
|
|
412
|
+
<td *rxapDataGridCellDef="let value">
|
|
413
|
+
<pre>{{ value }}</pre>
|
|
414
|
+
</td>
|
|
415
|
+
</ng-container>
|
|
416
|
+
}
|
|
417
|
+
@if (hasTags) {
|
|
418
|
+
<ng-container rxapDataGridRowDef="tags">
|
|
419
|
+
<td *rxapDataGridCellDef="let value">
|
|
420
|
+
<rxap-data-grid [data]="value" auto></rxap-data-grid>
|
|
421
|
+
</td>
|
|
422
|
+
</ng-container>
|
|
423
|
+
}
|
|
424
|
+
@if (hasExtra) {
|
|
425
|
+
<ng-container rxapDataGridRowDef="extra">
|
|
426
|
+
<td *rxapDataGridCellDef="let value">
|
|
427
|
+
<rxap-data-grid [data]="value" auto></rxap-data-grid>
|
|
428
|
+
</td>
|
|
429
|
+
</ng-container>
|
|
430
|
+
}
|
|
431
|
+
@if (hasContexts) {
|
|
432
|
+
<ng-container rxapDataGridRowDef="contexts">
|
|
433
|
+
<td *rxapDataGridCellDef="let value">
|
|
434
|
+
<rxap-data-grid [data]="value" auto></rxap-data-grid>
|
|
435
|
+
</td>
|
|
436
|
+
</ng-container>
|
|
437
|
+
}
|
|
432
438
|
</rxap-data-grid>
|
|
433
439
|
</code></pre>
|
|
434
440
|
</div>
|
|
@@ -465,7 +471,7 @@ export class AngularErrorComponent implements IErrorDialogComponent<AngularEr
|
|
|
465
471
|
<script src="../js/libs/htmlparser.js"></script>
|
|
466
472
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
467
473
|
<script>
|
|
468
|
-
var COMPONENT_TEMPLATE = '<div><rxap-data-grid [data]="error"> <ng-container
|
|
474
|
+
var COMPONENT_TEMPLATE = '<div><rxap-data-grid [data]="error"> @if (error.name) { <ng-container rxapDataGridRowDef="name"></ng-container> } <ng-container rxapDataGridRowDef="message"></ng-container> @if (hasExtra || hasTags || hasContexts || error.stack) { <ng-container rxapDataGridRowDef> <th *rxapDataGridHeaderCellDef> <span i18n>Details</span> </th> </ng-container> } @if (error.stack) { <ng-container rxapDataGridRowDef="stack"> <td *rxapDataGridCellDef="let value"> <pre>{{ value }}</pre> </td> </ng-container> } @if (hasTags) { <ng-container rxapDataGridRowDef="tags"> <td *rxapDataGridCellDef="let value"> <rxap-data-grid [data]="value" auto></rxap-data-grid> </td> </ng-container> } @if (hasExtra) { <ng-container rxapDataGridRowDef="extra"> <td *rxapDataGridCellDef="let value"> <rxap-data-grid [data]="value" auto></rxap-data-grid> </td> </ng-container> } @if (hasContexts) { <ng-container rxapDataGridRowDef="contexts"> <td *rxapDataGridCellDef="let value"> <rxap-data-grid [data]="value" auto></rxap-data-grid> </td> </ng-container> }</rxap-data-grid></div>'
|
|
469
475
|
var COMPONENTS = [{'name': 'AngularErrorComponent', 'selector': 'rxap-angular-error'},{'name': 'AnyHttpErrorComponent', 'selector': 'rxap-any-http-error'},{'name': 'CodeHttpErrorComponent', 'selector': 'rxap-http-error-message'},{'name': 'ErrorDialogComponent', 'selector': 'rxap-error-dialog'},{'name': 'MessageHttpErrorComponent', 'selector': 'rxap-http-error-message'},{'name': 'OpenApiHttpResponseErrorComponent', 'selector': 'rxap-open-api-http-response-error'}];
|
|
470
476
|
var DIRECTIVES = [];
|
|
471
477
|
var ACTUAL_COMPONENT = {'name': 'AngularErrorComponent'};
|
|
@@ -164,10 +164,8 @@
|
|
|
164
164
|
<td class="col-md-3">imports</td>
|
|
165
165
|
<td class="col-md-9">
|
|
166
166
|
<code>DataGridModule</code>
|
|
167
|
-
<code>NgIf</code>
|
|
168
167
|
<code>DatePipe</code>
|
|
169
168
|
<code>KeyValuePipe</code>
|
|
170
|
-
<code>NgForOf</code>
|
|
171
169
|
<code>CopyToClipboardComponent</code>
|
|
172
170
|
<code>JsonPipe</code>
|
|
173
171
|
<code>JsonViewerComponent</code>
|
|
@@ -269,7 +267,7 @@
|
|
|
269
267
|
</tr>
|
|
270
268
|
<tr>
|
|
271
269
|
<td class="col-md-4">
|
|
272
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
270
|
+
<div class="io-line">Defined in <a href="" data-line="35" class="link-to-prism">src/lib/any-http-error/any-http-error.component.ts:35</a></div>
|
|
273
271
|
</td>
|
|
274
272
|
</tr>
|
|
275
273
|
|
|
@@ -302,7 +300,7 @@
|
|
|
302
300
|
</tr>
|
|
303
301
|
<tr>
|
|
304
302
|
<td class="col-md-4">
|
|
305
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
303
|
+
<div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/lib/any-http-error/any-http-error.component.ts:33</a></div>
|
|
306
304
|
</td>
|
|
307
305
|
</tr>
|
|
308
306
|
|
|
@@ -315,13 +313,7 @@
|
|
|
315
313
|
|
|
316
314
|
|
|
317
315
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
318
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
319
|
-
DatePipe,
|
|
320
|
-
JsonPipe,
|
|
321
|
-
KeyValuePipe,
|
|
322
|
-
NgForOf,
|
|
323
|
-
NgIf,
|
|
324
|
-
} from '@angular/common';
|
|
316
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { DatePipe, JsonPipe, KeyValuePipe } from '@angular/common';
|
|
325
317
|
import {
|
|
326
318
|
ChangeDetectionStrategy,
|
|
327
319
|
Component,
|
|
@@ -343,15 +335,13 @@ import { AnyHttpErrorDialogData } from './any-http-error-dialog-data';
|
|
|
343
335
|
styleUrls: ['./any-http-error.component.scss'],
|
|
344
336
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
345
337
|
imports: [
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
JsonViewerComponent,
|
|
354
|
-
]
|
|
338
|
+
DataGridModule,
|
|
339
|
+
DatePipe,
|
|
340
|
+
KeyValuePipe,
|
|
341
|
+
CopyToClipboardComponent,
|
|
342
|
+
JsonPipe,
|
|
343
|
+
JsonViewerComponent
|
|
344
|
+
]
|
|
355
345
|
})
|
|
356
346
|
export class AnyHttpErrorComponent implements IErrorDialogComponent<AnyHttpErrorDialogData> {
|
|
357
347
|
|
|
@@ -377,42 +367,58 @@ export class AnyHttpErrorComponent implements IErrorDialogComponent<AnyHttpEr
|
|
|
377
367
|
<ng-container rxapDataGridRowDef="headers">
|
|
378
368
|
<td *rxapDataGridCellDef="let value">
|
|
379
369
|
<rxap-data-grid [data]="value">
|
|
380
|
-
|
|
381
|
-
<
|
|
382
|
-
<
|
|
383
|
-
&
|
|
384
|
-
<
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
370
|
+
@for (entry of value | keyvalue; track entry) {
|
|
371
|
+
<ng-container [rxapDataGridRowDef]="$any(entry.key)">
|
|
372
|
+
<td *rxapDataGridCellDef="let value">
|
|
373
|
+
@if (value.length > 1) {
|
|
374
|
+
<ul>
|
|
375
|
+
@for (item of value; track item) {
|
|
376
|
+
<li>{{ item }}</li>
|
|
377
|
+
}
|
|
378
|
+
</ul>
|
|
379
|
+
}
|
|
380
|
+
@if (value.length === 1) {
|
|
381
|
+
{{ value[0] }}
|
|
382
|
+
}
|
|
383
|
+
@if (value.length === 0) {
|
|
384
|
+
NONE
|
|
385
|
+
}
|
|
386
|
+
</td>
|
|
387
|
+
</ng-container>
|
|
388
|
+
}
|
|
391
389
|
</rxap-data-grid>
|
|
392
390
|
</td>
|
|
393
391
|
</ng-container>
|
|
394
|
-
|
|
395
|
-
<
|
|
396
|
-
<
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
<
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
392
|
+
@if (!isProduction) {
|
|
393
|
+
<ng-container rxapDataGridRowDef="error">
|
|
394
|
+
<td *rxapDataGridCellDef="let value">
|
|
395
|
+
@if (value) {
|
|
396
|
+
<rxap-copy-to-clipboard [value]="value | json">Copy Response Body</rxap-copy-to-clipboard>
|
|
397
|
+
<div class="body">
|
|
398
|
+
<rxap-json-viewer [expanded]="false" [json]="value"></rxap-json-viewer>
|
|
399
|
+
</div>
|
|
400
|
+
}
|
|
401
|
+
@if (!value) {
|
|
402
|
+
NONE
|
|
403
|
+
}
|
|
404
|
+
</td>
|
|
405
|
+
</ng-container>
|
|
406
|
+
}
|
|
407
|
+
@if (!isProduction) {
|
|
408
|
+
<ng-container rxapDataGridRowDef="body">
|
|
409
|
+
<td *rxapDataGridCellDef="let value">
|
|
410
|
+
@if (value) {
|
|
411
|
+
<rxap-copy-to-clipboard [value]="value | json">Copy Request Body</rxap-copy-to-clipboard>
|
|
412
|
+
<div class="body">
|
|
413
|
+
<rxap-json-viewer [expanded]="false" [json]="value"></rxap-json-viewer>
|
|
414
|
+
</div>
|
|
415
|
+
}
|
|
416
|
+
@if (!value) {
|
|
417
|
+
NONE
|
|
418
|
+
}
|
|
419
|
+
</td>
|
|
420
|
+
</ng-container>
|
|
421
|
+
}
|
|
416
422
|
</rxap-data-grid>
|
|
417
423
|
</code></pre>
|
|
418
424
|
</div>
|
|
@@ -449,7 +455,7 @@ export class AnyHttpErrorComponent implements IErrorDialogComponent<AnyHttpEr
|
|
|
449
455
|
<script src="../js/libs/htmlparser.js"></script>
|
|
450
456
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
451
457
|
<script>
|
|
452
|
-
var COMPONENT_TEMPLATE = '<div><rxap-data-grid [data]="error"> <ng-container rxapDataGridRowDef="name"></ng-container> <ng-container rxapDataGridRowDef="timestamp"> <td *rxapDataGridCellDef="let value">{{ value | date:\'HH:mm:ss\' }}</td> </ng-container> <ng-container rxapDataGridRowDef="method"></ng-container> <ng-container rxapDataGridRowDef="url"></ng-container> <ng-container rxapDataGridRowDef="status"></ng-container> <ng-container rxapDataGridRowDef="statusText"></ng-container> <ng-container rxapDataGridRowDef="message"></ng-container> <ng-container rxapDataGridRowDef="headers"> <td *rxapDataGridCellDef="let value"> <rxap-data-grid [data]="value">
|
|
458
|
+
var COMPONENT_TEMPLATE = '<div><rxap-data-grid [data]="error"> <ng-container rxapDataGridRowDef="name"></ng-container> <ng-container rxapDataGridRowDef="timestamp"> <td *rxapDataGridCellDef="let value">{{ value | date:\'HH:mm:ss\' }}</td> </ng-container> <ng-container rxapDataGridRowDef="method"></ng-container> <ng-container rxapDataGridRowDef="url"></ng-container> <ng-container rxapDataGridRowDef="status"></ng-container> <ng-container rxapDataGridRowDef="statusText"></ng-container> <ng-container rxapDataGridRowDef="message"></ng-container> <ng-container rxapDataGridRowDef="headers"> <td *rxapDataGridCellDef="let value"> <rxap-data-grid [data]="value"> @for (entry of value | keyvalue; track entry) { <ng-container [rxapDataGridRowDef]="$any(entry.key)"> <td *rxapDataGridCellDef="let value"> @if (value.length > 1) { <ul> @for (item of value; track item) { <li>{{ item }}</li> } </ul> } @if (value.length === 1) { {{ value[0] }} } @if (value.length === 0) { NONE } </td> </ng-container> } </rxap-data-grid> </td> </ng-container> @if (!isProduction) { <ng-container rxapDataGridRowDef="error"> <td *rxapDataGridCellDef="let value"> @if (value) { <rxap-copy-to-clipboard [value]="value | json">Copy Response Body</rxap-copy-to-clipboard> <div class="body"> <rxap-json-viewer [expanded]="false" [json]="value"></rxap-json-viewer> </div> } @if (!value) { NONE } </td> </ng-container> } @if (!isProduction) { <ng-container rxapDataGridRowDef="body"> <td *rxapDataGridCellDef="let value"> @if (value) { <rxap-copy-to-clipboard [value]="value | json">Copy Request Body</rxap-copy-to-clipboard> <div class="body"> <rxap-json-viewer [expanded]="false" [json]="value"></rxap-json-viewer> </div> } @if (!value) { NONE } </td> </ng-container> }</rxap-data-grid></div>'
|
|
453
459
|
var COMPONENTS = [{'name': 'AngularErrorComponent', 'selector': 'rxap-angular-error'},{'name': 'AnyHttpErrorComponent', 'selector': 'rxap-any-http-error'},{'name': 'CodeHttpErrorComponent', 'selector': 'rxap-http-error-message'},{'name': 'ErrorDialogComponent', 'selector': 'rxap-error-dialog'},{'name': 'MessageHttpErrorComponent', 'selector': 'rxap-http-error-message'},{'name': 'OpenApiHttpResponseErrorComponent', 'selector': 'rxap-open-api-http-response-error'}];
|
|
454
460
|
var DIRECTIVES = [];
|
|
455
461
|
var ACTUAL_COMPONENT = {'name': 'AnyHttpErrorComponent'};
|
|
@@ -163,7 +163,6 @@
|
|
|
163
163
|
<tr>
|
|
164
164
|
<td class="col-md-3">imports</td>
|
|
165
165
|
<td class="col-md-9">
|
|
166
|
-
<code>NgIf</code>
|
|
167
166
|
<code><a href="../components/AnyHttpErrorComponent.html" target="_self" >AnyHttpErrorComponent</a></code>
|
|
168
167
|
</td>
|
|
169
168
|
</tr>
|
|
@@ -268,7 +267,7 @@
|
|
|
268
267
|
</tr>
|
|
269
268
|
<tr>
|
|
270
269
|
<td class="col-md-4">
|
|
271
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
270
|
+
<div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">src/lib/code-http-error/code-http-error.component.ts:27</a></div>
|
|
272
271
|
</td>
|
|
273
272
|
</tr>
|
|
274
273
|
|
|
@@ -301,7 +300,7 @@
|
|
|
301
300
|
</tr>
|
|
302
301
|
<tr>
|
|
303
302
|
<td class="col-md-4">
|
|
304
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
303
|
+
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/code-http-error/code-http-error.component.ts:25</a></div>
|
|
305
304
|
</td>
|
|
306
305
|
</tr>
|
|
307
306
|
|
|
@@ -328,7 +327,7 @@
|
|
|
328
327
|
</tr>
|
|
329
328
|
<tr>
|
|
330
329
|
<td class="col-md-4">
|
|
331
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
330
|
+
<div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/lib/code-http-error/code-http-error.component.ts:29</a></div>
|
|
332
331
|
</td>
|
|
333
332
|
</tr>
|
|
334
333
|
|
|
@@ -341,8 +340,7 @@
|
|
|
341
340
|
|
|
342
341
|
|
|
343
342
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
344
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
345
|
-
import {
|
|
343
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
346
344
|
ChangeDetectionStrategy,
|
|
347
345
|
Component,
|
|
348
346
|
inject,
|
|
@@ -360,9 +358,8 @@ import { CodeHttpErrorDialogData } from './code-http-error-dialog-data'
|
|
|
360
358
|
styleUrls: ['./code-http-error.component.scss'],
|
|
361
359
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
362
360
|
imports: [
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
]
|
|
361
|
+
AnyHttpErrorComponent
|
|
362
|
+
]
|
|
366
363
|
})
|
|
367
364
|
export class CodeHttpErrorComponent implements IErrorDialogComponent<CodeHttpErrorDialogData> {
|
|
368
365
|
|
|
@@ -380,16 +377,19 @@ export class CodeHttpErrorComponent implements IErrorDialogComponent<CodeHttp
|
|
|
380
377
|
<pre class="line-numbers"><code class="language-html"><div class="flex flex-col gap-2">
|
|
381
378
|
<p class="text-xl">Http Error Code:&nbsp;<span class="font-bold text-red-800">{{ error.errorCode }}</span></p>
|
|
382
379
|
<p>{{ error.error.message ?? error.message }}</p>
|
|
383
|
-
|
|
380
|
+
@if (!isProduction) {
|
|
384
381
|
<hr>
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
</
|
|
382
|
+
@if (!showMore()) {
|
|
383
|
+
<button (click)="showMore.set(true)"
|
|
384
|
+
class="px-4 py-2 rounded bg-accent-500">
|
|
385
|
+
<ng-container i18n>Show more details</ng-container>
|
|
386
|
+
</button>
|
|
387
|
+
}
|
|
388
|
+
@if (showMore()) {
|
|
389
|
+
<rxap-any-http-error></rxap-any-http-error>
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
</div>
|
|
393
393
|
</code></pre>
|
|
394
394
|
</div>
|
|
395
395
|
|
|
@@ -425,7 +425,7 @@ export class CodeHttpErrorComponent implements IErrorDialogComponent<CodeHttp
|
|
|
425
425
|
<script src="../js/libs/htmlparser.js"></script>
|
|
426
426
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
427
427
|
<script>
|
|
428
|
-
var COMPONENT_TEMPLATE = '<div><div class="flex flex-col gap-2"> <p class="text-xl">Http Error Code: <span class="font-bold text-red-800">{{ error.errorCode }}</span></p> <p>{{ error.error.message ?? error.message }}</p>
|
|
428
|
+
var COMPONENT_TEMPLATE = '<div><div class="flex flex-col gap-2"> <p class="text-xl">Http Error Code: <span class="font-bold text-red-800">{{ error.errorCode }}</span></p> <p>{{ error.error.message ?? error.message }}</p> @if (!isProduction) { <hr> @if (!showMore()) { <button (click)="showMore.set(true)" class="px-4 py-2 rounded bg-accent-500"> <ng-container i18n>Show more details</ng-container> </button> } @if (showMore()) { <rxap-any-http-error></rxap-any-http-error> } } </div></div>'
|
|
429
429
|
var COMPONENTS = [{'name': 'AngularErrorComponent', 'selector': 'rxap-angular-error'},{'name': 'AnyHttpErrorComponent', 'selector': 'rxap-any-http-error'},{'name': 'CodeHttpErrorComponent', 'selector': 'rxap-http-error-message'},{'name': 'ErrorDialogComponent', 'selector': 'rxap-error-dialog'},{'name': 'MessageHttpErrorComponent', 'selector': 'rxap-http-error-message'},{'name': 'OpenApiHttpResponseErrorComponent', 'selector': 'rxap-open-api-http-response-error'}];
|
|
430
430
|
var DIRECTIVES = [];
|
|
431
431
|
var ACTUAL_COMPONENT = {'name': 'CodeHttpErrorComponent'};
|