@rxap/ngx-error 19.0.3 → 19.1.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +8 -8
  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 +10 -15
  13. package/compodoc/interfaces/ErrorHandlerOptions.html +2 -7
  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 +1809 -1569
  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 +120 -78
  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 +36 -40
@@ -139,11 +139,17 @@
139
139
  <a href="#PrintError" title="src/lib/utilities.ts" ><b>PrintError</b>&nbsp;&nbsp;&nbsp;(src/.../utilities.ts)</a>
140
140
  </li>
141
141
  <li>
142
- <a href="#ProvideErrorHandler" title="src/lib/error-handler.ts" ><b>ProvideErrorHandler</b>&nbsp;&nbsp;&nbsp;(src/.../error-handler.ts)</a>
142
+ <a href="#provideAutoErrorInterception" title="src/lib/provide.ts" ><b>provideAutoErrorInterception</b>&nbsp;&nbsp;&nbsp;(src/.../provide.ts)</a>
143
+ </li>
144
+ <li>
145
+ <a href="#ProvideErrorHandler" title="src/lib/provide.ts" class="deprecated-name"><b>ProvideErrorHandler</b>&nbsp;&nbsp;&nbsp;(src/.../provide.ts)</a>
143
146
  </li>
144
147
  <li>
145
148
  <a href="#SimplifyHttpErrorResponse" title="src/lib/utilities.ts" ><b>SimplifyHttpErrorResponse</b>&nbsp;&nbsp;&nbsp;(src/.../utilities.ts)</a>
146
149
  </li>
150
+ <li>
151
+ <a href="#withErrorCaptureDialogService" title="src/lib/provide.ts" ><b>withErrorCaptureDialogService</b>&nbsp;&nbsp;&nbsp;(src/.../provide.ts)</a>
152
+ </li>
147
153
  </ul>
148
154
  </td>
149
155
  </tr>
@@ -731,19 +737,78 @@
731
737
  </tr>
732
738
  </tbody>
733
739
  </table>
734
- </section> <h3>src/lib/error-handler.ts</h3>
740
+ </section> <h3>src/lib/provide.ts</h3>
735
741
  <section data-compodoc="block-methods">
736
742
  <h3></h3> <table class="table table-sm table-bordered">
743
+ <tbody>
744
+ <tr>
745
+ <td class="col-md-4">
746
+ <a name="provideAutoErrorInterception"></a>
747
+ <span class="name">
748
+ <span ><b>provideAutoErrorInterception</b></span>
749
+ <a href="#provideAutoErrorInterception"><span class="icon ion-ios-link"></span></a>
750
+ </span>
751
+ </td>
752
+ </tr>
753
+ <tr>
754
+ <td class="col-md-4">
755
+ <code>provideAutoErrorInterception(...providers: Array)</code>
756
+ </td>
757
+ </tr>
758
+
759
+
760
+
761
+
762
+ <tr>
763
+ <td class="col-md-4">
764
+
765
+ <div class="io-description">
766
+ <b>Parameters :</b>
767
+
768
+ <table class="params">
769
+ <thead>
770
+ <tr>
771
+ <td>Name</td>
772
+ <td>Type</td>
773
+ <td>Optional</td>
774
+ </tr>
775
+ </thead>
776
+ <tbody>
777
+ <tr>
778
+ <td>providers</td>
779
+ <td>
780
+ <code>Array</code>
781
+ </td>
782
+
783
+ <td>
784
+ No
785
+ </td>
786
+
787
+
788
+ </tr>
789
+ </tbody>
790
+ </table>
791
+ </div>
792
+ </td>
793
+ </tr>
794
+ </tbody>
795
+ </table>
796
+ <table class="table table-sm table-bordered">
737
797
  <tbody>
738
798
  <tr>
739
799
  <td class="col-md-4">
740
800
  <a name="ProvideErrorHandler"></a>
741
801
  <span class="name">
742
- <span ><b>ProvideErrorHandler</b></span>
802
+ <span class="deprecated-name"><b>ProvideErrorHandler</b></span>
743
803
  <a href="#ProvideErrorHandler"><span class="icon ion-ios-link"></span></a>
744
804
  </span>
745
805
  </td>
746
806
  </tr>
807
+ <tr>
808
+ <td class="col-md-4 deprecated">
809
+ Use `provideAutoErrorInterception` instead.
810
+ </td>
811
+ </tr>
747
812
  <tr>
748
813
  <td class="col-md-4">
749
814
  <code>ProvideErrorHandler()</code>
@@ -757,13 +822,74 @@
757
822
  <td class="col-md-4">
758
823
 
759
824
  <div class="io-description">
760
- <b>Returns : </b> <code>StaticProvider</code>
825
+ <b>Returns : </b> <code>Array&lt;Provider | EnvironmentProviders&gt;</code>
761
826
 
762
827
  </div>
763
828
  </td>
764
829
  </tr>
765
830
  </tbody>
766
831
  </table>
