@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
|
@@ -163,9 +163,7 @@
|
|
|
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>NgClass</code>
|
|
168
|
-
<code>NgForOf</code>
|
|
169
167
|
<code>PortalModule</code>
|
|
170
168
|
</td>
|
|
171
169
|
</tr>
|
|
@@ -291,7 +289,7 @@
|
|
|
291
289
|
</tr>
|
|
292
290
|
<tr>
|
|
293
291
|
<td class="col-md-2" colspan="2">
|
|
294
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
292
|
+
<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>
|
|
295
293
|
</td>
|
|
296
294
|
</tr>
|
|
297
295
|
</tbody>
|
|
@@ -324,8 +322,8 @@
|
|
|
324
322
|
|
|
325
323
|
<tr>
|
|
326
324
|
<td class="col-md-4">
|
|
327
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
328
|
-
class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:
|
|
325
|
+
<div class="io-line">Defined in <a href="" data-line="77"
|
|
326
|
+
class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:77</a></div>
|
|
329
327
|
</td>
|
|
330
328
|
</tr>
|
|
331
329
|
|
|
@@ -367,7 +365,7 @@
|
|
|
367
365
|
</tr>
|
|
368
366
|
<tr>
|
|
369
367
|
<td class="col-md-4">
|
|
370
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
368
|
+
<div class="io-line">Defined in <a href="" data-line="48" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:48</a></div>
|
|
371
369
|
</td>
|
|
372
370
|
</tr>
|
|
373
371
|
|
|
@@ -407,7 +405,7 @@
|
|
|
407
405
|
</tr>
|
|
408
406
|
<tr>
|
|
409
407
|
<td class="col-md-4">
|
|
410
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
408
|
+
<div class="io-line">Defined in <a href="" data-line="58" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:58</a></div>
|
|
411
409
|
</td>
|
|
412
410
|
</tr>
|
|
413
411
|
|
|
@@ -440,7 +438,7 @@
|
|
|
440
438
|
</tr>
|
|
441
439
|
<tr>
|
|
442
440
|
<td class="col-md-4">
|
|
443
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
441
|
+
<div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:46</a></div>
|
|
444
442
|
</td>
|
|
445
443
|
</tr>
|
|
446
444
|
|
|
@@ -477,7 +475,7 @@
|
|
|
477
475
|
</tr>
|
|
478
476
|
<tr>
|
|
479
477
|
<td class="col-md-4">
|
|
480
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
478
|
+
<div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:44</a></div>
|
|
481
479
|
</td>
|
|
482
480
|
</tr>
|
|
483
481
|
|
|
@@ -508,7 +506,7 @@
|
|
|
508
506
|
</tr>
|
|
509
507
|
<tr>
|
|
510
508
|
<td class="col-md-4">
|
|
511
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
509
|
+
<div class="io-line">Defined in <a href="" data-line="49" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:49</a></div>
|
|
512
510
|
</td>
|
|
513
511
|
</tr>
|
|
514
512
|
|
|
@@ -525,11 +523,7 @@
|
|
|
525
523
|
ComponentPortal,
|
|
526
524
|
PortalModule,
|
|
527
525
|
} from '@angular/cdk/portal';
|
|
528
|
-
import {
|
|
529
|
-
NgClass,
|
|
530
|
-
NgForOf,
|
|
531
|
-
NgIf,
|
|
532
|
-
} from '@angular/common';
|
|
526
|
+
import { NgClass } from '@angular/common';
|
|
533
527
|
import {
|
|
534
528
|
AfterViewInit,
|
|
535
529
|
ChangeDetectionStrategy,
|
|
@@ -561,11 +555,9 @@ export interface IErrorDialogComponent<Error = any> {
|
|
|
561
555
|
styleUrls: ['./error-dialog.component.scss'],
|
|
562
556
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
563
557
|
imports: [
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
PortalModule,
|
|
568
|
-
]
|
|
558
|
+
NgClass,
|
|
559
|
+
PortalModule
|
|
560
|
+
]
|
|
569
561
|
})
|
|
570
562
|
export class ErrorDialogComponent implements AfterViewInit {
|
|
571
563
|
|
|
@@ -614,29 +606,36 @@ export class ErrorDialogComponent implements AfterViewInit {
|
|
|
614
606
|
|
|
615
607
|
<div class="tab-pane fade " id="templateData">
|
|
616
608
|
<pre class="line-numbers"><code class="language-html"><dialog #dialog
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
<
|
|
621
|
-
(
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
609
|
+
class="rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6"
|
|
610
|
+
style="max-width: 80vw; max-height: 80vh">
|
|
611
|
+
@if (data().length > 1) {
|
|
612
|
+
<div class="controls flex justify-center space-x-2 mt-4">
|
|
613
|
+
@if (activeIndex() > 0) {
|
|
614
|
+
<button
|
|
615
|
+
(click)="activeIndex.set(activeIndex() - 1)"
|
|
616
|
+
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">
|
|
617
|
+
Previous
|
|
618
|
+
</button>
|
|
619
|
+
}
|
|
620
|
+
@for (item of displayedButtons(); track item) {
|
|
621
|
+
<button (click)="activeIndex.set(item)"
|
|
627
622
|
[ngClass]="{
|
|
628
623
|
'bg-primary-500': item === activeIndex(),
|
|
629
624
|
'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item !== activeIndex()
|
|
630
625
|
}"
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
(
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
626
|
+
class="px-4 py-2 rounded">
|
|
627
|
+
{{ item + 1 }}
|
|
628
|
+
</button>
|
|
629
|
+
}
|
|
630
|
+
@if (activeIndex() < data().length - 1) {
|
|
631
|
+
<button
|
|
632
|
+
(click)="activeIndex.set(activeIndex() + 1)"
|
|
633
|
+
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">
|
|
634
|
+
Next
|
|
635
|
+
</button>
|
|
636
|
+
}
|
|
637
|
+
</div>
|
|
638
|
+
}
|
|
640
639
|
<div class="flex flex-col overflow-auto">
|
|
641
640
|
<ng-template [cdkPortalOutlet]="componentPortal()"></ng-template>
|
|
642
641
|
</div>
|
|
@@ -680,7 +679,7 @@ export class ErrorDialogComponent implements AfterViewInit {
|
|
|
680
679
|
<script src="../js/libs/htmlparser.js"></script>
|
|
681
680
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
682
681
|
<script>
|
|
683
|
-
var COMPONENT_TEMPLATE = '<div><dialog #dialog
|
|
682
|
+
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"> @if (data().length > 1) { <div class="controls flex justify-center space-x-2 mt-4"> @if (activeIndex() > 0) { <button (click)="activeIndex.set(activeIndex() - 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"> Previous </button> } @for (item of displayedButtons(); track item) { <button (click)="activeIndex.set(item)" [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> } @if (activeIndex() < data().length - 1) { <button (click)="activeIndex.set(activeIndex() + 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>'
|
|
684
683
|
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'}];
|
|
685
684
|
var DIRECTIVES = [];
|
|
686
685
|
var ACTUAL_COMPONENT = {'name': 'ErrorDialogComponent'};
|
|
@@ -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/message-http-error/message-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/message-http-error/message-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/message-http-error/message-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 { MessageHttpErrorDialogData } from './message-http-error-dialog-dat
|
|
|
360
358
|
styleUrls: ['./message-http-error.component.scss'],
|
|
361
359
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
362
360
|
imports: [
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
]
|
|
361
|
+
AnyHttpErrorComponent
|
|
362
|
+
]
|
|
366
363
|
})
|
|
367
364
|
export class MessageHttpErrorComponent implements IErrorDialogComponent<MessageHttpErrorDialogData> {
|
|
368
365
|
|
|
@@ -380,16 +377,19 @@ export class MessageHttpErrorComponent implements IErrorDialogComponent<Messa
|
|
|
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 Message:</p>
|
|
382
379
|
<p>{{ error.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 MessageHttpErrorComponent implements IErrorDialogComponent<Messa
|
|
|
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 Message:</p> <p>{{ error.error.message }}</p>
|
|
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> @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': 'MessageHttpErrorComponent'};
|
|
@@ -362,42 +362,58 @@ export class OpenApiHttpResponseErrorComponent implements IErrorDialogComponent&
|
|
|
362
362
|
<ng-container rxapDataGridRowDef="headers">
|
|
363
363
|
<td *rxapDataGridCellDef="let value">
|
|
364
364
|
<rxap-data-grid [data]="value">
|
|
365
|
-
|
|
366
|
-
<
|
|
367
|
-
<
|
|
368
|
-
&
|
|
369
|
-
<
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
365
|
+
@for (entry of value | keyvalue; track entry) {
|
|
366
|
+
<ng-container [rxapDataGridRowDef]="$any(entry.key)">
|
|
367
|
+
<td *rxapDataGridCellDef="let value">
|
|
368
|
+
@if (value.length > 1) {
|
|
369
|
+
<ul>
|
|
370
|
+
@for (item of value; track item) {
|
|
371
|
+
<li>{{ item }}</li>
|
|
372
|
+
}
|
|
373
|
+
</ul>
|
|
374
|
+
}
|
|
375
|
+
@if (value.length === 1) {
|
|
376
|
+
{{ value[0] }}
|
|
377
|
+
}
|
|
378
|
+
@if (value.length === 0) {
|
|
379
|
+
NONE
|
|
380
|
+
}
|
|
381
|
+
</td>
|
|
382
|
+
</ng-container>
|
|
383
|
+
}
|
|
376
384
|
</rxap-data-grid>
|
|
377
385
|
</td>
|
|
378
386
|
</ng-container>
|
|
379
|
-
|
|
380
|
-
<
|
|
381
|
-
<
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
<
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
387
|
+
@if (!isProduction) {
|
|
388
|
+
<ng-container rxapDataGridRowDef="error">
|
|
389
|
+
<td *rxapDataGridCellDef="let value">
|
|
390
|
+
@if (value) {
|
|
391
|
+
<rxap-copy-to-clipboard [value]="value | json">Copy Response Body</rxap-copy-to-clipboard>
|
|
392
|
+
<div class="body">
|
|
393
|
+
<rxap-json-viewer [expanded]="false" [json]="value"></rxap-json-viewer>
|
|
394
|
+
</div>
|
|
395
|
+
}
|
|
396
|
+
@if (!value) {
|
|
397
|
+
NONE
|
|
398
|
+
}
|
|
399
|
+
</td>
|
|
400
|
+
</ng-container>
|
|
401
|
+
}
|
|
402
|
+
@if (!isProduction) {
|
|
403
|
+
<ng-container rxapDataGridRowDef="body">
|
|
404
|
+
<td *rxapDataGridCellDef="let value">
|
|
405
|
+
@if (value) {
|
|
406
|
+
<rxap-copy-to-clipboard [value]="value | json">Copy Request Body</rxap-copy-to-clipboard>
|
|
407
|
+
<div class="body">
|
|
408
|
+
<rxap-json-viewer [expanded]="false" [json]="value"></rxap-json-viewer>
|
|
409
|
+
</div>
|
|
410
|
+
}
|
|
411
|
+
@if (!value) {
|
|
412
|
+
NONE
|
|
413
|
+
}
|
|
414
|
+
</td>
|
|
415
|
+
</ng-container>
|
|
416
|
+
}
|
|
401
417
|
</rxap-data-grid>
|
|
402
418
|
</code></pre>
|
|
403
419
|
</div>
|
|
@@ -428,7 +444,7 @@ export class OpenApiHttpResponseErrorComponent implements IErrorDialogComponent&
|
|
|
428
444
|
<script src="../js/libs/htmlparser.js"></script>
|
|
429
445
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
430
446
|
<script>
|
|
431
|
-
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">
|
|
447
|
+
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>'
|
|
432
448
|
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'}];
|
|
433
449
|
var DIRECTIVES = [];
|
|
434
450
|
var ACTUAL_COMPONENT = {'name': 'OpenApiHttpResponseErrorComponent'};
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
</ol>
|
|
102
102
|
<ul class="dependencies-list">
|
|
103
103
|
<li>
|
|
104
|
-
<b>@nx/devkit</b> :
|
|
104
|
+
<b>@nx/devkit</b> : 22.7.5</li>
|
|
105
105
|
<li>
|
|
106
106
|
<b>tslib</b> : 2.6.2</li>
|
|
107
107
|
</ul>
|
|
@@ -113,25 +113,25 @@
|
|
|
113
113
|
</ol>
|
|
114
114
|
<ul class="dependencies-list">
|
|
115
115
|
<li>
|
|
116
|
-
<b>@angular/cdk</b> : ^
|
|
116
|
+
<b>@angular/cdk</b> : ^21.2.9</li>
|
|
117
117
|
<li>
|
|
118
|
-
<b>@angular/common</b> : ^
|
|
118
|
+
<b>@angular/common</b> : ^21.2.9</li>
|
|
119
119
|
<li>
|
|
120
|
-
<b>@angular/core</b> : ^
|
|
120
|
+
<b>@angular/core</b> : ^21.2.9</li>
|
|
121
121
|
<li>
|
|
122
|
-
<b>@rxap/components</b> : ^
|
|
122
|
+
<b>@rxap/components</b> : ^21.0.1-dev.0</li>
|
|
123
123
|
<li>
|
|
124
|
-
<b>@rxap/config</b> : ^
|
|
124
|
+
<b>@rxap/config</b> : ^21.0.1-dev.0</li>
|
|
125
125
|
<li>
|
|
126
|
-
<b>@rxap/data-grid</b> : ^
|
|
126
|
+
<b>@rxap/data-grid</b> : ^21.0.1-dev.0</li>
|
|
127
127
|
<li>
|
|
128
|
-
<b>@rxap/environment</b> : ^
|
|
128
|
+
<b>@rxap/environment</b> : ^21.0.1-dev.0</li>
|
|
129
129
|
<li>
|
|
130
|
-
<b>@rxap/open-api</b> : ^
|
|
130
|
+
<b>@rxap/open-api</b> : ^21.0.1-dev.0</li>
|
|
131
131
|
<li>
|
|
132
|
-
<b>@sentry/angular</b> : ^
|
|
132
|
+
<b>@sentry/angular</b> : ^10.10.0</li>
|
|
133
133
|
<li>
|
|
134
|
-
<b>rxjs</b> : ^7.8.
|
|
134
|
+
<b>rxjs</b> : ^7.8.2</li>
|
|
135
135
|
</ul>
|
|
136
136
|
|
|
137
137
|
|
|
@@ -202,8 +202,8 @@
|
|
|
202
202
|
|
|
203
203
|
<tr>
|
|
204
204
|
<td class="col-md-4">
|
|
205
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
206
|
-
class="link-to-prism">src/lib/error-capture-dialog.service.ts:
|
|
205
|
+
<div class="io-line">Defined in <a href="" data-line="40"
|
|
206
|
+
class="link-to-prism">src/lib/error-capture-dialog.service.ts:40</a></div>
|
|
207
207
|
</td>
|
|
208
208
|
</tr>
|
|
209
209
|
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
</tr>
|
|
288
288
|
<tr>
|
|
289
289
|
<td class="col-md-4">
|
|
290
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
290
|
+
<div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/error-capture-dialog.service.ts:36</a></div>
|
|
291
291
|
</td>
|
|
292
292
|
</tr>
|
|
293
293
|
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
</tr>
|
|
315
315
|
<tr>
|
|
316
316
|
<td class="col-md-4">
|
|
317
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
317
|
+
<div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/lib/error-capture-dialog.service.ts:38</a></div>
|
|
318
318
|
</td>
|
|
319
319
|
</tr>
|
|
320
320
|
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
</tr>
|
|
342
342
|
<tr>
|
|
343
343
|
<td class="col-md-4">
|
|
344
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
344
|
+
<div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">src/lib/error-capture-dialog.service.ts:37</a></div>
|
|
345
345
|
</td>
|
|
346
346
|
</tr>
|
|
347
347
|
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
|
|
356
356
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
357
357
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ComponentType } from '@angular/cdk/overlay';
|
|
358
|
-
|
|
358
|
+
|
|
359
359
|
import {
|
|
360
360
|
ApplicationRef,
|
|
361
361
|
createComponent,
|
|
@@ -363,6 +363,7 @@ import {
|
|
|
363
363
|
Injectable,
|
|
364
364
|
Injector,
|
|
365
365
|
WritableSignal,
|
|
366
|
+
DOCUMENT
|
|
366
367
|
} from '@angular/core';
|
|
367
368
|
import {
|
|
368
369
|
EMPTY,
|
|
@@ -178,8 +178,8 @@
|
|
|
178
178
|
|
|
179
179
|
<tr>
|
|
180
180
|
<td class="col-md-4">
|
|
181
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
182
|
-
class="link-to-prism">src/lib/error-capture-dialog.service.ts:
|
|
181
|
+
<div class="io-line">Defined in <a href="" data-line="30"
|
|
182
|
+
class="link-to-prism">src/lib/error-capture-dialog.service.ts:30</a></div>
|
|
183
183
|
</td>
|
|
184
184
|
</tr>
|
|
185
185
|
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
|
|
245
245
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
246
246
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ComponentType } from '@angular/cdk/overlay';
|
|
247
|
-
|
|
247
|
+
|
|
248
248
|
import {
|
|
249
249
|
ApplicationRef,
|
|
250
250
|
createComponent,
|
|
@@ -252,6 +252,7 @@ import {
|
|
|
252
252
|
Injectable,
|
|
253
253
|
Injector,
|
|
254
254
|
WritableSignal,
|
|
255
|
+
DOCUMENT
|
|
255
256
|
} from '@angular/core';
|
|
256
257
|
import {
|
|
257
258
|
EMPTY,
|
|
@@ -199,11 +199,7 @@
|
|
|
199
199
|
ComponentPortal,
|
|
200
200
|
PortalModule,
|
|
201
201
|
} from '@angular/cdk/portal';
|
|
202
|
-
import {
|
|
203
|
-
NgClass,
|
|
204
|
-
NgForOf,
|
|
205
|
-
NgIf,
|
|
206
|
-
} from '@angular/common';
|
|
202
|
+
import { NgClass } from '@angular/common';
|
|
207
203
|
import {
|
|
208
204
|
AfterViewInit,
|
|
209
205
|
ChangeDetectionStrategy,
|
|
@@ -235,11 +231,9 @@ export interface IErrorDialogComponent<Error = any> {
|
|
|
235
231
|
styleUrls: ['./error-dialog.component.scss'],
|
|
236
232
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
237
233
|
imports: [
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
PortalModule,
|
|
242
|
-
]
|
|
234
|
+
NgClass,
|
|
235
|
+
PortalModule
|
|
236
|
+
]
|
|
243
237
|
})
|
|
244
238
|
export class ErrorDialogComponent implements AfterViewInit {
|
|
245
239
|
|