@rxap/ngx-error 19.0.0-dev.1 → 19.0.0-dev.2
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 +4 -0
- package/README.md +1 -1
- package/compodoc/changelog.html +40 -0
- package/compodoc/components/AngularErrorComponent.html +9 -14
- package/compodoc/components/AnyHttpErrorComponent.html +17 -23
- package/compodoc/components/CodeHttpErrorComponent.html +12 -17
- package/compodoc/components/ErrorDialogComponent.html +21 -26
- package/compodoc/components/MessageHttpErrorComponent.html +12 -17
- package/compodoc/components/OpenApiHttpResponseErrorComponent.html +525 -0
- package/compodoc/dependencies.html +12 -10
- package/compodoc/fonts/ionicons.svg +698 -698
- package/compodoc/graph/dependencies.svg +1 -1
- package/compodoc/images/compodoc-vectorise-inverted.svg +16 -15
- package/compodoc/images/compodoc-vectorise.svg +16 -15
- package/compodoc/index.html +1 -1
- package/compodoc/injectables/AnyHttpErrorService.html +12 -4
- package/compodoc/injectables/OpenApiHttpResponseErrorService.html +572 -0
- package/compodoc/injectables/RxapErrorHandler.html +103 -8
- package/compodoc/interfaces/AnyHttpErrorDialogData.html +194 -6
- package/compodoc/interfaces/ErrorHandlerOptions.html +24 -2
- package/compodoc/interfaces/IErrorDialogComponent.html +10 -11
- package/compodoc/interfaces/OpenApiHttpResponseErrorDialogData.html +378 -0
- package/compodoc/interfaces/SimplifiedHttpErrorResponse.html +86 -1
- package/compodoc/js/menu-wc.js +9 -0
- package/compodoc/js/menu-wc_es5.js +2 -2
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/overview.html +3 -3
- package/compodoc/properties.html +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AngularErrorComponent.html +2 -2
- package/docs/classes/AngularErrorService.html +2 -2
- package/docs/classes/AnyHttpErrorComponent.html +2 -2
- package/docs/classes/AnyHttpErrorService.html +2 -2
- package/docs/classes/CodeHttpErrorComponent.html +2 -2
- package/docs/classes/CodeHttpErrorService.html +2 -2
- package/docs/classes/ErrorCaptureService.html +2 -2
- package/docs/classes/ErrorDialogComponent.html +2 -2
- package/docs/classes/MessageHttpErrorComponent.html +2 -2
- package/docs/classes/MessageHttpErrorService.html +2 -2
- package/docs/classes/OpenApiHttpResponseErrorComponent.html +4 -0
- package/docs/classes/OpenApiHttpResponseErrorService.html +6 -0
- package/docs/classes/RxapErrorHandler.html +4 -3
- package/docs/documentation.json +3558 -1825
- package/docs/functions/DefaultErrorCodeExtractor.html +1 -1
- package/docs/functions/DefaultErrorFilter.html +1 -1
- package/docs/functions/ExtractContextFromError.html +1 -1
- package/docs/functions/ExtractError.html +1 -1
- package/docs/functions/ExtractExtraFromError.html +1 -1
- package/docs/functions/ExtractTagsFromError.html +1 -1
- package/docs/functions/HttpErrorInterceptor.html +1 -1
- package/docs/functions/PrintError.html +1 -1
- package/docs/functions/ProvideErrorHandler.html +1 -1
- package/docs/functions/SimplifyHttpErrorResponse.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interfaces/AngularErrorDialogData.html +2 -2
- package/docs/interfaces/AnyHttpErrorDialogData.html +12 -2
- package/docs/interfaces/CodeHttpErrorDialogData.html +12 -2
- package/docs/interfaces/ErrorHandlerOptions.html +2 -2
- package/docs/interfaces/ErrorInterceptorOptions.html +2 -2
- package/docs/interfaces/IErrorDialogComponent.html +2 -2
- package/docs/interfaces/MessageHttpErrorDialogData.html +12 -2
- package/docs/interfaces/OpenApiHttpResponseErrorDialogData.html +24 -0
- package/docs/interfaces/SimplifiedHttpErrorResponse.html +4 -2
- package/docs/modules.html +3 -0
- package/docs/variables/RXAP_ERROR_DIALOG_COMPONENT.html +1 -1
- package/docs/variables/RXAP_ERROR_DIALOG_DATA.html +1 -1
- package/docs/variables/RXAP_ERROR_DIALOG_ERROR.html +1 -1
- package/docs/variables/RXAP_ERROR_HANDLER_OPTIONS.html +1 -1
- package/docs/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.html +1 -1
- package/package.json +33 -34
- package/theme.css +376 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [19.0.0-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@19.0.0-dev.1...@rxap/ngx-error@19.0.0-dev.2) (2025-01-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/ngx-error
|
|
9
|
+
|
|
6
10
|
# [19.0.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.1.3-dev.0...@rxap/ngx-error@19.0.0-dev.1) (2024-12-11)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @rxap/ngx-error
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ yarn add @rxap/ngx-error
|
|
|
18
18
|
```
|
|
19
19
|
**Install peer dependencies:**
|
|
20
20
|
```bash
|
|
21
|
-
yarn add @angular/cdk
|
|
21
|
+
yarn add @angular/cdk@19.0.2 @angular/common@19.0.3 @angular/core@19.0.3 @rxap/components@^19.0.0-dev.2 @rxap/config@^19.0.0-dev.2 @rxap/data-grid@^19.0.0-dev.2 @rxap/environment@^19.0.0-dev.2 @rxap/open-api@^19.0.0-dev.2 @sentry/angular@8.18.0 rxjs@7.8.1
|
|
22
22
|
```
|
|
23
23
|
**Execute the init generator:**
|
|
24
24
|
```bash
|
package/compodoc/changelog.html
CHANGED
|
@@ -85,6 +85,46 @@
|
|
|
85
85
|
<h1>Change Log</h1>
|
|
86
86
|
<p>All notable changes to this project will be documented in this file.
|
|
87
87
|
See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
|
|
88
|
+
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@19.0.0-dev.1...@rxap/ngx-error@19.0.0-dev.2">19.0.0-dev.2</a> (2025-01-03)</h1>
|
|
89
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
90
|
+
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.1.3-dev.0...@rxap/ngx-error@19.0.0-dev.1">19.0.0-dev.1</a> (2024-12-11)</h1>
|
|
91
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
92
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.1.2...@rxap/ngx-error@18.1.3-dev.0">18.1.3-dev.0</a> (2024-12-10)</h2>
|
|
93
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
94
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.1.2-dev.0...@rxap/ngx-error@18.1.2">18.1.2</a> (2024-12-10)</h2>
|
|
95
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
96
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.1.1...@rxap/ngx-error@18.1.2-dev.0">18.1.2-dev.0</a> (2024-12-03)</h2>
|
|
97
|
+
<h3>Bug Fixes</h3>
|
|
98
|
+
<ul>
|
|
99
|
+
<li>ensure the proper theme color is used (<a href="https://gitlab.com/rxap/packages/commit/f6f0a9f5ff667cf5eff57d9fded13b89ccd8ffc7">f6f0a9f</a>)</li>
|
|
100
|
+
</ul>
|
|
101
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.1.1-dev.0...@rxap/ngx-error@18.1.1">18.1.1</a> (2024-10-28)</h2>
|
|
102
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
103
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.1.0...@rxap/ngx-error@18.1.1-dev.0">18.1.1-dev.0</a> (2024-10-04)</h2>
|
|
104
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
105
|
+
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.1.0-dev.0...@rxap/ngx-error@18.1.0">18.1.0</a> (2024-09-18)</h1>
|
|
106
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
107
|
+
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.6...@rxap/ngx-error@18.1.0-dev.0">18.1.0-dev.0</a> (2024-08-27)</h1>
|
|
108
|
+
<h3>Features</h3>
|
|
109
|
+
<ul>
|
|
110
|
+
<li>add open api http response error handler (<a href="https://gitlab.com/rxap/packages/commit/542efd24c4965d0fdbe3b3d12dcf8e6ac6aa7ebb">542efd2</a>)</li>
|
|
111
|
+
</ul>
|
|
112
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.6-dev.0...@rxap/ngx-error@18.0.6">18.0.6</a> (2024-08-22)</h2>
|
|
113
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
114
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.5...@rxap/ngx-error@18.0.6-dev.0">18.0.6-dev.0</a> (2024-08-22)</h2>
|
|
115
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
116
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.5-dev.2...@rxap/ngx-error@18.0.5">18.0.5</a> (2024-07-30)</h2>
|
|
117
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
118
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.5-dev.1...@rxap/ngx-error@18.0.5-dev.2">18.0.5-dev.2</a> (2024-07-25)</h2>
|
|
119
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
120
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.5-dev.0...@rxap/ngx-error@18.0.5-dev.1">18.0.5-dev.1</a> (2024-07-22)</h2>
|
|
121
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
122
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.4...@rxap/ngx-error@18.0.5-dev.0">18.0.5-dev.0</a> (2024-07-09)</h2>
|
|
123
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
124
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.4-dev.0...@rxap/ngx-error@18.0.4">18.0.4</a> (2024-06-30)</h2>
|
|
125
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
126
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.3...@rxap/ngx-error@18.0.4-dev.0">18.0.4-dev.0</a> (2024-06-30)</h2>
|
|
127
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
88
128
|
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.3-dev.1...@rxap/ngx-error@18.0.3">18.0.3</a> (2024-06-28)</h2>
|
|
89
129
|
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
90
130
|
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@18.0.3-dev.0...@rxap/ngx-error@18.0.3-dev.1">18.0.3-dev.1</a> (2024-06-21)</h2>
|
|
@@ -155,10 +155,6 @@
|
|
|
155
155
|
<td class="col-md-9"><code>rxap-angular-error</code></td>
|
|
156
156
|
</tr>
|
|
157
157
|
|
|
158
|
-
<tr>
|
|
159
|
-
<td class="col-md-3">standalone</td>
|
|
160
|
-
<td class="col-md-9"><code>true</code></td>
|
|
161
|
-
</tr>
|
|
162
158
|
|
|
163
159
|
<tr>
|
|
164
160
|
<td class="col-md-3">imports</td>
|
|
@@ -280,7 +276,7 @@
|
|
|
280
276
|
</tr>
|
|
281
277
|
<tr>
|
|
282
278
|
<td class="col-md-4">
|
|
283
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
279
|
+
<div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/lib/error/angular-error.component.ts:23</a></div>
|
|
284
280
|
</td>
|
|
285
281
|
</tr>
|
|
286
282
|
|
|
@@ -309,7 +305,7 @@
|
|
|
309
305
|
</tr>
|
|
310
306
|
<tr>
|
|
311
307
|
<td class="col-md-4">
|
|
312
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
308
|
+
<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>
|
|
313
309
|
</td>
|
|
314
310
|
</tr>
|
|
315
311
|
|
|
@@ -331,7 +327,7 @@
|
|
|
331
327
|
</tr>
|
|
332
328
|
<tr>
|
|
333
329
|
<td class="col-md-4">
|
|
334
|
-
<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/error/angular-error.component.ts:29</a></div>
|
|
335
331
|
</td>
|
|
336
332
|
</tr>
|
|
337
333
|
|
|
@@ -353,7 +349,7 @@
|
|
|
353
349
|
</tr>
|
|
354
350
|
<tr>
|
|
355
351
|
<td class="col-md-4">
|
|
356
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
352
|
+
<div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/lib/error/angular-error.component.ts:33</a></div>
|
|
357
353
|
</td>
|
|
358
354
|
</tr>
|
|
359
355
|
|
|
@@ -379,11 +375,10 @@ import { RXAP_ERROR_DIALOG_ERROR } from '../tokens';
|
|
|
379
375
|
import { AngularErrorDialogData } from './angular-error-dialog-data';
|
|
380
376
|
|
|
381
377
|
@Component({
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
styleUrls: [ './angular-error.component.scss' ],
|
|
378
|
+
selector: 'rxap-angular-error',
|
|
379
|
+
imports: [DataGridModule, KeyValuePipe, NgForOf, NgIf],
|
|
380
|
+
templateUrl: './angular-error.component.html',
|
|
381
|
+
styleUrls: ['./angular-error.component.scss']
|
|
387
382
|
})
|
|
388
383
|
export class AngularErrorComponent implements IErrorDialogComponent<AngularErrorDialogData> {
|
|
389
384
|
|
|
@@ -471,7 +466,7 @@ export class AngularErrorComponent implements IErrorDialogComponent<AngularEr
|
|
|
471
466
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
472
467
|
<script>
|
|
473
468
|
var COMPONENT_TEMPLATE = '<div><rxap-data-grid [data]="error"> <ng-container *ngIf="error.name" rxapDataGridRowDef="name"></ng-container> <ng-container rxapDataGridRowDef="message"></ng-container> <ng-container *ngIf="hasExtra || hasTags || hasContexts || error.stack" rxapDataGridRowDef> <th *rxapDataGridHeaderCellDef> <span i18n>Details</span> </th> </ng-container> <ng-container *ngIf="error.stack" rxapDataGridRowDef="stack"> <td *rxapDataGridCellDef="let value"> <pre>{{ value }}</pre> </td> </ng-container> <ng-container *ngIf="hasTags" rxapDataGridRowDef="tags"> <td *rxapDataGridCellDef="let value"> <rxap-data-grid [data]="value" auto></rxap-data-grid> </td> </ng-container> <ng-container *ngIf="hasExtra" rxapDataGridRowDef="extra"> <td *rxapDataGridCellDef="let value"> <rxap-data-grid [data]="value" auto></rxap-data-grid> </td> </ng-container> <ng-container *ngIf="hasContexts" rxapDataGridRowDef="contexts"> <td *rxapDataGridCellDef="let value"> <rxap-data-grid [data]="value" auto></rxap-data-grid> </td> </ng-container></rxap-data-grid></div>'
|
|
474
|
-
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'}];
|
|
469
|
+
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'}];
|
|
475
470
|
var DIRECTIVES = [];
|
|
476
471
|
var ACTUAL_COMPONENT = {'name': 'AngularErrorComponent'};
|
|
477
472
|
</script>
|
|
@@ -159,10 +159,6 @@
|
|
|
159
159
|
<td class="col-md-9"><code>rxap-any-http-error</code></td>
|
|
160
160
|
</tr>
|
|
161
161
|
|
|
162
|
-
<tr>
|
|
163
|
-
<td class="col-md-3">standalone</td>
|
|
164
|
-
<td class="col-md-9"><code>true</code></td>
|
|
165
|
-
</tr>
|
|
166
162
|
|
|
167
163
|
<tr>
|
|
168
164
|
<td class="col-md-3">imports</td>
|
|
@@ -273,7 +269,7 @@
|
|
|
273
269
|
</tr>
|
|
274
270
|
<tr>
|
|
275
271
|
<td class="col-md-4">
|
|
276
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
272
|
+
<div class="io-line">Defined in <a href="" data-line="43" class="link-to-prism">src/lib/any-http-error/any-http-error.component.ts:43</a></div>
|
|
277
273
|
</td>
|
|
278
274
|
</tr>
|
|
279
275
|
|
|
@@ -306,7 +302,7 @@
|
|
|
306
302
|
</tr>
|
|
307
303
|
<tr>
|
|
308
304
|
<td class="col-md-4">
|
|
309
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
305
|
+
<div class="io-line">Defined in <a href="" data-line="41" class="link-to-prism">src/lib/any-http-error/any-http-error.component.ts:41</a></div>
|
|
310
306
|
</td>
|
|
311
307
|
</tr>
|
|
312
308
|
|
|
@@ -330,7 +326,6 @@ import {
|
|
|
330
326
|
ChangeDetectionStrategy,
|
|
331
327
|
Component,
|
|
332
328
|
inject,
|
|
333
|
-
Signal,
|
|
334
329
|
} from '@angular/core';
|
|
335
330
|
import {
|
|
336
331
|
CopyToClipboardComponent,
|
|
@@ -343,21 +338,20 @@ import { RXAP_ERROR_DIALOG_ERROR } from '../tokens';
|
|
|
343
338
|
import { AnyHttpErrorDialogData } from './any-http-error-dialog-data';
|
|
344
339
|
|
|
345
340
|
@Component({
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
],
|
|
341
|
+
selector: 'rxap-any-http-error',
|
|
342
|
+
templateUrl: './any-http-error.component.html',
|
|
343
|
+
styleUrls: ['./any-http-error.component.scss'],
|
|
344
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
345
|
+
imports: [
|
|
346
|
+
DataGridModule,
|
|
347
|
+
NgIf,
|
|
348
|
+
DatePipe,
|
|
349
|
+
KeyValuePipe,
|
|
350
|
+
NgForOf,
|
|
351
|
+
CopyToClipboardComponent,
|
|
352
|
+
JsonPipe,
|
|
353
|
+
JsonViewerComponent,
|
|
354
|
+
]
|
|
361
355
|
})
|
|
362
356
|
export class AnyHttpErrorComponent implements IErrorDialogComponent<AnyHttpErrorDialogData> {
|
|
363
357
|
|
|
@@ -456,7 +450,7 @@ export class AnyHttpErrorComponent implements IErrorDialogComponent<AnyHttpEr
|
|
|
456
450
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
457
451
|
<script>
|
|
458
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"> <ng-container *ngFor="let entry of value | keyvalue" [rxapDataGridRowDef]="$any(entry.key)"> <td *rxapDataGridCellDef="let value"> <ng-container *ngIf="value.length > 1"> <ul> <li *ngFor="let item of value">{{ item }}</li> </ul> </ng-container> <ng-container *ngIf="value.length === 1">{{ value[0] }}</ng-container> <ng-container *ngIf="value.length === 0">NONE</ng-container> </td> </ng-container> </rxap-data-grid> </td> </ng-container> <ng-container *ngIf="!isProduction" rxapDataGridRowDef="error"> <td *rxapDataGridCellDef="let value"> <ng-container *ngIf="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> </ng-container> <ng-container *ngIf="!value">NONE</ng-container> </td> </ng-container> <ng-container *ngIf="!isProduction" rxapDataGridRowDef="body"> <td *rxapDataGridCellDef="let value"> <ng-container *ngIf="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> </ng-container> <ng-container *ngIf="!value">NONE</ng-container> </td> </ng-container></rxap-data-grid></div>'
|
|
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'}];
|
|
453
|
+
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'}];
|
|
460
454
|
var DIRECTIVES = [];
|
|
461
455
|
var ACTUAL_COMPONENT = {'name': 'AnyHttpErrorComponent'};
|
|
462
456
|
</script>
|
|
@@ -159,10 +159,6 @@
|
|
|
159
159
|
<td class="col-md-9"><code>rxap-http-error-message</code></td>
|
|
160
160
|
</tr>
|
|
161
161
|
|
|
162
|
-
<tr>
|
|
163
|
-
<td class="col-md-3">standalone</td>
|
|
164
|
-
<td class="col-md-9"><code>true</code></td>
|
|
165
|
-
</tr>
|
|
166
162
|
|
|
167
163
|
<tr>
|
|
168
164
|
<td class="col-md-3">imports</td>
|
|
@@ -272,7 +268,7 @@
|
|
|
272
268
|
</tr>
|
|
273
269
|
<tr>
|
|
274
270
|
<td class="col-md-4">
|
|
275
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
271
|
+
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/code-http-error/code-http-error.component.ts:28</a></div>
|
|
276
272
|
</td>
|
|
277
273
|
</tr>
|
|
278
274
|
|
|
@@ -305,7 +301,7 @@
|
|
|
305
301
|
</tr>
|
|
306
302
|
<tr>
|
|
307
303
|
<td class="col-md-4">
|
|
308
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
304
|
+
<div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/code-http-error/code-http-error.component.ts:26</a></div>
|
|
309
305
|
</td>
|
|
310
306
|
</tr>
|
|
311
307
|
|
|
@@ -332,7 +328,7 @@
|
|
|
332
328
|
</tr>
|
|
333
329
|
<tr>
|
|
334
330
|
<td class="col-md-4">
|
|
335
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
331
|
+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/code-http-error/code-http-error.component.ts:30</a></div>
|
|
336
332
|
</td>
|
|
337
333
|
</tr>
|
|
338
334
|
|
|
@@ -359,15 +355,14 @@ import { RXAP_ERROR_DIALOG_ERROR } from '../tokens';
|
|
|
359
355
|
import { CodeHttpErrorDialogData } from './code-http-error-dialog-data';
|
|
360
356
|
|
|
361
357
|
@Component({
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
],
|
|
358
|
+
selector: 'rxap-http-error-message',
|
|
359
|
+
templateUrl: './code-http-error.component.html',
|
|
360
|
+
styleUrls: ['./code-http-error.component.scss'],
|
|
361
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
362
|
+
imports: [
|
|
363
|
+
NgIf,
|
|
364
|
+
AnyHttpErrorComponent,
|
|
365
|
+
]
|
|
371
366
|
})
|
|
372
367
|
export class CodeHttpErrorComponent implements IErrorDialogComponent<CodeHttpErrorDialogData> {
|
|
373
368
|
|
|
@@ -431,7 +426,7 @@ export class CodeHttpErrorComponent implements IErrorDialogComponent<CodeHttp
|
|
|
431
426
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
432
427
|
<script>
|
|
433
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> <ng-container *ngIf="!isProduction"> <hr> <button (click)="showMore.set(true)" *ngIf="!showMore()" class="px-4 py-2 rounded bg-accent-500"> <ng-container i18n>Show more details</ng-container> </button> <rxap-any-http-error *ngIf="showMore()"></rxap-any-http-error> </ng-container></div></div>'
|
|
434
|
-
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'}];
|
|
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'}];
|
|
435
430
|
var DIRECTIVES = [];
|
|
436
431
|
var ACTUAL_COMPONENT = {'name': 'CodeHttpErrorComponent'};
|
|
437
432
|
</script>
|
|
@@ -159,10 +159,6 @@
|
|
|
159
159
|
<td class="col-md-9"><code>rxap-error-dialog</code></td>
|
|
160
160
|
</tr>
|
|
161
161
|
|
|
162
|
-
<tr>
|
|
163
|
-
<td class="col-md-3">standalone</td>
|
|
164
|
-
<td class="col-md-9"><code>true</code></td>
|
|
165
|
-
</tr>
|
|
166
162
|
|
|
167
163
|
<tr>
|
|
168
164
|
<td class="col-md-3">imports</td>
|
|
@@ -295,7 +291,7 @@
|
|
|
295
291
|
</tr>
|
|
296
292
|
<tr>
|
|
297
293
|
<td class="col-md-2" colspan="2">
|
|
298
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
294
|
+
<div class="io-line">Defined in <a href="" data-line="61" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:61</a></div>
|
|
299
295
|
</td>
|
|
300
296
|
</tr>
|
|
301
297
|
</tbody>
|
|
@@ -328,8 +324,8 @@
|
|
|
328
324
|
|
|
329
325
|
<tr>
|
|
330
326
|
<td class="col-md-4">
|
|
331
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
332
|
-
class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:
|
|
327
|
+
<div class="io-line">Defined in <a href="" data-line="83"
|
|
328
|
+
class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:83</a></div>
|
|
333
329
|
</td>
|
|
334
330
|
</tr>
|
|
335
331
|
|
|
@@ -371,7 +367,7 @@
|
|
|
371
367
|
</tr>
|
|
372
368
|
<tr>
|
|
373
369
|
<td class="col-md-4">
|
|
374
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
370
|
+
<div class="io-line">Defined in <a href="" data-line="54" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:54</a></div>
|
|
375
371
|
</td>
|
|
376
372
|
</tr>
|
|
377
373
|
|
|
@@ -411,7 +407,7 @@
|
|
|
411
407
|
</tr>
|
|
412
408
|
<tr>
|
|
413
409
|
<td class="col-md-4">
|
|
414
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
410
|
+
<div class="io-line">Defined in <a href="" data-line="64" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:64</a></div>
|
|
415
411
|
</td>
|
|
416
412
|
</tr>
|
|
417
413
|
|
|
@@ -444,7 +440,7 @@
|
|
|
444
440
|
</tr>
|
|
445
441
|
<tr>
|
|
446
442
|
<td class="col-md-4">
|
|
447
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
443
|
+
<div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:52</a></div>
|
|
448
444
|
</td>
|
|
449
445
|
</tr>
|
|
450
446
|
|
|
@@ -481,7 +477,7 @@
|
|
|
481
477
|
</tr>
|
|
482
478
|
<tr>
|
|
483
479
|
<td class="col-md-4">
|
|
484
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
480
|
+
<div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:50</a></div>
|
|
485
481
|
</td>
|
|
486
482
|
</tr>
|
|
487
483
|
|
|
@@ -512,7 +508,7 @@
|
|
|
512
508
|
</tr>
|
|
513
509
|
<tr>
|
|
514
510
|
<td class="col-md-4">
|
|
515
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
511
|
+
<div class="io-line">Defined in <a href="" data-line="55" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:55</a></div>
|
|
516
512
|
</td>
|
|
517
513
|
</tr>
|
|
518
514
|
|
|
@@ -560,17 +556,16 @@ export interface IErrorDialogComponent<Error = any> {
|
|
|
560
556
|
}
|
|
561
557
|
|
|
562
558
|
@Component({
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
],
|
|
559
|
+
selector: 'rxap-error-dialog',
|
|
560
|
+
templateUrl: './error-dialog.component.html',
|
|
561
|
+
styleUrls: ['./error-dialog.component.scss'],
|
|
562
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
563
|
+
imports: [
|
|
564
|
+
NgIf,
|
|
565
|
+
NgClass,
|
|
566
|
+
NgForOf,
|
|
567
|
+
PortalModule,
|
|
568
|
+
]
|
|
574
569
|
})
|
|
575
570
|
export class ErrorDialogComponent implements AfterViewInit {
|
|
576
571
|
|
|
@@ -619,7 +614,7 @@ export class ErrorDialogComponent implements AfterViewInit {
|
|
|
619
614
|
|
|
620
615
|
<div class="tab-pane fade " id="templateData">
|
|
621
616
|
<pre class="line-numbers"><code class="language-html"><dialog #dialog
|
|
622
|
-
class="rounded overflow-auto drop-shadow-2xl dark:bg-black dark:text-white flex flex-col gap-3 p-6"
|
|
617
|
+
class="rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6"
|
|
623
618
|
style="max-width: 80vw; max-height: 80vh">
|
|
624
619
|
<div *ngIf="data().length > 1" class="controls flex justify-center space-x-2 mt-4">
|
|
625
620
|
<button
|
|
@@ -683,8 +678,8 @@ export class ErrorDialogComponent implements AfterViewInit {
|
|
|
683
678
|
<script src="../js/libs/htmlparser.js"></script>
|
|
684
679
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
685
680
|
<script>
|
|
686
|
-
var COMPONENT_TEMPLATE = '<div><dialog #dialog class="rounded overflow-auto drop-shadow-2xl dark:bg-black dark:text-white flex flex-col gap-3 p-6" style="max-width: 80vw; max-height: 80vh"> <div *ngIf="data().length > 1" class="controls flex justify-center space-x-2 mt-4"> <button (click)="activeIndex.set(activeIndex() - 1)" *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">Previous </button> <button (click)="activeIndex.set(item)" *ngFor="let item of displayedButtons()" [ngClass]="{ \'bg-primary-500\': item === activeIndex(), \'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150\': item !== activeIndex() }" class="px-4 py-2 rounded"> {{ item + 1 }} </button> <button (click)="activeIndex.set(activeIndex() + 1)" *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">Next </button> </div> <div class="flex flex-col overflow-auto"> <ng-template [cdkPortalOutlet]="componentPortal()"></ng-template> </div> <button (click)="close()" class="px-4 py-2 rounded bg-primary-500" i18n>close</button></dialog></div>'
|
|
687
|
-
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'}];
|
|
681
|
+
var COMPONENT_TEMPLATE = '<div><dialog #dialog class="rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6" style="max-width: 80vw; max-height: 80vh"> <div *ngIf="data().length > 1" class="controls flex justify-center space-x-2 mt-4"> <button (click)="activeIndex.set(activeIndex() - 1)" *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">Previous </button> <button (click)="activeIndex.set(item)" *ngFor="let item of displayedButtons()" [ngClass]="{ \'bg-primary-500\': item === activeIndex(), \'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150\': item !== activeIndex() }" class="px-4 py-2 rounded"> {{ item + 1 }} </button> <button (click)="activeIndex.set(activeIndex() + 1)" *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">Next </button> </div> <div class="flex flex-col overflow-auto"> <ng-template [cdkPortalOutlet]="componentPortal()"></ng-template> </div> <button (click)="close()" class="px-4 py-2 rounded bg-primary-500" i18n>close</button></dialog></div>'
|
|
682
|
+
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'}];
|
|
688
683
|
var DIRECTIVES = [];
|
|
689
684
|
var ACTUAL_COMPONENT = {'name': 'ErrorDialogComponent'};
|
|
690
685
|
</script>
|
|
@@ -159,10 +159,6 @@
|
|
|
159
159
|
<td class="col-md-9"><code>rxap-http-error-message</code></td>
|
|
160
160
|
</tr>
|
|
161
161
|
|
|
162
|
-
<tr>
|
|
163
|
-
<td class="col-md-3">standalone</td>
|
|
164
|
-
<td class="col-md-9"><code>true</code></td>
|
|
165
|
-
</tr>
|
|
166
162
|
|
|
167
163
|
<tr>
|
|
168
164
|
<td class="col-md-3">imports</td>
|
|
@@ -272,7 +268,7 @@
|
|
|
272
268
|
</tr>
|
|
273
269
|
<tr>
|
|
274
270
|
<td class="col-md-4">
|
|
275
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
271
|
+
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/message-http-error/message-http-error.component.ts:28</a></div>
|
|
276
272
|
</td>
|
|
277
273
|
</tr>
|
|
278
274
|
|
|
@@ -305,7 +301,7 @@
|
|
|
305
301
|
</tr>
|
|
306
302
|
<tr>
|
|
307
303
|
<td class="col-md-4">
|
|
308
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
304
|
+
<div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/message-http-error/message-http-error.component.ts:26</a></div>
|
|
309
305
|
</td>
|
|
310
306
|
</tr>
|
|
311
307
|
|
|
@@ -332,7 +328,7 @@
|
|
|
332
328
|
</tr>
|
|
333
329
|
<tr>
|
|
334
330
|
<td class="col-md-4">
|
|
335
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
331
|
+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/message-http-error/message-http-error.component.ts:30</a></div>
|
|
336
332
|
</td>
|
|
337
333
|
</tr>
|
|
338
334
|
|
|
@@ -359,15 +355,14 @@ import { RXAP_ERROR_DIALOG_ERROR } from '../tokens';
|
|
|
359
355
|
import { MessageHttpErrorDialogData } from './message-http-error-dialog-data';
|
|
360
356
|
|
|
361
357
|
@Component({
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
],
|
|
358
|
+
selector: 'rxap-http-error-message',
|
|
359
|
+
templateUrl: './message-http-error.component.html',
|
|
360
|
+
styleUrls: ['./message-http-error.component.scss'],
|
|
361
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
362
|
+
imports: [
|
|
363
|
+
NgIf,
|
|
364
|
+
AnyHttpErrorComponent,
|
|
365
|
+
]
|
|
371
366
|
})
|
|
372
367
|
export class MessageHttpErrorComponent implements IErrorDialogComponent<MessageHttpErrorDialogData> {
|
|
373
368
|
|
|
@@ -431,7 +426,7 @@ export class MessageHttpErrorComponent implements IErrorDialogComponent<Messa
|
|
|
431
426
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
432
427
|
<script>
|
|
433
428
|
var COMPONENT_TEMPLATE = '<div><div class="flex flex-col gap-2"> <p class="text-xl">Http Error Message:</p> <p>{{ error.error.message }}</p> <ng-container *ngIf="!isProduction"> <hr> <button (click)="showMore.set(true)" *ngIf="!showMore()" class="px-4 py-2 rounded bg-accent-500"> <ng-container i18n>Show more details</ng-container> </button> <rxap-any-http-error *ngIf="showMore()"></rxap-any-http-error> </ng-container></div></div>'
|
|
434
|
-
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'}];
|
|
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'}];
|
|
435
430
|
var DIRECTIVES = [];
|
|
436
431
|
var ACTUAL_COMPONENT = {'name': 'MessageHttpErrorComponent'};
|
|
437
432
|
</script>
|