@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i1 from '@angular/common';
|
|
2
|
-
import { CommonModule,
|
|
2
|
+
import { CommonModule, NgClass, DatePipe, KeyValuePipe, JsonPipe } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, inject,
|
|
4
|
+
import { InjectionToken, inject, ChangeDetectionStrategy, Component, signal, computed, EventEmitter, INJECTOR, Injector, Output, ViewChild, ApplicationRef, DOCUMENT, createComponent, Injectable, isDevMode, runInInjectionContext, ErrorHandler } from '@angular/core';
|
|
5
5
|
import { CopyToClipboardComponent, JsonViewerComponent } from '@rxap/components';
|
|
6
6
|
import * as i1$2 from '@rxap/data-grid';
|
|
7
7
|
import { DataGridCellDefDirective, DataGridComponent, DataGridRowDefDirective, DataGridModule } from '@rxap/data-grid';
|
|
@@ -30,26 +30,26 @@ class OpenApiHttpResponseErrorComponent {
|
|
|
30
30
|
this.isProduction = inject(RXAP_ENVIRONMENT, { optional: true })?.production ?? false;
|
|
31
31
|
this.error = inject(RXAP_ERROR_DIALOG_ERROR);
|
|
32
32
|
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenApiHttpResponseErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: OpenApiHttpResponseErrorComponent, isStandalone: true, selector: "rxap-open-api-http-response-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n @for (entry of value | keyvalue; track entry) {\n <ng-container [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value.length > 1) {\n <ul>\n @for (item of value; track item) {\n <li>{{ item }}</li>\n }\n </ul>\n }\n @if (value.length === 1) {\n {{ value[0] }}\n }\n @if (value.length === 0) {\n NONE\n }\n </td>\n </ng-container>\n }\n </rxap-data-grid>\n </td>\n </ng-container>\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value", "containerClass", "position"] }, { kind: "directive", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "component", type: DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: i1.KeyValuePipe, name: "keyvalue" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
35
35
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenApiHttpResponseErrorComponent, decorators: [{
|
|
37
37
|
type: Component,
|
|
38
38
|
args: [{ selector: 'rxap-open-api-http-response-error', imports: [
|
|
39
39
|
CommonModule, CopyToClipboardComponent, DataGridCellDefDirective, DataGridComponent,
|
|
40
40
|
DataGridRowDefDirective, JsonViewerComponent,
|
|
41
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n
|
|
41
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n @for (entry of value | keyvalue; track entry) {\n <ng-container [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value.length > 1) {\n <ul>\n @for (item of value; track item) {\n <li>{{ item }}</li>\n }\n </ul>\n }\n @if (value.length === 1) {\n {{ value[0] }}\n }\n @if (value.length === 0) {\n NONE\n }\n </td>\n </ng-container>\n }\n </rxap-data-grid>\n </td>\n </ng-container>\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n" }]
|
|
42
42
|
}] });
|
|
43
43
|
|
|
44
44
|
class ErrorDialogComponent {
|
|
45
45
|
constructor() {
|
|
46
46
|
this.data = inject(RXAP_ERROR_DIALOG_DATA);
|
|
47
|
-
this.activeIndex = signal(0);
|
|
47
|
+
this.activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
48
48
|
this.displayedButtons = computed(() => {
|
|
49
49
|
const start = Math.max(0, this.activeIndex() - 2);
|
|
50
50
|
const end = Math.min(this.data().length, start + 5);
|
|
51
51
|
return Array.from({ length: end - start }, (_, i) => start + i);
|
|
52
|
-
});
|
|
52
|
+
}, ...(ngDevMode ? [{ debugName: "displayedButtons" }] : /* istanbul ignore next */ []));
|
|
53
53
|
this.closeDialog = new EventEmitter();
|
|
54
54
|
this.component = inject(RXAP_ERROR_DIALOG_COMPONENT);
|
|
55
55
|
this.injector = inject(INJECTOR);
|
|
@@ -66,7 +66,7 @@ class ErrorDialogComponent {
|
|
|
66
66
|
],
|
|
67
67
|
});
|
|
68
68
|
return new ComponentPortal(this.component, null, injector);
|
|
69
|
-
});
|
|
69
|
+
}, ...(ngDevMode ? [{ debugName: "componentPortal" }] : /* istanbul ignore next */ []));
|
|
70
70
|
}
|
|
71
71
|
ngAfterViewInit() {
|
|
72
72
|
this.dialog.nativeElement.showModal();
|
|
@@ -75,17 +75,15 @@ class ErrorDialogComponent {
|
|
|
75
75
|
this.dialog.nativeElement.close();
|
|
76
76
|
this.closeDialog.emit();
|
|
77
77
|
}
|
|
78
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
79
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
79
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: ErrorDialogComponent, isStandalone: true, selector: "rxap-error-dialog", outputs: { closeDialog: "closeDialog" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, static: true }], ngImport: i0, template: "<dialog #dialog\n class=\"rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6\"\n style=\"max-width: 80vw; max-height: 80vh\">\n @if (data().length > 1) {\n <div class=\"controls flex justify-center space-x-2 mt-4\">\n @if (activeIndex() > 0) {\n <button\n (click)=\"activeIndex.set(activeIndex() - 1)\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Previous\n </button>\n }\n @for (item of displayedButtons(); track item) {\n <button (click)=\"activeIndex.set(item)\"\n [ngClass]=\"{\n 'bg-primary-500': item === activeIndex(),\n 'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item !== activeIndex()\n }\"\n class=\"px-4 py-2 rounded\">\n {{ item + 1 }}\n </button>\n }\n @if (activeIndex() < data().length - 1) {\n <button\n (click)=\"activeIndex.set(activeIndex() + 1)\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Next\n </button>\n }\n </div>\n }\n <div class=\"flex flex-col overflow-auto\">\n <ng-template [cdkPortalOutlet]=\"componentPortal()\"></ng-template>\n </div>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>close</button>\n</dialog>\n", styles: ["dialog::backdrop{background:#000000b3}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
80
80
|
}
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorDialogComponent, decorators: [{
|
|
82
82
|
type: Component,
|
|
83
83
|
args: [{ selector: 'rxap-error-dialog', changeDetection: ChangeDetectionStrategy.Default, imports: [
|
|
84
|
-
NgIf,
|
|
85
84
|
NgClass,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
], template: "<dialog #dialog\n class=\"rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6\"\n style=\"max-width: 80vw; max-height: 80vh\">\n <div *ngIf=\"data().length > 1\" class=\"controls flex justify-center space-x-2 mt-4\">\n <button\n (click)=\"activeIndex.set(activeIndex() - 1)\"\n *ngIf=\"activeIndex() > 0\" class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Previous\n </button>\n <button (click)=\"activeIndex.set(item)\"\n *ngFor=\"let item of displayedButtons()\"\n [ngClass]=\"{\n 'bg-primary-500': item === activeIndex(),\n 'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item !== activeIndex()\n }\"\n class=\"px-4 py-2 rounded\">\n {{ item + 1 }}\n </button>\n <button\n (click)=\"activeIndex.set(activeIndex() + 1)\"\n *ngIf=\"activeIndex() < data().length - 1\" class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Next\n </button>\n </div>\n <div class=\"flex flex-col overflow-auto\">\n <ng-template [cdkPortalOutlet]=\"componentPortal()\"></ng-template>\n </div>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>close</button>\n</dialog>\n", styles: ["dialog::backdrop{background:#000000b3}\n"] }]
|
|
85
|
+
PortalModule
|
|
86
|
+
], template: "<dialog #dialog\n class=\"rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6\"\n style=\"max-width: 80vw; max-height: 80vh\">\n @if (data().length > 1) {\n <div class=\"controls flex justify-center space-x-2 mt-4\">\n @if (activeIndex() > 0) {\n <button\n (click)=\"activeIndex.set(activeIndex() - 1)\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Previous\n </button>\n }\n @for (item of displayedButtons(); track item) {\n <button (click)=\"activeIndex.set(item)\"\n [ngClass]=\"{\n 'bg-primary-500': item === activeIndex(),\n 'bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150': item !== activeIndex()\n }\"\n class=\"px-4 py-2 rounded\">\n {{ item + 1 }}\n </button>\n }\n @if (activeIndex() < data().length - 1) {\n <button\n (click)=\"activeIndex.set(activeIndex() + 1)\"\n class=\"px-4 py-2 bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-900 hover:bg-gray-300 transition-colors duration-150 rounded\">\n Next\n </button>\n }\n </div>\n }\n <div class=\"flex flex-col overflow-auto\">\n <ng-template [cdkPortalOutlet]=\"componentPortal()\"></ng-template>\n </div>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>close</button>\n</dialog>\n", styles: ["dialog::backdrop{background:#000000b3}\n"] }]
|
|
89
87
|
}], propDecorators: { dialog: [{
|
|
90
88
|
type: ViewChild,
|
|
91
89
|
args: ['dialog', { static: true }]
|
|
@@ -138,10 +136,10 @@ class ErrorCaptureDialogService {
|
|
|
138
136
|
};
|
|
139
137
|
});
|
|
140
138
|
}
|
|
141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
142
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
139
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
140
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureDialogService, providedIn: 'root' }); }
|
|
143
141
|
}
|
|
144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureDialogService, decorators: [{
|
|
145
143
|
type: Injectable,
|
|
146
144
|
args: [{ providedIn: 'root' }]
|
|
147
145
|
}] });
|
|
@@ -163,14 +161,14 @@ class ErrorCaptureService {
|
|
|
163
161
|
return;
|
|
164
162
|
}
|
|
165
163
|
}
|
|
166
|
-
const newList = signal([error]);
|
|
164
|
+
const newList = signal([error], ...(ngDevMode ? [{ debugName: "newList" }] : /* istanbul ignore next */ []));
|
|
167
165
|
this.errorList.push(newList);
|
|
168
166
|
this.errorCaptureDialogService.open(this.component, newList);
|
|
169
167
|
}
|
|
170
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
171
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
168
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
169
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureService }); }
|
|
172
170
|
}
|
|
173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ErrorCaptureService, decorators: [{
|
|
174
172
|
type: Injectable
|
|
175
173
|
}] });
|
|
176
174
|
|
|
@@ -179,21 +177,19 @@ class AnyHttpErrorComponent {
|
|
|
179
177
|
this.isProduction = inject(RXAP_ENVIRONMENT, { optional: true })?.production ?? false;
|
|
180
178
|
this.error = inject(RXAP_ERROR_DIALOG_ERROR);
|
|
181
179
|
}
|
|
182
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
183
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AnyHttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
181
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AnyHttpErrorComponent, isStandalone: true, selector: "rxap-any-http-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n @for (entry of value | keyvalue; track entry) {\n <ng-container [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value.length > 1) {\n <ul>\n @for (item of value; track item) {\n <li>{{ item }}</li>\n }\n </ul>\n }\n @if (value.length === 1) {\n {{ value[0] }}\n }\n @if (value.length === 0) {\n NONE\n }\n </td>\n </ng-container>\n }\n </rxap-data-grid>\n </td>\n </ng-container>\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: DataGridModule }, { kind: "component", type: i1$2.DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: i1$2.DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "directive", type: i1$2.DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value", "containerClass", "position"] }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: JsonPipe, name: "json" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
184
182
|
}
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AnyHttpErrorComponent, decorators: [{
|
|
186
184
|
type: Component,
|
|
187
185
|
args: [{ selector: 'rxap-any-http-error', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
188
186
|
DataGridModule,
|
|
189
|
-
NgIf,
|
|
190
187
|
DatePipe,
|
|
191
188
|
KeyValuePipe,
|
|
192
|
-
NgForOf,
|
|
193
189
|
CopyToClipboardComponent,
|
|
194
190
|
JsonPipe,
|
|
195
|
-
JsonViewerComponent
|
|
196
|
-
], template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n
|
|
191
|
+
JsonViewerComponent
|
|
192
|
+
], template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n @for (entry of value | keyvalue; track entry) {\n <ng-container [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value.length > 1) {\n <ul>\n @for (item of value; track item) {\n <li>{{ item }}</li>\n }\n </ul>\n }\n @if (value.length === 1) {\n {{ value[0] }}\n }\n @if (value.length === 0) {\n NONE\n }\n </td>\n </ng-container>\n }\n </rxap-data-grid>\n </td>\n </ng-container>\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n @if (!isProduction) {\n <ng-container rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n @if (value) {\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n }\n @if (!value) {\n NONE\n }\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n" }]
|
|
197
193
|
}] });
|
|
198
194
|
|
|
199
195
|
class AnyHttpErrorService extends ErrorCaptureService {
|
|
@@ -204,10 +200,10 @@ class AnyHttpErrorService extends ErrorCaptureService {
|
|
|
204
200
|
compare(a, b) {
|
|
205
201
|
return a.url === b.url && a.method === b.method && a.status === b.status && a.message === b.message;
|
|
206
202
|
}
|
|
207
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
208
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AnyHttpErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
204
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AnyHttpErrorService, providedIn: 'root' }); }
|
|
209
205
|
}
|
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AnyHttpErrorService, decorators: [{
|
|
211
207
|
type: Injectable,
|
|
212
208
|
args: [{ providedIn: 'root' }]
|
|
213
209
|
}] });
|
|
@@ -220,10 +216,10 @@ class OpenApiHttpResponseErrorService extends AnyHttpErrorService {
|
|
|
220
216
|
compare(a, b) {
|
|
221
217
|
return true;
|
|
222
218
|
}
|
|
223
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
224
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
219
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenApiHttpResponseErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
220
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenApiHttpResponseErrorService, providedIn: 'root' }); }
|
|
225
221
|
}
|
|
226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OpenApiHttpResponseErrorService, decorators: [{
|
|
227
223
|
type: Injectable,
|
|
228
224
|
args: [{ providedIn: 'root' }]
|
|
229
225
|
}] });
|
|
@@ -232,17 +228,16 @@ class MessageHttpErrorComponent {
|
|
|
232
228
|
constructor() {
|
|
233
229
|
this.isProduction = inject(RXAP_ENVIRONMENT, { optional: true })?.production ?? false;
|
|
234
230
|
this.error = inject(RXAP_ERROR_DIALOG_ERROR);
|
|
235
|
-
this.showMore = signal(false);
|
|
231
|
+
this.showMore = signal(false, ...(ngDevMode ? [{ debugName: "showMore" }] : /* istanbul ignore next */ []));
|
|
236
232
|
}
|
|
237
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
238
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
233
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MessageHttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
234
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: MessageHttpErrorComponent, isStandalone: true, selector: "rxap-http-error-message", ngImport: i0, template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Message:</p>\n <p>{{ error.error.message }}</p>\n @if (!isProduction) {\n <hr>\n @if (!showMore()) {\n <button (click)=\"showMore.set(true)\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n }\n @if (showMore()) {\n <rxap-any-http-error></rxap-any-http-error>\n }\n }\n </div>\n", styles: [""], dependencies: [{ kind: "component", type: AnyHttpErrorComponent, selector: "rxap-any-http-error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
239
235
|
}
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MessageHttpErrorComponent, decorators: [{
|
|
241
237
|
type: Component,
|
|
242
238
|
args: [{ selector: 'rxap-http-error-message', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
], template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Message:</p>\n <p>{{ error.error.message }}</p>\n <ng-container *ngIf=\"!isProduction\">\n <hr>\n <button (click)=\"showMore.set(true)\"\n *ngIf=\"!showMore()\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n <rxap-any-http-error *ngIf=\"showMore()\"></rxap-any-http-error>\n </ng-container>\n</div>\n" }]
|
|
239
|
+
AnyHttpErrorComponent
|
|
240
|
+
], template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Message:</p>\n <p>{{ error.error.message }}</p>\n @if (!isProduction) {\n <hr>\n @if (!showMore()) {\n <button (click)=\"showMore.set(true)\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n }\n @if (showMore()) {\n <rxap-any-http-error></rxap-any-http-error>\n }\n }\n </div>\n" }]
|
|
246
241
|
}] });
|
|
247
242
|
|
|
248
243
|
class MessageHttpErrorService extends AnyHttpErrorService {
|
|
@@ -253,10 +248,10 @@ class MessageHttpErrorService extends AnyHttpErrorService {
|
|
|
253
248
|
compare(a, b) {
|
|
254
249
|
return super.compare(a, b) && a.error.message === b.error.message;
|
|
255
250
|
}
|
|
256
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
257
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
251
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MessageHttpErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
252
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MessageHttpErrorService, providedIn: 'root' }); }
|
|
258
253
|
}
|
|
259
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MessageHttpErrorService, decorators: [{
|
|
260
255
|
type: Injectable,
|
|
261
256
|
args: [{ providedIn: 'root' }]
|
|
262
257
|
}] });
|
|
@@ -274,12 +269,12 @@ class AngularErrorComponent {
|
|
|
274
269
|
get hasExtra() {
|
|
275
270
|
return Object.keys(this.error.extra).length > 0;
|
|
276
271
|
}
|
|
277
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
278
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AngularErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
273
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AngularErrorComponent, isStandalone: true, selector: "rxap-angular-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n @if (error.name) {\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n }\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n @if (hasExtra || hasTags || hasContexts || error.stack) {\n <ng-container rxapDataGridRowDef>\n <th *rxapDataGridHeaderCellDef>\n <span i18n>Details</span>\n </th>\n </ng-container>\n }\n @if (error.stack) {\n <ng-container rxapDataGridRowDef=\"stack\">\n <td *rxapDataGridCellDef=\"let value\">\n <pre>{{ value }}</pre>\n </td>\n </ng-container>\n }\n @if (hasTags) {\n <ng-container rxapDataGridRowDef=\"tags\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n @if (hasExtra) {\n <ng-container rxapDataGridRowDef=\"extra\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n @if (hasContexts) {\n <ng-container rxapDataGridRowDef=\"contexts\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: DataGridModule }, { kind: "component", type: i1$2.DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: i1$2.DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "directive", type: i1$2.DataGridHeaderCellDefDirective, selector: "[rxapDataGridHeaderCellDef]" }, { kind: "directive", type: i1$2.DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }] }); }
|
|
279
274
|
}
|
|
280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AngularErrorComponent, decorators: [{
|
|
281
276
|
type: Component,
|
|
282
|
-
args: [{ selector: 'rxap-angular-error', imports: [DataGridModule, KeyValuePipe
|
|
277
|
+
args: [{ selector: 'rxap-angular-error', imports: [DataGridModule, KeyValuePipe], template: "<rxap-data-grid [data]=\"error\">\n @if (error.name) {\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n }\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n @if (hasExtra || hasTags || hasContexts || error.stack) {\n <ng-container rxapDataGridRowDef>\n <th *rxapDataGridHeaderCellDef>\n <span i18n>Details</span>\n </th>\n </ng-container>\n }\n @if (error.stack) {\n <ng-container rxapDataGridRowDef=\"stack\">\n <td *rxapDataGridCellDef=\"let value\">\n <pre>{{ value }}</pre>\n </td>\n </ng-container>\n }\n @if (hasTags) {\n <ng-container rxapDataGridRowDef=\"tags\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n @if (hasExtra) {\n <ng-container rxapDataGridRowDef=\"extra\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n @if (hasContexts) {\n <ng-container rxapDataGridRowDef=\"contexts\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\" auto></rxap-data-grid>\n </td>\n </ng-container>\n }\n</rxap-data-grid>\n" }]
|
|
283
278
|
}] });
|
|
284
279
|
|
|
285
280
|
class AngularErrorService extends ErrorCaptureService {
|
|
@@ -290,10 +285,10 @@ class AngularErrorService extends ErrorCaptureService {
|
|
|
290
285
|
compare(a, b) {
|
|
291
286
|
return true;
|
|
292
287
|
}
|
|
293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
294
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
288
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AngularErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
289
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AngularErrorService, providedIn: 'root' }); }
|
|
295
290
|
}
|
|
296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AngularErrorService, decorators: [{
|
|
297
292
|
type: Injectable,
|
|
298
293
|
args: [{ providedIn: 'root' }]
|
|
299
294
|
}] });
|
|
@@ -302,17 +297,16 @@ class CodeHttpErrorComponent {
|
|
|
302
297
|
constructor() {
|
|
303
298
|
this.isProduction = inject(RXAP_ENVIRONMENT, { optional: true })?.production ?? false;
|
|
304
299
|
this.error = inject(RXAP_ERROR_DIALOG_ERROR);
|
|
305
|
-
this.showMore = signal(false);
|
|
300
|
+
this.showMore = signal(false, ...(ngDevMode ? [{ debugName: "showMore" }] : /* istanbul ignore next */ []));
|
|
306
301
|
}
|
|
307
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
308
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
302
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CodeHttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
303
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: CodeHttpErrorComponent, isStandalone: true, selector: "rxap-http-error-message", ngImport: i0, template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Code: <span class=\"font-bold text-red-800\">{{ error.errorCode }}</span></p>\n <p>{{ error.error.message ?? error.message }}</p>\n @if (!isProduction) {\n <hr>\n @if (!showMore()) {\n <button (click)=\"showMore.set(true)\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n }\n @if (showMore()) {\n <rxap-any-http-error></rxap-any-http-error>\n }\n }\n </div>\n", styles: [""], dependencies: [{ kind: "component", type: AnyHttpErrorComponent, selector: "rxap-any-http-error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
309
304
|
}
|
|
310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CodeHttpErrorComponent, decorators: [{
|
|
311
306
|
type: Component,
|
|
312
307
|
args: [{ selector: 'rxap-http-error-message', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
], template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Code: <span class=\"font-bold text-red-800\">{{ error.errorCode }}</span></p>\n <p>{{ error.error.message ?? error.message }}</p>\n <ng-container *ngIf=\"!isProduction\">\n <hr>\n <button (click)=\"showMore.set(true)\"\n *ngIf=\"!showMore()\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n <rxap-any-http-error *ngIf=\"showMore()\"></rxap-any-http-error>\n </ng-container>\n</div>\n" }]
|
|
308
|
+
AnyHttpErrorComponent
|
|
309
|
+
], template: "<div class=\"flex flex-col gap-2\">\n <p class=\"text-xl\">Http Error Code: <span class=\"font-bold text-red-800\">{{ error.errorCode }}</span></p>\n <p>{{ error.error.message ?? error.message }}</p>\n @if (!isProduction) {\n <hr>\n @if (!showMore()) {\n <button (click)=\"showMore.set(true)\"\n class=\"px-4 py-2 rounded bg-accent-500\">\n <ng-container i18n>Show more details</ng-container>\n </button>\n }\n @if (showMore()) {\n <rxap-any-http-error></rxap-any-http-error>\n }\n }\n </div>\n" }]
|
|
316
310
|
}] });
|
|
317
311
|
|
|
318
312
|
class CodeHttpErrorService extends AnyHttpErrorService {
|
|
@@ -323,10 +317,10 @@ class CodeHttpErrorService extends AnyHttpErrorService {
|
|
|
323
317
|
compare(a, b) {
|
|
324
318
|
return super.compare(a, b) && a.errorCode === b.errorCode;
|
|
325
319
|
}
|
|
326
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
327
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
320
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CodeHttpErrorService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
321
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CodeHttpErrorService, providedIn: 'root' }); }
|
|
328
322
|
}
|
|
329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CodeHttpErrorService, decorators: [{
|
|
330
324
|
type: Injectable,
|
|
331
325
|
args: [{ providedIn: 'root' }]
|
|
332
326
|
}] });
|
|
@@ -544,10 +538,10 @@ class RxapErrorHandler {
|
|
|
544
538
|
inject(AngularErrorService).push(data);
|
|
545
539
|
});
|
|
546
540
|
}
|
|
547
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
548
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
541
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
542
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapErrorHandler }); }
|
|
549
543
|
}
|
|
550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapErrorHandler, decorators: [{
|
|
551
545
|
type: Injectable
|
|
552
546
|
}] });
|
|
553
547
|
|