@rxap/ngx-error 19.1.0 → 19.2.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/compodoc/changelog.html +11 -0
- package/compodoc/dependencies.html +5 -5
- package/compodoc/injectables/ErrorCaptureDialogService.html +43 -4
- package/compodoc/interfaces/IErrorCaptureDialogService.html +9 -2
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/functions.html +60 -0
- package/compodoc/miscellaneous/variables.html +26 -0
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +688 -503
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- 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 +3 -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 -0
- 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 -0
- 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 +13 -5
- 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 +21 -0
- package/docs/markdown/functions/withErrorCaptureDialogService.md +2 -2
- package/docs/markdown/globals.md +4 -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 +11 -0
- 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 +12 -4
- 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 +17 -0
- 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 +7 -0
- 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/_Sidebar.md +2 -0
- package/docs/wiki/globals.md +3 -1
- package/fesm2022/rxap-ngx-error.mjs +19 -4
- package/fesm2022/rxap-ngx-error.mjs.map +1 -1
- package/lib/error-capture-dialog.service.d.ts +1 -0
- package/lib/provide.d.ts +1 -0
- package/lib/tokens.d.ts +1 -0
- package/package.json +27 -27
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: OpenApiHttpResponseErrorDialogData
|
|
4
4
|
|
|
5
|
-
Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:4](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:4](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/open-api-http-response-error/open-api-http-response-error-dialog-data.ts#L4)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-da
|
|
|
14
14
|
|
|
15
15
|
> `optional` **body**: `any`
|
|
16
16
|
|
|
17
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:8](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:8](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L8)
|
|
18
18
|
|
|
19
19
|
#### Inherited from
|
|
20
20
|
|
|
@@ -26,7 +26,7 @@ Defined in: [any-http-error/any-http-error-dialog-data.ts:8](https://gitlab.com/
|
|
|
26
26
|
|
|
27
27
|
> **error**: `any`
|
|
28
28
|
|
|
29
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:10](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L10)
|
|
30
30
|
|
|
31
31
|
#### Inherited from
|
|
32
32
|
|
|
@@ -38,7 +38,7 @@ Defined in: [any-http-error/any-http-error-dialog-data.ts:10](https://gitlab.com
|
|
|
38
38
|
|
|
39
39
|
> **headers**: `Record`\<`string`, `string`[]\>
|
|
40
40
|
|
|
41
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:17](https://gitlab.com/rxap/packages/-/blob/
|
|
41
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:17](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L17)
|
|
42
42
|
|
|
43
43
|
All response headers.
|
|
44
44
|
|
|
@@ -52,7 +52,7 @@ All response headers.
|
|
|
52
52
|
|
|
53
53
|
> **message**: `string`
|
|
54
54
|
|
|
55
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
55
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:11](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L11)
|
|
56
56
|
|
|
57
57
|
#### Inherited from
|
|
58
58
|
|
|
@@ -64,7 +64,7 @@ Defined in: [any-http-error/any-http-error-dialog-data.ts:11](https://gitlab.com
|
|
|
64
64
|
|
|
65
65
|
> **metadata**: `OpenApiMetaData`
|
|
66
66
|
|
|
67
|
-
Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:5](https://gitlab.com/rxap/packages/-/blob/
|
|
67
|
+
Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:5](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/open-api-http-response-error/open-api-http-response-error-dialog-data.ts#L5)
|
|
68
68
|
|
|
69
69
|
***
|
|
70
70
|
|
|
@@ -72,7 +72,7 @@ Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-da
|
|
|
72
72
|
|
|
73
73
|
> **method**: `string`
|
|
74
74
|
|
|
75
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
75
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:7](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L7)
|
|
76
76
|
|
|
77
77
|
#### Inherited from
|
|
78
78
|
|
|
@@ -84,7 +84,7 @@ Defined in: [any-http-error/any-http-error-dialog-data.ts:7](https://gitlab.com/
|
|
|
84
84
|
|
|
85
85
|
> **name**: `string`
|
|
86
86
|
|
|
87
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
87
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:12](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L12)
|
|
88
88
|
|
|
89
89
|
#### Inherited from
|
|
90
90
|
|
|
@@ -96,7 +96,7 @@ Defined in: [any-http-error/any-http-error-dialog-data.ts:12](https://gitlab.com
|
|
|
96
96
|
|
|
97
97
|
> **ok**: `boolean`
|
|
98
98
|
|
|
99
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:35](https://gitlab.com/rxap/packages/-/blob/
|
|
99
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:35](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L35)
|
|
100
100
|
|
|
101
101
|
Whether the status code falls in the 2xx range.
|
|
102
102
|
|
|
@@ -110,7 +110,7 @@ Whether the status code falls in the 2xx range.
|
|
|
110
110
|
|
|
111
111
|
> **operationId**: `string`
|
|
112
112
|
|
|
113
|
-
Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:6](https://gitlab.com/rxap/packages/-/blob/
|
|
113
|
+
Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:6](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/open-api-http-response-error/open-api-http-response-error-dialog-data.ts#L6)
|
|
114
114
|
|
|
115
115
|
***
|
|
116
116
|
|
|
@@ -118,7 +118,7 @@ Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-da
|
|
|
118
118
|
|
|
119
119
|
> `optional` **serverId**: `string`
|
|
120
120
|
|
|
121
|
-
Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
121
|
+
Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:7](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/open-api-http-response-error/open-api-http-response-error-dialog-data.ts#L7)
|
|
122
122
|
|
|
123
123
|
***
|
|
124
124
|
|
|
@@ -126,7 +126,7 @@ Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-da
|
|
|
126
126
|
|
|
127
127
|
> `optional` **stack**: `string`
|
|
128
128
|
|
|
129
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
129
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:9](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L9)
|
|
130
130
|
|
|
131
131
|
#### Inherited from
|
|
132
132
|
|
|
@@ -138,7 +138,7 @@ Defined in: [any-http-error/any-http-error-dialog-data.ts:9](https://gitlab.com/
|
|
|
138
138
|
|
|
139
139
|
> **status**: `number`
|
|
140
140
|
|
|
141
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:21](https://gitlab.com/rxap/packages/-/blob/
|
|
141
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:21](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L21)
|
|
142
142
|
|
|
143
143
|
Response status code.
|
|
144
144
|
|
|
@@ -152,7 +152,7 @@ Response status code.
|
|
|
152
152
|
|
|
153
153
|
> **statusText**: `string`
|
|
154
154
|
|
|
155
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:27](https://gitlab.com/rxap/packages/-/blob/
|
|
155
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:27](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L27)
|
|
156
156
|
|
|
157
157
|
Textual description of response status code, defaults to OK.
|
|
158
158
|
|
|
@@ -168,7 +168,7 @@ Do not depend on this.
|
|
|
168
168
|
|
|
169
169
|
> **timestamp**: `number`
|
|
170
170
|
|
|
171
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
171
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:13](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L13)
|
|
172
172
|
|
|
173
173
|
#### Inherited from
|
|
174
174
|
|
|
@@ -180,7 +180,7 @@ Defined in: [any-http-error/any-http-error-dialog-data.ts:13](https://gitlab.com
|
|
|
180
180
|
|
|
181
181
|
> **type**: `ResponseHeader` \| `Response`
|
|
182
182
|
|
|
183
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:39](https://gitlab.com/rxap/packages/-/blob/
|
|
183
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:39](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L39)
|
|
184
184
|
|
|
185
185
|
Type of the response, narrowed to either the full response or the header.
|
|
186
186
|
|
|
@@ -194,7 +194,7 @@ Type of the response, narrowed to either the full response or the header.
|
|
|
194
194
|
|
|
195
195
|
> **url**: `null` \| `string`
|
|
196
196
|
|
|
197
|
-
Defined in: [any-http-error/any-http-error-dialog-data.ts:31](https://gitlab.com/rxap/packages/-/blob/
|
|
197
|
+
Defined in: [any-http-error/any-http-error-dialog-data.ts:31](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L31)
|
|
198
198
|
|
|
199
199
|
URL of the resource retrieved, or null if not available.
|
|
200
200
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: SimplifiedHttpErrorResponse
|
|
4
4
|
|
|
5
|
-
Defined in: [utilities.ts:6](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [utilities.ts:6](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L6)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ Defined in: [utilities.ts:6](https://gitlab.com/rxap/packages/-/blob/3eebed1be2b
|
|
|
18
18
|
|
|
19
19
|
> **error**: `any`
|
|
20
20
|
|
|
21
|
-
Defined in: [utilities.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [utilities.ts:13](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L13)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ Defined in: [utilities.ts:13](https://gitlab.com/rxap/packages/-/blob/3eebed1be2
|
|
|
26
26
|
|
|
27
27
|
> **errorMessage**: `string`
|
|
28
28
|
|
|
29
|
-
Defined in: [utilities.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [utilities.ts:14](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L14)
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ Defined in: [utilities.ts:14](https://gitlab.com/rxap/packages/-/blob/3eebed1be2
|
|
|
34
34
|
|
|
35
35
|
> **headers**: `Record`\<`string`, `string`[]\>
|
|
36
36
|
|
|
37
|
-
Defined in: [utilities.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
37
|
+
Defined in: [utilities.ts:12](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L12)
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ Defined in: [utilities.ts:12](https://gitlab.com/rxap/packages/-/blob/3eebed1be2
|
|
|
42
42
|
|
|
43
43
|
> **message**: `string`
|
|
44
44
|
|
|
45
|
-
Defined in: [utilities.ts:8](https://gitlab.com/rxap/packages/-/blob/
|
|
45
|
+
Defined in: [utilities.ts:8](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L8)
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ Defined in: [utilities.ts:8](https://gitlab.com/rxap/packages/-/blob/3eebed1be2b
|
|
|
50
50
|
|
|
51
51
|
> **name**: `string`
|
|
52
52
|
|
|
53
|
-
Defined in: [utilities.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
53
|
+
Defined in: [utilities.ts:9](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L9)
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
@@ -58,7 +58,7 @@ Defined in: [utilities.ts:9](https://gitlab.com/rxap/packages/-/blob/3eebed1be2b
|
|
|
58
58
|
|
|
59
59
|
> **ok**: `boolean`
|
|
60
60
|
|
|
61
|
-
Defined in: [utilities.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
61
|
+
Defined in: [utilities.ts:15](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L15)
|
|
62
62
|
|
|
63
63
|
***
|
|
64
64
|
|
|
@@ -66,7 +66,7 @@ Defined in: [utilities.ts:15](https://gitlab.com/rxap/packages/-/blob/3eebed1be2
|
|
|
66
66
|
|
|
67
67
|
> **status**: `number`
|
|
68
68
|
|
|
69
|
-
Defined in: [utilities.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
69
|
+
Defined in: [utilities.ts:10](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L10)
|
|
70
70
|
|
|
71
71
|
***
|
|
72
72
|
|
|
@@ -74,7 +74,7 @@ Defined in: [utilities.ts:10](https://gitlab.com/rxap/packages/-/blob/3eebed1be2
|
|
|
74
74
|
|
|
75
75
|
> **statusText**: `string`
|
|
76
76
|
|
|
77
|
-
Defined in: [utilities.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
77
|
+
Defined in: [utilities.ts:11](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L11)
|
|
78
78
|
|
|
79
79
|
***
|
|
80
80
|
|
|
@@ -82,7 +82,7 @@ Defined in: [utilities.ts:11](https://gitlab.com/rxap/packages/-/blob/3eebed1be2
|
|
|
82
82
|
|
|
83
83
|
> **type**: `ResponseHeader` \| `Response`
|
|
84
84
|
|
|
85
|
-
Defined in: [utilities.ts:16](https://gitlab.com/rxap/packages/-/blob/
|
|
85
|
+
Defined in: [utilities.ts:16](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L16)
|
|
86
86
|
|
|
87
87
|
***
|
|
88
88
|
|
|
@@ -90,4 +90,4 @@ Defined in: [utilities.ts:16](https://gitlab.com/rxap/packages/-/blob/3eebed1be2
|
|
|
90
90
|
|
|
91
91
|
> **url**: `null` \| `string`
|
|
92
92
|
|
|
93
|
-
Defined in: [utilities.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
93
|
+
Defined in: [utilities.ts:7](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/utilities.ts#L7)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_ERROR\_CAPTURE\_DIALOG\_SERVICE**: `InjectionToken`\<[`IErrorCaptureDialogService`](../wiki/Interface.IErrorCaptureDialogService)\<`any`\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:20](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:20](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/tokens.ts#L20)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_ERROR\_DIALOG\_COMPONENT**: `InjectionToken`\<`ComponentType`\<[`IErrorDialogComponent`](../wiki/Interface.IErrorDialogComponent)\<`any`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:14](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/tokens.ts#L14)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_ERROR\_DIALOG\_DATA**: `InjectionToken`\<`Signal`\<`any`[]\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/tokens.ts#L10)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[@rxap/ngx-error](../wiki/globals) / RXAP\_ERROR\_DIALOG\_DISABLED
|
|
2
|
+
|
|
3
|
+
# Variable: RXAP\_ERROR\_DIALOG\_DISABLED
|
|
4
|
+
|
|
5
|
+
> `const` **RXAP\_ERROR\_DIALOG\_DISABLED**: `InjectionToken`\<`boolean`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/tokens.ts#L22)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_ERROR\_DIALOG\_ERROR**: `InjectionToken`\<`any`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:12](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/tokens.ts#L12)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_ERROR\_HANDLER\_OPTIONS**: `InjectionToken`\<[`ErrorHandlerOptions`](../wiki/Interface.ErrorHandlerOptions)\>
|
|
6
6
|
|
|
7
|
-
Defined in: [error-handler.ts:40](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [error-handler.ts:40](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/error-handler.ts#L40)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_ERROR\_INTERCEPTOR\_OPTIONS**: `InjectionToken`\<[`ErrorInterceptorOptions`](../wiki/Interface.ErrorInterceptorOptions)\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:17](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:17](https://gitlab.com/rxap/packages/-/blob/93e21b0862b681fe19d93a427dff6dd079533598/packages/angular/error/src/lib/tokens.ts#L17)
|
package/docs/wiki/_Sidebar.md
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
- [RXAP_ERROR_CAPTURE_DIALOG_SERVICE](../wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE)
|
|
36
36
|
- [RXAP_ERROR_DIALOG_COMPONENT](../wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT)
|
|
37
37
|
- [RXAP_ERROR_DIALOG_DATA](../wiki/Variable.RXAP_ERROR_DIALOG_DATA)
|
|
38
|
+
- [RXAP_ERROR_DIALOG_DISABLED](../wiki/Variable.RXAP_ERROR_DIALOG_DISABLED)
|
|
38
39
|
- [RXAP_ERROR_DIALOG_ERROR](../wiki/Variable.RXAP_ERROR_DIALOG_ERROR)
|
|
39
40
|
- [RXAP_ERROR_HANDLER_OPTIONS](../wiki/Variable.RXAP_ERROR_HANDLER_OPTIONS)
|
|
40
41
|
- [RXAP_ERROR_INTERCEPTOR_OPTIONS](../wiki/Variable.RXAP_ERROR_INTERCEPTOR_OPTIONS)
|
|
@@ -52,4 +53,5 @@
|
|
|
52
53
|
- [provideAutoErrorInterception](../wiki/Function.provideAutoErrorInterception)
|
|
53
54
|
- [ProvideErrorHandler](../wiki/Function.ProvideErrorHandler)
|
|
54
55
|
- [SimplifyHttpErrorResponse](../wiki/Function.SimplifyHttpErrorResponse)
|
|
56
|
+
- [withErrorCaptureDialogDisabledIf](../wiki/Function.withErrorCaptureDialogDisabledIf)
|
|
55
57
|
- [withErrorCaptureDialogService](../wiki/Function.withErrorCaptureDialogService)
|
package/docs/wiki/globals.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @rxap/ngx-error v19.
|
|
1
|
+
# @rxap/ngx-error v19.2.0-dev.1
|
|
2
2
|
|
|
3
3
|
## Classes
|
|
4
4
|
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
- [RXAP\_ERROR\_CAPTURE\_DIALOG\_SERVICE](../wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE)
|
|
36
36
|
- [RXAP\_ERROR\_DIALOG\_COMPONENT](../wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT)
|
|
37
37
|
- [RXAP\_ERROR\_DIALOG\_DATA](../wiki/Variable.RXAP_ERROR_DIALOG_DATA)
|
|
38
|
+
- [RXAP\_ERROR\_DIALOG\_DISABLED](../wiki/Variable.RXAP_ERROR_DIALOG_DISABLED)
|
|
38
39
|
- [RXAP\_ERROR\_DIALOG\_ERROR](../wiki/Variable.RXAP_ERROR_DIALOG_ERROR)
|
|
39
40
|
- [RXAP\_ERROR\_HANDLER\_OPTIONS](../wiki/Variable.RXAP_ERROR_HANDLER_OPTIONS)
|
|
40
41
|
- [RXAP\_ERROR\_INTERCEPTOR\_OPTIONS](../wiki/Variable.RXAP_ERROR_INTERCEPTOR_OPTIONS)
|
|
@@ -52,4 +53,5 @@
|
|
|
52
53
|
- [provideAutoErrorInterception](../wiki/Function.provideAutoErrorInterception)
|
|
53
54
|
- [~~ProvideErrorHandler~~](../wiki/Function.ProvideErrorHandler)
|
|
54
55
|
- [SimplifyHttpErrorResponse](../wiki/Function.SimplifyHttpErrorResponse)
|
|
56
|
+
- [withErrorCaptureDialogDisabledIf](../wiki/Function.withErrorCaptureDialogDisabledIf)
|
|
55
57
|
- [withErrorCaptureDialogService](../wiki/Function.withErrorCaptureDialogService)
|
|
@@ -6,7 +6,7 @@ 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';
|
|
8
8
|
import { RXAP_ENVIRONMENT, IsNotReleaseVersion } from '@rxap/environment';
|
|
9
|
-
import { Observable, take, finalize } from 'rxjs';
|
|
9
|
+
import { EMPTY, Observable, take, finalize } from 'rxjs';
|
|
10
10
|
import { tap } from 'rxjs/operators';
|
|
11
11
|
import * as i1$1 from '@angular/cdk/portal';
|
|
12
12
|
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
@@ -20,6 +20,10 @@ const RXAP_ERROR_DIALOG_ERROR = new InjectionToken('rxap/error/dialog-error');
|
|
|
20
20
|
const RXAP_ERROR_DIALOG_COMPONENT = new InjectionToken('rxap/error/dialog-component');
|
|
21
21
|
const RXAP_ERROR_INTERCEPTOR_OPTIONS = new InjectionToken('rxap/error/interceptor-options');
|
|
22
22
|
const RXAP_ERROR_CAPTURE_DIALOG_SERVICE = new InjectionToken('rxap/error/capture-dialog-service');
|
|
23
|
+
const RXAP_ERROR_DIALOG_DISABLED = new InjectionToken('rxap/error/dialog-disabled', {
|
|
24
|
+
providedIn: 'root',
|
|
25
|
+
factory: () => false,
|
|
26
|
+
});
|
|
23
27
|
|
|
24
28
|
class OpenApiHttpResponseErrorComponent {
|
|
25
29
|
constructor() {
|
|
@@ -27,7 +31,7 @@ class OpenApiHttpResponseErrorComponent {
|
|
|
27
31
|
this.error = inject(RXAP_ERROR_DIALOG_ERROR);
|
|
28
32
|
}
|
|
29
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: OpenApiHttpResponseErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: OpenApiHttpResponseErrorComponent, isStandalone: true, selector: "rxap-open-api-http-response-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n <ng-container *ngFor=\"let entry of value | keyvalue\" [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value.length > 1\">\n <ul>\n <li *ngFor=\"let item of value\">{{ item }}</li>\n </ul>\n </ng-container>\n <ng-container *ngIf=\"value.length === 1\">{{ value[0] }}</ng-container>\n <ng-container *ngIf=\"value.length === 0\">NONE</ng-container>\n </td>\n </ng-container>\n </rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: i1.KeyValuePipe, name: "keyvalue" }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value"] }, { kind: "directive", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "component", type: DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: OpenApiHttpResponseErrorComponent, isStandalone: true, selector: "rxap-open-api-http-response-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n <ng-container *ngFor=\"let entry of value | keyvalue\" [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value.length > 1\">\n <ul>\n <li *ngFor=\"let item of value\">{{ item }}</li>\n </ul>\n </ng-container>\n <ng-container *ngIf=\"value.length === 1\">{{ value[0] }}</ng-container>\n <ng-container *ngIf=\"value.length === 0\">NONE</ng-container>\n </td>\n </ng-container>\n </rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: i1.KeyValuePipe, name: "keyvalue" }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value", "containerClass", "position"] }, { kind: "directive", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "component", type: DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
35
|
}
|
|
32
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: OpenApiHttpResponseErrorComponent, decorators: [{
|
|
33
37
|
type: Component,
|
|
@@ -93,8 +97,13 @@ class ErrorCaptureDialogService {
|
|
|
93
97
|
constructor() {
|
|
94
98
|
this.applicationRef = inject(ApplicationRef);
|
|
95
99
|
this.document = inject(DOCUMENT);
|
|
100
|
+
this.disabled = inject(RXAP_ERROR_DIALOG_DISABLED);
|
|
96
101
|
}
|
|
97
102
|
open(component, errorList) {
|
|
103
|
+
if (this.disabled) {
|
|
104
|
+
console.debug(`ErrorCaptureDialogService is disabled.`, { errorList: errorList() });
|
|
105
|
+
return EMPTY;
|
|
106
|
+
}
|
|
98
107
|
const body = this.document.getElementsByTagName('body')[0];
|
|
99
108
|
const div = this.document.createElement('div');
|
|
100
109
|
body.appendChild(div);
|
|
@@ -171,7 +180,7 @@ class AnyHttpErrorComponent {
|
|
|
171
180
|
this.error = inject(RXAP_ERROR_DIALOG_ERROR);
|
|
172
181
|
}
|
|
173
182
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: AnyHttpErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
174
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: AnyHttpErrorComponent, isStandalone: true, selector: "rxap-any-http-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n <ng-container *ngFor=\"let entry of value | keyvalue\" [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value.length > 1\">\n <ul>\n <li *ngFor=\"let item of value\">{{ item }}</li>\n </ul>\n </ng-container>\n <ng-container *ngIf=\"value.length === 1\">{{ value[0] }}</ng-container>\n <ng-container *ngIf=\"value.length === 0\">NONE</ng-container>\n </td>\n </ng-container>\n </rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: DataGridModule }, { kind: "component", type: i1$2.DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: i1$2.DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "directive", type: i1$2.DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value"] }, { kind: "pipe", type: JsonPipe, name: "json" }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
183
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: AnyHttpErrorComponent, isStandalone: true, selector: "rxap-any-http-error", ngImport: i0, template: "<rxap-data-grid [data]=\"error\">\n <ng-container rxapDataGridRowDef=\"name\"></ng-container>\n <ng-container rxapDataGridRowDef=\"timestamp\">\n <td *rxapDataGridCellDef=\"let value\">{{ value | date:'HH:mm:ss' }}</td>\n </ng-container>\n <ng-container rxapDataGridRowDef=\"method\"></ng-container>\n <ng-container rxapDataGridRowDef=\"url\"></ng-container>\n <ng-container rxapDataGridRowDef=\"status\"></ng-container>\n <ng-container rxapDataGridRowDef=\"statusText\"></ng-container>\n <ng-container rxapDataGridRowDef=\"message\"></ng-container>\n <ng-container rxapDataGridRowDef=\"headers\">\n <td *rxapDataGridCellDef=\"let value\">\n <rxap-data-grid [data]=\"value\">\n <ng-container *ngFor=\"let entry of value | keyvalue\" [rxapDataGridRowDef]=\"$any(entry.key)\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value.length > 1\">\n <ul>\n <li *ngFor=\"let item of value\">{{ item }}</li>\n </ul>\n </ng-container>\n <ng-container *ngIf=\"value.length === 1\">{{ value[0] }}</ng-container>\n <ng-container *ngIf=\"value.length === 0\">NONE</ng-container>\n </td>\n </ng-container>\n </rxap-data-grid>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"error\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Response Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isProduction\" rxapDataGridRowDef=\"body\">\n <td *rxapDataGridCellDef=\"let value\">\n <ng-container *ngIf=\"value\">\n <rxap-copy-to-clipboard [value]=\"value | json\">Copy Request Body</rxap-copy-to-clipboard>\n <div class=\"body\">\n <rxap-json-viewer [expanded]=\"false\" [json]=\"value\"></rxap-json-viewer>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!value\">NONE</ng-container>\n </td>\n </ng-container>\n</rxap-data-grid>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: DataGridModule }, { kind: "component", type: i1$2.DataGridComponent, selector: "rxap-data-grid", inputs: ["header", "dataSource", "viewer", "data", "displayProperties", "hideEmptyProperties", "mode"], outputs: ["editModeChange"] }, { kind: "directive", type: i1$2.DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: ["data", "rxapDataGridRowDef", "flip"] }, { kind: "directive", type: i1$2.DataGridCellDefDirective, selector: "[rxapDataGridCellDef]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: CopyToClipboardComponent, selector: "rxap-copy-to-clipboard", inputs: ["active", "disabled", "value", "containerClass", "position"] }, { kind: "pipe", type: JsonPipe, name: "json" }, { kind: "component", type: JsonViewerComponent, selector: "rxap-json-viewer", inputs: ["json", "expanded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
175
184
|
}
|
|
176
185
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: AnyHttpErrorComponent, decorators: [{
|
|
177
186
|
type: Component,
|
|
@@ -601,6 +610,12 @@ function withErrorCaptureDialogService(service) {
|
|
|
601
610
|
useClass: service,
|
|
602
611
|
};
|
|
603
612
|
}
|
|
613
|
+
function withErrorCaptureDialogDisabledIf(condition) {
|
|
614
|
+
return {
|
|
615
|
+
provide: RXAP_ERROR_DIALOG_DISABLED,
|
|
616
|
+
useValue: typeof condition === 'function' ? condition() : condition,
|
|
617
|
+
};
|
|
618
|
+
}
|
|
604
619
|
/**
|
|
605
620
|
* @deprecated Use `provideAutoErrorInterception` instead.
|
|
606
621
|
*/
|
|
@@ -620,5 +635,5 @@ function ProvideErrorHandler() {
|
|
|
620
635
|
* Generated bundle index. Do not edit.
|
|
621
636
|
*/
|
|
622
637
|
|
|
623
|
-
export { AngularErrorComponent, AngularErrorService, AnyHttpErrorComponent, AnyHttpErrorService, CodeHttpErrorComponent, CodeHttpErrorService, DefaultErrorCodeExtractor, DefaultErrorFilter, ErrorCaptureDialogService, ErrorCaptureService, ErrorDialogComponent, ExtractContextFromError, ExtractError, ExtractExtraFromError, ExtractTagsFromError, HttpErrorInterceptor, MessageHttpErrorComponent, MessageHttpErrorService, OpenApiHttpResponseErrorComponent, OpenApiHttpResponseErrorService, PrintError, ProvideErrorHandler, RXAP_ERROR_CAPTURE_DIALOG_SERVICE, RXAP_ERROR_DIALOG_COMPONENT, RXAP_ERROR_DIALOG_DATA, RXAP_ERROR_DIALOG_ERROR, RXAP_ERROR_HANDLER_OPTIONS, RXAP_ERROR_INTERCEPTOR_OPTIONS, RxapErrorHandler, SimplifyHttpErrorResponse, provideAutoErrorInterception, withErrorCaptureDialogService };
|
|
638
|
+
export { AngularErrorComponent, AngularErrorService, AnyHttpErrorComponent, AnyHttpErrorService, CodeHttpErrorComponent, CodeHttpErrorService, DefaultErrorCodeExtractor, DefaultErrorFilter, ErrorCaptureDialogService, ErrorCaptureService, ErrorDialogComponent, ExtractContextFromError, ExtractError, ExtractExtraFromError, ExtractTagsFromError, HttpErrorInterceptor, MessageHttpErrorComponent, MessageHttpErrorService, OpenApiHttpResponseErrorComponent, OpenApiHttpResponseErrorService, PrintError, ProvideErrorHandler, RXAP_ERROR_CAPTURE_DIALOG_SERVICE, RXAP_ERROR_DIALOG_COMPONENT, RXAP_ERROR_DIALOG_DATA, RXAP_ERROR_DIALOG_DISABLED, RXAP_ERROR_DIALOG_ERROR, RXAP_ERROR_HANDLER_OPTIONS, RXAP_ERROR_INTERCEPTOR_OPTIONS, RxapErrorHandler, SimplifyHttpErrorResponse, provideAutoErrorInterception, withErrorCaptureDialogDisabledIf, withErrorCaptureDialogService };
|
|
624
639
|
//# sourceMappingURL=rxap-ngx-error.mjs.map
|