@rxap/ngx-error 19.0.4-dev.0 → 19.1.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.
Files changed (167) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/compodoc/changelog.html +7 -0
  3. package/compodoc/components/ErrorDialogComponent.html +5 -3
  4. package/compodoc/dependencies.html +5 -5
  5. package/compodoc/injectables/AngularErrorService.html +1 -77
  6. package/compodoc/injectables/AnyHttpErrorService.html +1 -77
  7. package/compodoc/injectables/CodeHttpErrorService.html +1 -77
  8. package/compodoc/injectables/ErrorCaptureDialogService.html +490 -0
  9. package/compodoc/injectables/ErrorCaptureService.html +13 -121
  10. package/compodoc/injectables/MessageHttpErrorService.html +1 -77
  11. package/compodoc/injectables/OpenApiHttpResponseErrorService.html +1 -77
  12. package/compodoc/injectables/RxapErrorHandler.html +8 -16
  13. package/compodoc/interfaces/ErrorHandlerOptions.html +0 -8
  14. package/compodoc/interfaces/IErrorCaptureDialogService.html +405 -0
  15. package/compodoc/js/menu-wc.js +6 -0
  16. package/compodoc/js/menu-wc_es5.js +1 -1
  17. package/compodoc/js/search/search_index.js +2 -2
  18. package/compodoc/miscellaneous/functions.html +130 -4
  19. package/compodoc/miscellaneous/variables.html +23 -0
  20. package/compodoc/overview.html +2 -2
  21. package/compodoc/properties.html +1 -1
  22. package/docs/documentation.json +1803 -1563
  23. package/docs/html/assets/hierarchy.js +1 -1
  24. package/docs/html/assets/navigation.js +1 -1
  25. package/docs/html/assets/search.js +1 -1
  26. package/docs/html/classes/AngularErrorComponent.html +2 -2
  27. package/docs/html/classes/AngularErrorService.html +2 -3
  28. package/docs/html/classes/AnyHttpErrorComponent.html +2 -2
  29. package/docs/html/classes/AnyHttpErrorService.html +2 -3
  30. package/docs/html/classes/CodeHttpErrorComponent.html +2 -2
  31. package/docs/html/classes/CodeHttpErrorService.html +2 -3
  32. package/docs/html/classes/ErrorCaptureDialogService.html +5 -0
  33. package/docs/html/classes/ErrorCaptureService.html +2 -3
  34. package/docs/html/classes/ErrorDialogComponent.html +3 -3
  35. package/docs/html/classes/MessageHttpErrorComponent.html +2 -2
  36. package/docs/html/classes/MessageHttpErrorService.html +2 -3
  37. package/docs/html/classes/OpenApiHttpResponseErrorComponent.html +2 -2
  38. package/docs/html/classes/OpenApiHttpResponseErrorService.html +2 -3
  39. package/docs/html/classes/RxapErrorHandler.html +3 -3
  40. package/docs/html/functions/DefaultErrorCodeExtractor.html +1 -1
  41. package/docs/html/functions/DefaultErrorFilter.html +1 -1
  42. package/docs/html/functions/ExtractContextFromError.html +1 -1
  43. package/docs/html/functions/ExtractError.html +1 -1
  44. package/docs/html/functions/ExtractExtraFromError.html +1 -1
  45. package/docs/html/functions/ExtractTagsFromError.html +1 -1
  46. package/docs/html/functions/HttpErrorInterceptor.html +1 -1
  47. package/docs/html/functions/PrintError.html +1 -1
  48. package/docs/html/functions/ProvideErrorHandler.html +2 -1
  49. package/docs/html/functions/SimplifyHttpErrorResponse.html +1 -1
  50. package/docs/html/functions/provideAutoErrorInterception.html +1 -0
  51. package/docs/html/functions/withErrorCaptureDialogService.html +1 -0
  52. package/docs/html/hierarchy.html +1 -1
  53. package/docs/html/index.html +2 -2
  54. package/docs/html/interfaces/AngularErrorDialogData.html +2 -2
  55. package/docs/html/interfaces/AnyHttpErrorDialogData.html +8 -8
  56. package/docs/html/interfaces/CodeHttpErrorDialogData.html +8 -8
  57. package/docs/html/interfaces/ErrorHandlerOptions.html +2 -2
  58. package/docs/html/interfaces/ErrorInterceptorOptions.html +2 -2
  59. package/docs/html/interfaces/IErrorCaptureDialogService.html +2 -0
  60. package/docs/html/interfaces/IErrorDialogComponent.html +2 -2
  61. package/docs/html/interfaces/MessageHttpErrorDialogData.html +8 -8
  62. package/docs/html/interfaces/OpenApiHttpResponseErrorDialogData.html +8 -8
  63. package/docs/html/interfaces/SimplifiedHttpErrorResponse.html +2 -2
  64. package/docs/html/modules.html +1 -1
  65. package/docs/html/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.html +1 -0
  66. package/docs/html/variables/RXAP_ERROR_DIALOG_COMPONENT.html +1 -1
  67. package/docs/html/variables/RXAP_ERROR_DIALOG_DATA.html +1 -1
  68. package/docs/html/variables/RXAP_ERROR_DIALOG_ERROR.html +1 -1
  69. package/docs/html/variables/RXAP_ERROR_HANDLER_OPTIONS.html +1 -1
  70. package/docs/html/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.html +1 -1
  71. package/docs/markdown/README.md +1 -1
  72. package/docs/markdown/classes/AngularErrorComponent.md +6 -6
  73. package/docs/markdown/classes/AngularErrorService.md +5 -27
  74. package/docs/markdown/classes/AnyHttpErrorComponent.md +4 -4
  75. package/docs/markdown/classes/AnyHttpErrorService.md +5 -27
  76. package/docs/markdown/classes/CodeHttpErrorComponent.md +5 -5
  77. package/docs/markdown/classes/CodeHttpErrorService.md +5 -27
  78. package/docs/markdown/classes/ErrorCaptureDialogService.md +69 -0
  79. package/docs/markdown/classes/ErrorCaptureService.md +5 -23
  80. package/docs/markdown/classes/ErrorDialogComponent.md +10 -10
  81. package/docs/markdown/classes/MessageHttpErrorComponent.md +5 -5
  82. package/docs/markdown/classes/MessageHttpErrorService.md +5 -27
  83. package/docs/markdown/classes/OpenApiHttpResponseErrorComponent.md +4 -4
  84. package/docs/markdown/classes/OpenApiHttpResponseErrorService.md +5 -27
  85. package/docs/markdown/classes/RxapErrorHandler.md +7 -7
  86. package/docs/markdown/functions/DefaultErrorCodeExtractor.md +2 -2
  87. package/docs/markdown/functions/DefaultErrorFilter.md +2 -2
  88. package/docs/markdown/functions/ExtractContextFromError.md +2 -2
  89. package/docs/markdown/functions/ExtractError.md +2 -2
  90. package/docs/markdown/functions/ExtractExtraFromError.md +2 -2
  91. package/docs/markdown/functions/ExtractTagsFromError.md +2 -2
  92. package/docs/markdown/functions/HttpErrorInterceptor.md +2 -2
  93. package/docs/markdown/functions/PrintError.md +2 -2
  94. package/docs/markdown/functions/ProvideErrorHandler.md +9 -5
  95. package/docs/markdown/functions/SimplifyHttpErrorResponse.md +2 -2
  96. package/docs/markdown/functions/provideAutoErrorInterception.md +21 -0
  97. package/docs/markdown/functions/withErrorCaptureDialogService.md +21 -0
  98. package/docs/markdown/globals.md +8 -3
  99. package/docs/markdown/interfaces/AngularErrorDialogData.md +8 -8
  100. package/docs/markdown/interfaces/AnyHttpErrorDialogData.md +15 -15
  101. package/docs/markdown/interfaces/CodeHttpErrorDialogData.md +16 -16
  102. package/docs/markdown/interfaces/ErrorHandlerOptions.md +5 -5
  103. package/docs/markdown/interfaces/ErrorInterceptorOptions.md +4 -4
  104. package/docs/markdown/interfaces/IErrorCaptureDialogService.md +35 -0
  105. package/docs/markdown/interfaces/IErrorDialogComponent.md +3 -3
  106. package/docs/markdown/interfaces/MessageHttpErrorDialogData.md +15 -15
  107. package/docs/markdown/interfaces/OpenApiHttpResponseErrorDialogData.md +18 -18
  108. package/docs/markdown/interfaces/SimplifiedHttpErrorResponse.md +12 -12
  109. package/docs/markdown/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +11 -0
  110. package/docs/markdown/variables/RXAP_ERROR_DIALOG_COMPONENT.md +2 -2
  111. package/docs/markdown/variables/RXAP_ERROR_DIALOG_DATA.md +2 -2
  112. package/docs/markdown/variables/RXAP_ERROR_DIALOG_ERROR.md +2 -2
  113. package/docs/markdown/variables/RXAP_ERROR_HANDLER_OPTIONS.md +2 -2
  114. package/docs/markdown/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.md +2 -2
  115. package/docs/wiki/Class.AngularErrorComponent.md +5 -5
  116. package/docs/wiki/Class.AngularErrorService.md +4 -26
  117. package/docs/wiki/Class.AnyHttpErrorComponent.md +3 -3
  118. package/docs/wiki/Class.AnyHttpErrorService.md +4 -26
  119. package/docs/wiki/Class.CodeHttpErrorComponent.md +4 -4
  120. package/docs/wiki/Class.CodeHttpErrorService.md +4 -26
  121. package/docs/wiki/Class.ErrorCaptureDialogService.md +65 -0
  122. package/docs/wiki/Class.ErrorCaptureService.md +4 -22
  123. package/docs/wiki/Class.ErrorDialogComponent.md +9 -9
  124. package/docs/wiki/Class.MessageHttpErrorComponent.md +4 -4
  125. package/docs/wiki/Class.MessageHttpErrorService.md +4 -26
  126. package/docs/wiki/Class.OpenApiHttpResponseErrorComponent.md +3 -3
  127. package/docs/wiki/Class.OpenApiHttpResponseErrorService.md +4 -26
  128. package/docs/wiki/Class.RxapErrorHandler.md +6 -6
  129. package/docs/wiki/Function.DefaultErrorCodeExtractor.md +1 -1
  130. package/docs/wiki/Function.DefaultErrorFilter.md +1 -1
  131. package/docs/wiki/Function.ExtractContextFromError.md +1 -1
  132. package/docs/wiki/Function.ExtractError.md +1 -1
  133. package/docs/wiki/Function.ExtractExtraFromError.md +1 -1
  134. package/docs/wiki/Function.ExtractTagsFromError.md +1 -1
  135. package/docs/wiki/Function.HttpErrorInterceptor.md +1 -1
  136. package/docs/wiki/Function.PrintError.md +1 -1
  137. package/docs/wiki/Function.ProvideErrorHandler.md +8 -4
  138. package/docs/wiki/Function.SimplifyHttpErrorResponse.md +1 -1
  139. package/docs/wiki/Function.provideAutoErrorInterception.md +17 -0
  140. package/docs/wiki/Function.withErrorCaptureDialogService.md +17 -0
  141. package/docs/wiki/Interface.AngularErrorDialogData.md +7 -7
  142. package/docs/wiki/Interface.AnyHttpErrorDialogData.md +14 -14
  143. package/docs/wiki/Interface.CodeHttpErrorDialogData.md +15 -15
  144. package/docs/wiki/Interface.ErrorHandlerOptions.md +4 -4
  145. package/docs/wiki/Interface.ErrorInterceptorOptions.md +3 -3
  146. package/docs/wiki/Interface.IErrorCaptureDialogService.md +31 -0
  147. package/docs/wiki/Interface.IErrorDialogComponent.md +2 -2
  148. package/docs/wiki/Interface.MessageHttpErrorDialogData.md +14 -14
  149. package/docs/wiki/Interface.OpenApiHttpResponseErrorDialogData.md +17 -17
  150. package/docs/wiki/Interface.SimplifiedHttpErrorResponse.md +11 -11
  151. package/docs/wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +7 -0
  152. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT.md +1 -1
  153. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DATA.md +1 -1
  154. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_ERROR.md +1 -1
  155. package/docs/wiki/Variable.RXAP_ERROR_HANDLER_OPTIONS.md +1 -1
  156. package/docs/wiki/Variable.RXAP_ERROR_INTERCEPTOR_OPTIONS.md +1 -1
  157. package/docs/wiki/_Sidebar.md +5 -0
  158. package/docs/wiki/globals.md +7 -2
  159. package/fesm2022/rxap-ngx-error.mjs +81 -39
  160. package/fesm2022/rxap-ngx-error.mjs.map +1 -1
  161. package/index.d.ts +2 -0
  162. package/lib/error-capture-dialog.service.d.ts +15 -0
  163. package/lib/error-capture.service.d.ts +1 -3
  164. package/lib/error-handler.d.ts +1 -2
  165. package/lib/provide.d.ts +9 -0
  166. package/lib/tokens.d.ts +2 -0
  167. package/package.json +29 -33