832
+ <table class="table table-sm table-bordered">
833
+ <tbody>
834
+ <tr>
835
+ <td class="col-md-4">
836
+ <a name="withErrorCaptureDialogService"></a>
837
+ <span class="name">
838
+ <span ><b>withErrorCaptureDialogService</b></span>
839
+ <a href="#withErrorCaptureDialogService"><span class="icon ion-ios-link"></span></a>
840
+ </span>
841
+ </td>
842
+ </tr>
843
+ <tr>
844
+ <td class="col-md-4">
845
+ <code>withErrorCaptureDialogService(service: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Constructor" target="_blank">Constructor</a>)</code>
846
+ </td>
847
+ </tr>
848
+
849
+
850
+
851
+
852
+ <tr>
853
+ <td class="col-md-4">
854
+
855
+ <div class="io-description">
856
+ <b>Parameters :</b>
857
+
858
+ <table class="params">
859
+ <thead>
860
+ <tr>
861
+ <td>Name</td>
862
+ <td>Type</td>
863
+ <td>Optional</td>
864
+ </tr>
865
+ </thead>
866
+ <tbody>
867
+ <tr>
868
+ <td>service</td>
869
+ <td>
870
+ <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Constructor" target="_blank" >Constructor</a></code>
871
+ </td>
872
+
873
+ <td>
874
+ No
875
+ </td>
876
+
877
+
878
+ </tr>
879
+ </tbody>
880
+ </table>
881
+ </div>
882
+ <div class="io-description">
883
+ <b>Returns : </b> <code>Provider</code>
884
+
885
+ </div>
886
+ <div class="io-description">
887
+
888
+ </div>
889
+ </td>
890
+ </tr>
891
+ </tbody>
892
+ </table>
767
893
  </section>
768
894
 
769
895
 
@@ -111,6 +111,9 @@
111
111
  <tr>
112
112
  <td class="col-md-4">
113
113
  <ul class="index-list">
114
+ <li>
115
+ <a href="#RXAP_ERROR_CAPTURE_DIALOG_SERVICE" title="src/lib/tokens.ts" ><b>RXAP_ERROR_CAPTURE_DIALOG_SERVICE</b>&nbsp;&nbsp;&nbsp;(src/.../tokens.ts)</a>
116
+ </li>
114
117
  <li>
115
118
  <a href="#RXAP_ERROR_DIALOG_COMPONENT" title="src/lib/tokens.ts" ><b>RXAP_ERROR_DIALOG_COMPONENT</b>&nbsp;&nbsp;&nbsp;(src/.../tokens.ts)</a>
116
119
  </li>
@@ -139,6 +142,26 @@
139
142
  <h3>src/lib/tokens.ts</h3>
140
143
  <section data-compodoc="block-properties">
141
144
  <h3></h3> <table class="table table-sm table-bordered">
145
+ <tbody>
146
+ <tr>
147
+ <td class="col-md-4">
148
+ <a name="RXAP_ERROR_CAPTURE_DIALOG_SERVICE"></a>
149
+ <span class="name">
150
+ <span ><b>RXAP_ERROR_CAPTURE_DIALOG_SERVICE</b></span>
151
+ <a href="#RXAP_ERROR_CAPTURE_DIALOG_SERVICE"><span class="icon ion-ios-link"></span></a>
152
+ </span>
153
+ </td>
154
+ </tr>
155
+ <tr>
156
+ <td class="col-md-4">
157
+ <i>Default value : </i><code>new InjectionToken&lt;IErrorCaptureDialogService&gt;(&#x27;rxap/error/capture-dialog-service&#x27;)</code>
158
+ </td>
159
+ </tr>
160
+
161
+
162
+ </tbody>
163
+ </table>
164
+ <table class="table table-sm table-bordered">
142
165
  <tbody>
143
166
  <tr>
144
167
  <td class="col-md-4">
@@ -101,7 +101,7 @@
101
101
  <div class="card text-center">
102
102
  <div class="card-block">
103
103
  <h4 class="card-title"><span class="icon ion-md-arrow-round-down"></span></h4>
104
- <p class="card-text">7 Injectables</p>
104
+ <p class="card-text">8 Injectables</p>
105
105
  </div>
106
106
  </div>
107
107
  </div>
@@ -109,7 +109,7 @@
109
109
  <div class="card text-center">
110
110
  <div class="card-block">
111
111
  <h4 class="card-title"><span class="icon ion-md-information-circle-outline"></span></h4>
112
- <p class="card-text">9 Interfaces</p>
112
+ <p class="card-text">10 Interfaces</p>
113
113
  </div>
114
114
  </div>
115
115
  </div>
@@ -102,7 +102,7 @@
102
102
  </ol>
103
103
  <ul class="properties-list">
104
104
  <li>
105
- <b>Version</b> : 19.0.3</li>
105
+ <b>Version</b> : 19.1.0-dev.0</li>
106
106
  <li>
107
107
  <b>Description</b> : This package provides a comprehensive error handling solution for Angular applications, including interceptors, services, and UI components to display different types of errors in a user-friendly dialog. It supports handling of generic errors, HTTP errors with messages or codes, and OpenAPI HTTP response errors, with customizable options for logging, displaying dialogs, and integrating with Sentry. The package aims to simplify error management and improve the user experience by providing clear and informative error messages.
108
108
  </li>