@@ -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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/open-api-http-response-error/open-api-http-response-error-dialog-data.ts#L4)
5
+ Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:4](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L8)
17
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:8](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L10)
29
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:10](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L17)
41
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:17](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L11)
55
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:11](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/open-api-http-response-error/open-api-http-response-error-dialog-data.ts#L5)
67
+ Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:5](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L7)
75
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:7](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L12)
87
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:12](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L35)
99
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:35](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/open-api-http-response-error/open-api-http-response-error-dialog-data.ts#L6)
113
+ Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:6](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/open-api-http-response-error/open-api-http-response-error-dialog-data.ts#L7)
121
+ Defined in: [open-api-http-response-error/open-api-http-response-error-dialog-data.ts:7](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L9)
129
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:9](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L21)
141
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:21](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L27)
155
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:27](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L13)
171
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:13](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L39)
183
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:39](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L31)
197
+ Defined in: [any-http-error/any-http-error-dialog-data.ts:31](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L6)
5
+ Defined in: [utilities.ts:6](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b17
18
18
 
19
19
  > **error**: `any`
20
20
 
21
- Defined in: [utilities.ts:13](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L13)
21
+ Defined in: [utilities.ts:13](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b1
26
26
 
27
27
  > **errorMessage**: `string`
28
28
 
29
- Defined in: [utilities.ts:14](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L14)
29
+ Defined in: [utilities.ts:14](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b1
34
34
 
35
35
  > **headers**: `Record`\<`string`, `string`[]\>
36
36
 
37
- Defined in: [utilities.ts:12](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L12)
37
+ Defined in: [utilities.ts:12](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b1
42
42
 
43
43
  > **message**: `string`
44
44
 
45
- Defined in: [utilities.ts:8](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L8)
45
+ Defined in: [utilities.ts:8](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b17
50
50
 
51
51
  > **name**: `string`
52
52
 
53
- Defined in: [utilities.ts:9](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L9)
53
+ Defined in: [utilities.ts:9](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b17
58
58
 
59
59
  > **ok**: `boolean`
60
60
 
61
- Defined in: [utilities.ts:15](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L15)
61
+ Defined in: [utilities.ts:15](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b1
66
66
 
67
67
  > **status**: `number`
68
68
 
69
- Defined in: [utilities.ts:10](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L10)
69
+ Defined in: [utilities.ts:10](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b1
74
74
 
75
75
  > **statusText**: `string`
76
76
 
77
- Defined in: [utilities.ts:11](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L11)
77
+ Defined in: [utilities.ts:11](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b1
82
82
 
83
83
  > **type**: `ResponseHeader` \| `Response`
84
84
 
85
- Defined in: [utilities.ts:16](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L16)
85
+ Defined in: [utilities.ts:16](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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/e4552670b1
90
90
 
91
91
  > **url**: `null` \| `string`
92
92
 
93
- Defined in: [utilities.ts:7](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/utilities.ts#L7)
93
+ Defined in: [utilities.ts:7](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/packages/angular/error/src/lib/utilities.ts#L7)
@@ -0,0 +1,7 @@
1
+ [@rxap/ngx-error](../wiki/globals) / RXAP\_ERROR\_CAPTURE\_DIALOG\_SERVICE
2
+
3
+ # Variable: RXAP\_ERROR\_CAPTURE\_DIALOG\_SERVICE
4
+
5
+ > `const` **RXAP\_ERROR\_CAPTURE\_DIALOG\_SERVICE**: `InjectionToken`\<[`IErrorCaptureDialogService`](../wiki/Interface.IErrorCaptureDialogService)\<`any`\>\>
6
+
7
+ Defined in: [tokens.ts:20](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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:13](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/tokens.ts#L13)
7
+ Defined in: [tokens.ts:14](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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:9](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/tokens.ts#L9)
7
+ Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/packages/angular/error/src/lib/tokens.ts#L10)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_ERROR\_DIALOG\_ERROR**: `InjectionToken`\<`any`\>
6
6
 
7
- Defined in: [tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/tokens.ts#L11)
7
+ Defined in: [tokens.ts:12](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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:41](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/error-handler.ts#L41)
7
+ Defined in: [error-handler.ts:40](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/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:16](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/error/src/lib/tokens.ts#L16)
7
+ Defined in: [tokens.ts:17](https://gitlab.com/rxap/packages/-/blob/aec96d46d5691c4abf4090b94f7f0dc433e247d4/packages/angular/error/src/lib/tokens.ts#L17)
@@ -8,6 +8,7 @@
8
8
  - [AnyHttpErrorService](../wiki/Class.AnyHttpErrorService)
9
9
  - [CodeHttpErrorComponent](../wiki/Class.CodeHttpErrorComponent)
10
10
  - [CodeHttpErrorService](../wiki/Class.CodeHttpErrorService)
11
+ - [ErrorCaptureDialogService](../wiki/Class.ErrorCaptureDialogService)
11
12
  - [ErrorCaptureService](../wiki/Class.ErrorCaptureService)
12
13
  - [ErrorDialogComponent](../wiki/Class.ErrorDialogComponent)
13
14
  - [MessageHttpErrorComponent](../wiki/Class.MessageHttpErrorComponent)
@@ -23,6 +24,7 @@
23
24
  - [CodeHttpErrorDialogData](../wiki/Interface.CodeHttpErrorDialogData)
24
25
  - [ErrorHandlerOptions](../wiki/Interface.ErrorHandlerOptions)
25
26
  - [ErrorInterceptorOptions](../wiki/Interface.ErrorInterceptorOptions)
27
+ - [IErrorCaptureDialogService](../wiki/Interface.IErrorCaptureDialogService)
26
28
  - [IErrorDialogComponent](../wiki/Interface.IErrorDialogComponent)
27
29
  - [MessageHttpErrorDialogData](../wiki/Interface.MessageHttpErrorDialogData)
28
30
  - [OpenApiHttpResponseErrorDialogData](../wiki/Interface.OpenApiHttpResponseErrorDialogData)
@@ -30,6 +32,7 @@
30
32
 
31
33
  ### Variables
32
34
 
35
+ - [RXAP_ERROR_CAPTURE_DIALOG_SERVICE](../wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE)
33
36
  - [RXAP_ERROR_DIALOG_COMPONENT](../wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT)
34
37
  - [RXAP_ERROR_DIALOG_DATA](../wiki/Variable.RXAP_ERROR_DIALOG_DATA)
35
38
  - [RXAP_ERROR_DIALOG_ERROR](../wiki/Variable.RXAP_ERROR_DIALOG_ERROR)
@@ -46,5 +49,7 @@
46
49
  - [ExtractTagsFromError](../wiki/Function.ExtractTagsFromError)
47
50
  - [HttpErrorInterceptor](../wiki/Function.HttpErrorInterceptor)
48
51
  - [PrintError](../wiki/Function.PrintError)
52
+ - [provideAutoErrorInterception](../wiki/Function.provideAutoErrorInterception)
49
53
  - [ProvideErrorHandler](../wiki/Function.ProvideErrorHandler)
50
54
  - [SimplifyHttpErrorResponse](../wiki/Function.SimplifyHttpErrorResponse)
55
+ - [withErrorCaptureDialogService](../wiki/Function.withErrorCaptureDialogService)
@@ -1,4 +1,4 @@
1
- # @rxap/ngx-error v19.0.4-dev.0
1
+ # @rxap/ngx-error v19.1.0-dev.1
2
2
 
3
3
  ## Classes
4
4
 
@@ -8,6 +8,7 @@
8
8
  - [AnyHttpErrorService](../wiki/Class.AnyHttpErrorService)
9
9
  - [CodeHttpErrorComponent](../wiki/Class.CodeHttpErrorComponent)
10
10
  - [CodeHttpErrorService](../wiki/Class.CodeHttpErrorService)
11
+ - [ErrorCaptureDialogService](../wiki/Class.ErrorCaptureDialogService)
11
12
  - [ErrorCaptureService](../wiki/Class.ErrorCaptureService)
12
13
  - [ErrorDialogComponent](../wiki/Class.ErrorDialogComponent)
13
14
  - [MessageHttpErrorComponent](../wiki/Class.MessageHttpErrorComponent)
@@ -23,6 +24,7 @@
23
24
  - [CodeHttpErrorDialogData](../wiki/Interface.CodeHttpErrorDialogData)
24
25
  - [ErrorHandlerOptions](../wiki/Interface.ErrorHandlerOptions)
25
26
  - [ErrorInterceptorOptions](../wiki/Interface.ErrorInterceptorOptions)
27
+ - [IErrorCaptureDialogService](../wiki/Interface.IErrorCaptureDialogService)
26
28
  - [IErrorDialogComponent](../wiki/Interface.IErrorDialogComponent)
27
29
  - [MessageHttpErrorDialogData](../wiki/Interface.MessageHttpErrorDialogData)
28
30
  - [OpenApiHttpResponseErrorDialogData](../wiki/Interface.OpenApiHttpResponseErrorDialogData)
@@ -30,6 +32,7 @@
30
32
 
31
33
  ## Variables
32
34
 
35
+ - [RXAP\_ERROR\_CAPTURE\_DIALOG\_SERVICE](../wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE)
33
36
  - [RXAP\_ERROR\_DIALOG\_COMPONENT](../wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT)
34
37
  - [RXAP\_ERROR\_DIALOG\_DATA](../wiki/Variable.RXAP_ERROR_DIALOG_DATA)
35
38
  - [RXAP\_ERROR\_DIALOG\_ERROR](../wiki/Variable.RXAP_ERROR_DIALOG_ERROR)
@@ -46,5 +49,7 @@
46
49
  - [ExtractTagsFromError](../wiki/Function.ExtractTagsFromError)
47
50
  - [HttpErrorInterceptor](../wiki/Function.HttpErrorInterceptor)
48
51
  - [PrintError](../wiki/Function.PrintError)
49
- - [ProvideErrorHandler](../wiki/Function.ProvideErrorHandler)
52
+ - [provideAutoErrorInterception](../wiki/Function.provideAutoErrorInterception)
53
+ - [~~ProvideErrorHandler~~](../wiki/Function.ProvideErrorHandler)
50
54
  - [SimplifyHttpErrorResponse](../wiki/Function.SimplifyHttpErrorResponse)
55
+ - [withErrorCaptureDialogService](../wiki/Function.withErrorCaptureDialogService)
@@ -1,12 +1,12 @@
1
1
  import * as i1 from '@angular/common';
2
- import { CommonModule, NgIf, NgClass, NgForOf, DatePipe, KeyValuePipe, JsonPipe } from '@angular/common';
2
+ import { CommonModule, NgIf, NgClass, NgForOf, DOCUMENT, DatePipe, KeyValuePipe, JsonPipe } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
4
  import { InjectionToken, inject, Component, ChangeDetectionStrategy, signal, computed, EventEmitter, INJECTOR, Injector, ViewChild, Output, ApplicationRef, 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';
8
8
  import { RXAP_ENVIRONMENT, IsNotReleaseVersion } from '@rxap/environment';
9
- import { take } from 'rxjs';
9
+ import { 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';
@@ -19,6 +19,7 @@ const RXAP_ERROR_DIALOG_DATA = new InjectionToken('rxap/error/dialog-data');
19
19
  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
+ const RXAP_ERROR_CAPTURE_DIALOG_SERVICE = new InjectionToken('rxap/error/capture-dialog-service');
22
23
 
23
24
  class OpenApiHttpResponseErrorComponent {
24
25
  constructor() {
@@ -71,7 +72,7 @@ class ErrorDialogComponent {
71
72
  this.closeDialog.emit();
72
73
  }
73
74
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ErrorDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
74
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", 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 <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\">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\">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"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
75
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", 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 <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"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
75
76
  }
76
77
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ErrorDialogComponent, decorators: [{
77
78
  type: Component,
@@ -80,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
80
81
  NgClass,
81
82
  NgForOf,
82
83
  PortalModule,
83
- ], 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\">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\">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"] }]
84
+ ], 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"] }]
84
85
  }], propDecorators: { dialog: [{
85
86
  type: ViewChild,
86
87
  args: ['dialog', { static: true }]
@@ -88,30 +89,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
88
89
  type: Output
89
90
  }] } });
90
91
 
91
- class ErrorCaptureService {
92
+ class ErrorCaptureDialogService {
92
93
  constructor() {
93
94
  this.applicationRef = inject(ApplicationRef);
94
- this.errorList = [];
95
+ this.document = inject(DOCUMENT);
95
96
  }
96
- push(error) {
97
- if (this.errorList.length) {
98
- const last = this.errorList[this.errorList.length - 1];
99
- const value = last();
100
- if (value.some(e => this.compare(e, error))) {
101
- last.update(value => {
102
- value.push(error);
103
- return value.slice();
104
- });
105
- return;
106
- }
107
- }
108
- const newList = signal([error]);
109
- this.errorList.push(newList);
110
- this.openDialog(newList);
111
- }
112
- openDialog(errorList) {
113
- const body = document.getElementsByTagName('body')[0];
114
- const div = document.createElement('div');
97
+ open(component, errorList) {
98
+ const body = this.document.getElementsByTagName('body')[0];
99
+ const div = this.document.createElement('div');
115
100
  body.appendChild(div);
116
101
  const componentRef = createComponent(ErrorDialogComponent, {
117
102
  hostElement: div,
@@ -124,18 +109,54 @@ class ErrorCaptureService {
124
109
  },
125
110
  {
126
111
  provide: RXAP_ERROR_DIALOG_COMPONENT,
127
- useValue: this.component,
112
+ useValue: component,
128
113
  },
129
114
  ],
130
115
  }),
131
116
  });
132
117
  this.applicationRef.attachView(componentRef.hostView);
133
- componentRef.instance.closeDialog.pipe(take(1), tap(() => {
134
- componentRef.destroy();
135
- body.removeChild(div);
136
- div.remove();
137
- this.errorList.splice(this.errorList.indexOf(errorList), 1);
138
- })).subscribe();
118
+ return new Observable(subscriber => {
119
+ const subscription = componentRef.instance.closeDialog.pipe(take(1), tap(() => {
120
+ subscriber.next();
121
+ subscriber.complete();
122
+ }), finalize(() => {
123
+ componentRef.destroy();
124
+ body.removeChild(div);
125
+ div.remove();
126
+ })).subscribe();
127
+ return () => {
128
+ subscription.unsubscribe();
129
+ };
130
+ });
131
+ }
132
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ErrorCaptureDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
133
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ErrorCaptureDialogService, providedIn: 'root' }); }
134
+ }
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ErrorCaptureDialogService, decorators: [{
136
+ type: Injectable,
137
+ args: [{ providedIn: 'root' }]
138
+ }] });
139
+
140
+ class ErrorCaptureService {
141
+ constructor() {
142
+ this.errorCaptureDialogService = inject(RXAP_ERROR_CAPTURE_DIALOG_SERVICE, { optional: true }) ?? inject(ErrorCaptureDialogService);
143
+ this.errorList = [];
144
+ }
145
+ push(error) {
146
+ if (this.errorList.length) {
147
+ const last = this.errorList[this.errorList.length - 1];
148
+ const value = last();
149
+ if (value.some(e => this.compare(e, error))) {
150
+ last.update(value => {
151
+ value.push(error);
152
+ return value.slice();
153
+ });
154
+ return;
155
+ }
156
+ }
157
+ const newList = signal([error]);
158
+ this.errorList.push(newList);
159
+ this.errorCaptureDialogService.open(this.component, newList);
139
160
  }
140
161
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ErrorCaptureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
141
162
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: ErrorCaptureService }); }
@@ -496,12 +517,6 @@ class RxapErrorHandler {
496
517
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: RxapErrorHandler, decorators: [{
497
518
  type: Injectable
498
519
  }] });
499
- function ProvideErrorHandler() {
500
- return {
501
- provide: ErrorHandler,
502
- useClass: RxapErrorHandler,
503
- };
504
- }
505
520
 
506
521
  function DefaultErrorCodeExtractor(error) {
507
522
  return error.error?.code ?? null;
@@ -571,6 +586,33 @@ function HttpErrorInterceptor(req, next) {
571
586
  }));
572
587
  }
573
588
 
589
+ function provideAutoErrorInterception(...providers) {
590
+ return [
591
+ {
592
+ provide: ErrorHandler,
593
+ useClass: RxapErrorHandler,
594
+ },
595
+ ...providers,
596
+ ];
597
+ }
598
+ function withErrorCaptureDialogService(service) {
599
+ return {
600
+ provide: RXAP_ERROR_CAPTURE_DIALOG_SERVICE,
601
+ useClass: service,
602
+ };
603
+ }
604
+ /**
605
+ * @deprecated Use `provideAutoErrorInterception` instead.
606
+ */
607
+ function ProvideErrorHandler() {
608
+ return [
609
+ {
610
+ provide: ErrorHandler,
611
+ useClass: RxapErrorHandler,
612
+ }
613
+ ];
614
+ }
615
+
574
616
  // region open-api-http-response-error
575
617
  // endregion
576
618
 
@@ -578,5 +620,5 @@ function HttpErrorInterceptor(req, next) {
578
620
  * Generated bundle index. Do not edit.
579
621
  */
580
622
 
581
- export { AngularErrorComponent, AngularErrorService, AnyHttpErrorComponent, AnyHttpErrorService, CodeHttpErrorComponent, CodeHttpErrorService, DefaultErrorCodeExtractor, DefaultErrorFilter, ErrorCaptureService, ErrorDialogComponent, ExtractContextFromError, ExtractError, ExtractExtraFromError, ExtractTagsFromError, HttpErrorInterceptor, MessageHttpErrorComponent, MessageHttpErrorService, OpenApiHttpResponseErrorComponent, OpenApiHttpResponseErrorService, PrintError, ProvideErrorHandler, RXAP_ERROR_DIALOG_COMPONENT, RXAP_ERROR_DIALOG_DATA, RXAP_ERROR_DIALOG_ERROR, RXAP_ERROR_HANDLER_OPTIONS, RXAP_ERROR_INTERCEPTOR_OPTIONS, RxapErrorHandler, SimplifyHttpErrorResponse };
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 };
582
624
  //# sourceMappingURL=rxap-ngx-error.mjs.map