@rxap/ngx-error 19.2.0 → 19.3.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 (150) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/compodoc/changelog.html +41 -0
  3. package/compodoc/dependencies.html +5 -5
  4. package/compodoc/injectables/RxapErrorHandler.html +30 -6
  5. package/compodoc/interfaces/ErrorHandlerOptions.html +24 -0
  6. package/compodoc/js/search/search_index.js +2 -2
  7. package/compodoc/properties.html +1 -1
  8. package/docs/documentation.json +419 -419
  9. package/docs/html/classes/AngularErrorComponent.html +2 -2
  10. package/docs/html/classes/AngularErrorService.html +2 -2
  11. package/docs/html/classes/AnyHttpErrorComponent.html +2 -2
  12. package/docs/html/classes/AnyHttpErrorService.html +2 -2
  13. package/docs/html/classes/CodeHttpErrorComponent.html +2 -2
  14. package/docs/html/classes/CodeHttpErrorService.html +2 -2
  15. package/docs/html/classes/ErrorCaptureDialogService.html +2 -2
  16. package/docs/html/classes/ErrorCaptureService.html +2 -2
  17. package/docs/html/classes/ErrorDialogComponent.html +3 -3
  18. package/docs/html/classes/MessageHttpErrorComponent.html +2 -2
  19. package/docs/html/classes/MessageHttpErrorService.html +2 -2
  20. package/docs/html/classes/OpenApiHttpResponseErrorComponent.html +2 -2
  21. package/docs/html/classes/OpenApiHttpResponseErrorService.html +2 -2
  22. package/docs/html/classes/RxapErrorHandler.html +3 -3
  23. package/docs/html/functions/DefaultErrorCodeExtractor.html +1 -1
  24. package/docs/html/functions/DefaultErrorFilter.html +1 -1
  25. package/docs/html/functions/ExtractContextFromError.html +1 -1
  26. package/docs/html/functions/ExtractError.html +1 -1
  27. package/docs/html/functions/ExtractExtraFromError.html +1 -1
  28. package/docs/html/functions/ExtractTagsFromError.html +1 -1
  29. package/docs/html/functions/HttpErrorInterceptor.html +1 -1
  30. package/docs/html/functions/PrintError.html +1 -1
  31. package/docs/html/functions/ProvideErrorHandler.html +2 -2
  32. package/docs/html/functions/SimplifyHttpErrorResponse.html +1 -1
  33. package/docs/html/functions/provideAutoErrorInterception.html +1 -1
  34. package/docs/html/functions/withErrorCaptureDialogDisabledIf.html +1 -1
  35. package/docs/html/functions/withErrorCaptureDialogService.html +1 -1
  36. package/docs/html/hierarchy.html +1 -1
  37. package/docs/html/index.html +2 -2
  38. package/docs/html/interfaces/AngularErrorDialogData.html +2 -2
  39. package/docs/html/interfaces/AnyHttpErrorDialogData.html +8 -8
  40. package/docs/html/interfaces/CodeHttpErrorDialogData.html +8 -8
  41. package/docs/html/interfaces/ErrorHandlerOptions.html +2 -2
  42. package/docs/html/interfaces/ErrorInterceptorOptions.html +2 -2
  43. package/docs/html/interfaces/IErrorCaptureDialogService.html +2 -2
  44. package/docs/html/interfaces/IErrorDialogComponent.html +2 -2
  45. package/docs/html/interfaces/MessageHttpErrorDialogData.html +8 -8
  46. package/docs/html/interfaces/OpenApiHttpResponseErrorDialogData.html +8 -8
  47. package/docs/html/interfaces/SimplifiedHttpErrorResponse.html +2 -2
  48. package/docs/html/modules.html +1 -1
  49. package/docs/html/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.html +1 -1
  50. package/docs/html/variables/RXAP_ERROR_DIALOG_COMPONENT.html +1 -1
  51. package/docs/html/variables/RXAP_ERROR_DIALOG_DATA.html +1 -1
  52. package/docs/html/variables/RXAP_ERROR_DIALOG_DISABLED.html +1 -1
  53. package/docs/html/variables/RXAP_ERROR_DIALOG_ERROR.html +1 -1
  54. package/docs/html/variables/RXAP_ERROR_HANDLER_OPTIONS.html +1 -1
  55. package/docs/html/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.html +1 -1
  56. package/docs/markdown/README.md +1 -1
  57. package/docs/markdown/classes/AngularErrorComponent.md +6 -6
  58. package/docs/markdown/classes/AngularErrorService.md +5 -5
  59. package/docs/markdown/classes/AnyHttpErrorComponent.md +4 -4
  60. package/docs/markdown/classes/AnyHttpErrorService.md +5 -5
  61. package/docs/markdown/classes/CodeHttpErrorComponent.md +5 -5
  62. package/docs/markdown/classes/CodeHttpErrorService.md +5 -5
  63. package/docs/markdown/classes/ErrorCaptureDialogService.md +6 -6
  64. package/docs/markdown/classes/ErrorCaptureService.md +5 -5
  65. package/docs/markdown/classes/ErrorDialogComponent.md +10 -10
  66. package/docs/markdown/classes/MessageHttpErrorComponent.md +5 -5
  67. package/docs/markdown/classes/MessageHttpErrorService.md +5 -5
  68. package/docs/markdown/classes/OpenApiHttpResponseErrorComponent.md +4 -4
  69. package/docs/markdown/classes/OpenApiHttpResponseErrorService.md +5 -5
  70. package/docs/markdown/classes/RxapErrorHandler.md +7 -7
  71. package/docs/markdown/functions/DefaultErrorCodeExtractor.md +2 -2
  72. package/docs/markdown/functions/DefaultErrorFilter.md +2 -2
  73. package/docs/markdown/functions/ExtractContextFromError.md +2 -2
  74. package/docs/markdown/functions/ExtractError.md +2 -2
  75. package/docs/markdown/functions/ExtractExtraFromError.md +2 -2
  76. package/docs/markdown/functions/ExtractTagsFromError.md +2 -2
  77. package/docs/markdown/functions/HttpErrorInterceptor.md +2 -2
  78. package/docs/markdown/functions/PrintError.md +2 -2
  79. package/docs/markdown/functions/ProvideErrorHandler.md +2 -2
  80. package/docs/markdown/functions/SimplifyHttpErrorResponse.md +2 -2
  81. package/docs/markdown/functions/provideAutoErrorInterception.md +2 -2
  82. package/docs/markdown/functions/withErrorCaptureDialogDisabledIf.md +2 -2
  83. package/docs/markdown/functions/withErrorCaptureDialogService.md +2 -2
  84. package/docs/markdown/globals.md +2 -2
  85. package/docs/markdown/interfaces/AngularErrorDialogData.md +8 -8
  86. package/docs/markdown/interfaces/AnyHttpErrorDialogData.md +15 -15
  87. package/docs/markdown/interfaces/CodeHttpErrorDialogData.md +16 -16
  88. package/docs/markdown/interfaces/ErrorHandlerOptions.md +5 -5
  89. package/docs/markdown/interfaces/ErrorInterceptorOptions.md +4 -4
  90. package/docs/markdown/interfaces/IErrorCaptureDialogService.md +3 -3
  91. package/docs/markdown/interfaces/IErrorDialogComponent.md +3 -3
  92. package/docs/markdown/interfaces/MessageHttpErrorDialogData.md +15 -15
  93. package/docs/markdown/interfaces/OpenApiHttpResponseErrorDialogData.md +18 -18
  94. package/docs/markdown/interfaces/SimplifiedHttpErrorResponse.md +12 -12
  95. package/docs/markdown/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +2 -2
  96. package/docs/markdown/variables/RXAP_ERROR_DIALOG_COMPONENT.md +2 -2
  97. package/docs/markdown/variables/RXAP_ERROR_DIALOG_DATA.md +2 -2
  98. package/docs/markdown/variables/RXAP_ERROR_DIALOG_DISABLED.md +2 -2
  99. package/docs/markdown/variables/RXAP_ERROR_DIALOG_ERROR.md +2 -2
  100. package/docs/markdown/variables/RXAP_ERROR_HANDLER_OPTIONS.md +2 -2
  101. package/docs/markdown/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.md +2 -2
  102. package/docs/wiki/Class.AngularErrorComponent.md +5 -5
  103. package/docs/wiki/Class.AngularErrorService.md +4 -4
  104. package/docs/wiki/Class.AnyHttpErrorComponent.md +3 -3
  105. package/docs/wiki/Class.AnyHttpErrorService.md +4 -4
  106. package/docs/wiki/Class.CodeHttpErrorComponent.md +4 -4
  107. package/docs/wiki/Class.CodeHttpErrorService.md +4 -4
  108. package/docs/wiki/Class.ErrorCaptureDialogService.md +5 -5
  109. package/docs/wiki/Class.ErrorCaptureService.md +4 -4
  110. package/docs/wiki/Class.ErrorDialogComponent.md +9 -9
  111. package/docs/wiki/Class.MessageHttpErrorComponent.md +4 -4
  112. package/docs/wiki/Class.MessageHttpErrorService.md +4 -4
  113. package/docs/wiki/Class.OpenApiHttpResponseErrorComponent.md +3 -3
  114. package/docs/wiki/Class.OpenApiHttpResponseErrorService.md +4 -4
  115. package/docs/wiki/Class.RxapErrorHandler.md +6 -6
  116. package/docs/wiki/Function.DefaultErrorCodeExtractor.md +1 -1
  117. package/docs/wiki/Function.DefaultErrorFilter.md +1 -1
  118. package/docs/wiki/Function.ExtractContextFromError.md +1 -1
  119. package/docs/wiki/Function.ExtractError.md +1 -1
  120. package/docs/wiki/Function.ExtractExtraFromError.md +1 -1
  121. package/docs/wiki/Function.ExtractTagsFromError.md +1 -1
  122. package/docs/wiki/Function.HttpErrorInterceptor.md +1 -1
  123. package/docs/wiki/Function.PrintError.md +1 -1
  124. package/docs/wiki/Function.ProvideErrorHandler.md +1 -1
  125. package/docs/wiki/Function.SimplifyHttpErrorResponse.md +1 -1
  126. package/docs/wiki/Function.provideAutoErrorInterception.md +1 -1
  127. package/docs/wiki/Function.withErrorCaptureDialogDisabledIf.md +1 -1
  128. package/docs/wiki/Function.withErrorCaptureDialogService.md +1 -1
  129. package/docs/wiki/Interface.AngularErrorDialogData.md +7 -7
  130. package/docs/wiki/Interface.AnyHttpErrorDialogData.md +14 -14
  131. package/docs/wiki/Interface.CodeHttpErrorDialogData.md +15 -15
  132. package/docs/wiki/Interface.ErrorHandlerOptions.md +4 -4
  133. package/docs/wiki/Interface.ErrorInterceptorOptions.md +3 -3
  134. package/docs/wiki/Interface.IErrorCaptureDialogService.md +2 -2
  135. package/docs/wiki/Interface.IErrorDialogComponent.md +2 -2
  136. package/docs/wiki/Interface.MessageHttpErrorDialogData.md +14 -14
  137. package/docs/wiki/Interface.OpenApiHttpResponseErrorDialogData.md +17 -17
  138. package/docs/wiki/Interface.SimplifiedHttpErrorResponse.md +11 -11
  139. package/docs/wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +1 -1
  140. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT.md +1 -1
  141. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DATA.md +1 -1
  142. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DISABLED.md +1 -1
  143. package/docs/wiki/Variable.RXAP_ERROR_DIALOG_ERROR.md +1 -1
  144. package/docs/wiki/Variable.RXAP_ERROR_HANDLER_OPTIONS.md +1 -1
  145. package/docs/wiki/Variable.RXAP_ERROR_INTERCEPTOR_OPTIONS.md +1 -1
  146. package/docs/wiki/globals.md +1 -1
  147. package/fesm2022/rxap-ngx-error.mjs +24 -0
  148. package/fesm2022/rxap-ngx-error.mjs.map +1 -1
  149. package/lib/error-handler.d.ts +1 -0
  150. package/package.json +25 -26
package/CHANGELOG.md CHANGED
@@ -1,3 +1,46 @@
1
+ ## 19.3.0-dev.1 (2026-06-30)
2
+
3
+ ### 🚀 Features
4
+
5
+ - add chuck loading error capture
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Merzough Münker
10
+
11
+ ## 19.3.0-dev.0 (2026-06-19)
12
+
13
+ ### 🚀 Features
14
+
15
+ - **error:** provide default value for error dialog disabled token
16
+ - **error:** add conditional provider for error dialog disablement
17
+ - **error:** add dialog disable option for flexible error handling
18
+ - **error-capture:** implement error capture dialog service and refactor error handling
19
+ - add open api http response error handler
20
+ - add angular error dialog
21
+
22
+ ### 🩹 Fixes
23
+
24
+ - **generators:** read package.json and node_modules from disk, not the virtual Tree
25
+ - **generators:** match package name with .some() in init devDependency coercion
26
+ - update package groups
27
+ - update package groups
28
+ - update package groups
29
+ - ensure the proper theme color is used
30
+ - update to latest sentry version
31
+ - remove FlexLayout dependency
32
+ - use correct unit
33
+ - support small displaces
34
+ - remove debug log
35
+ - update token description
36
+ - ensure the error object is defined
37
+ - add missing padding
38
+ - peer dependency issue
39
+
40
+ ### ❤️ Thank You
41
+
42
+ - Merzough Münker
43
+
1
44
  # Change Log
2
45
 
3
46
  All notable changes to this project will be documented in this file.
@@ -82,6 +82,47 @@
82
82
  <div class="content getting-started">
83
83
  <div class="content-data">
84
84
 
85
+ <h2>19.3.0-dev.1 (2026-06-30)</h2>
86
+ <h3>🚀 Features</h3>
87
+ <ul>
88
+ <li>add chuck loading error capture</li>
89
+ </ul>
90
+ <h3>❤️ Thank You</h3>
91
+ <ul>
92
+ <li>Merzough Münker</li>
93
+ </ul>
94
+ <h2>19.3.0-dev.0 (2026-06-19)</h2>
95
+ <h3>🚀 Features</h3>
96
+ <ul>
97
+ <li><strong>error:</strong> provide default value for error dialog disabled token</li>
98
+ <li><strong>error:</strong> add conditional provider for error dialog disablement</li>
99
+ <li><strong>error:</strong> add dialog disable option for flexible error handling</li>
100
+ <li><strong>error-capture:</strong> implement error capture dialog service and refactor error handling</li>
101
+ <li>add open api http response error handler</li>
102
+ <li>add angular error dialog</li>
103
+ </ul>
104
+ <h3>🩹 Fixes</h3>
105
+ <ul>
106
+ <li><strong>generators:</strong> read package.json and node_modules from disk, not the virtual Tree</li>
107
+ <li><strong>generators:</strong> match package name with .some() in init devDependency coercion</li>
108
+ <li>update package groups</li>
109
+ <li>update package groups</li>
110
+ <li>update package groups</li>
111
+ <li>ensure the proper theme color is used</li>
112
+ <li>update to latest sentry version</li>
113
+ <li>remove FlexLayout dependency</li>
114
+ <li>use correct unit</li>
115
+ <li>support small displaces</li>
116
+ <li>remove debug log</li>
117
+ <li>update token description</li>
118
+ <li>ensure the error object is defined</li>
119
+ <li>add missing padding</li>
120
+ <li>peer dependency issue</li>
121
+ </ul>
122
+ <h3>❤️ Thank You</h3>
123
+ <ul>
124
+ <li>Merzough Münker</li>
125
+ </ul>
85
126
  <h1>Change Log</h1>
86
127
  <p>All notable changes to this project will be documented in this file.
87
128
  See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
@@ -119,15 +119,15 @@
119
119
  <li>
120
120
  <b>@angular/core</b> : ^19.2.1</li>
121
121
  <li>
122
- <b>@rxap/components</b> : ^19.1.0-dev.1</li>
122
+ <b>@rxap/components</b> : ^19.2.0-dev.0</li>
123
123
  <li>
124
- <b>@rxap/config</b> : ^19.2.0-dev.3</li>
124
+ <b>@rxap/config</b> : ^19.3.0-dev.3</li>
125
125
  <li>
126
- <b>@rxap/data-grid</b> : ^19.0.4</li>
126
+ <b>@rxap/data-grid</b> : ^19.1.0-dev.0</li>
127
127
  <li>
128
- <b>@rxap/environment</b> : ^19.1.0-dev.0</li>
128
+ <b>@rxap/environment</b> : ^19.2.0-dev.0</li>
129
129
  <li>
130
- <b>@rxap/open-api</b> : ^19.2.0-dev.4</li>
130
+ <b>@rxap/open-api</b> : ^19.3.0-dev.3</li>
131
131
  <li>
132
132
  <b>@sentry/angular</b> : ^8.18.0</li>
133
133
  <li>
@@ -208,8 +208,8 @@
208
208
 
209
209
  <tr>
210
210
  <td class="col-md-4">
211
- <div class="io-line">Defined in <a href="" data-line="68"
212
- class="link-to-prism">src/lib/error-handler.ts:68</a></div>
211
+ <div class="io-line">Defined in <a href="" data-line="87"
212
+ class="link-to-prism">src/lib/error-handler.ts:87</a></div>
213
213
  </td>
214
214
  </tr>
215
215
 
@@ -275,8 +275,8 @@
275
275
 
276
276
  <tr>
277
277
  <td class="col-md-4">
278
- <div class="io-line">Defined in <a href="" data-line="156"
279
- class="link-to-prism">src/lib/error-handler.ts:156</a></div>
278
+ <div class="io-line">Defined in <a href="" data-line="180"
279
+ class="link-to-prism">src/lib/error-handler.ts:180</a></div>
280
280
  </td>
281
281
  </tr>
282
282
 
@@ -344,8 +344,8 @@
344
344
 
345
345
  <tr>
346
346
  <td class="col-md-4">
347
- <div class="io-line">Defined in <a href="" data-line="150"
348
- class="link-to-prism">src/lib/error-handler.ts:150</a></div>
347
+ <div class="io-line">Defined in <a href="" data-line="174"
348
+ class="link-to-prism">src/lib/error-handler.ts:174</a></div>
349
349
  </td>
350
350
  </tr>
351
351
 
@@ -540,6 +540,25 @@ export class RxapErrorHandler implements ErrorHandler {
540
540
 
541
541
  protected readonly injector &#x3D; inject(INJECTOR);
542
542
 
543
+ private isLoadChunkError(error: unknown) {
544
+ if (!error) {
545
+ return false;
546
+ }
547
+ let message &#x3D; &#x27;&#x27;;
548
+ if (typeof error &#x3D;&#x3D;&#x3D; &#x27;string&#x27;) {
549
+ message &#x3D; error;
550
+ } else if (typeof error &#x3D;&#x3D;&#x3D; &#x27;object&#x27;) {
551
+ if (&#x27;name&#x27; in error &amp;&amp; typeof error.name &#x3D;&#x3D;&#x3D; &#x27;string&#x27; &amp;&amp; /ChunkLoadError/i.test(error.name)) {
552
+ return true;
553
+ } else if (&#x27;message&#x27; in error &amp;&amp; typeof error.message &#x3D;&#x3D;&#x3D; &#x27;string&#x27;) {
554
+ message &#x3D; error.message;
555
+ }
556
+ }
557
+ return [
558
+ /Loading chunk [\d]+ failed/i,
559
+ ].some((regex) &#x3D;&gt; regex.test(message));
560
+ }
561
+
543
562
  /**
544
563
  * Method called for every value captured through the ErrorHandler
545
564
  */
@@ -547,6 +566,11 @@ export class RxapErrorHandler implements ErrorHandler {
547
566
 
548
567
  let error &#x3D; errorCandidate;
549
568
 
569
+ if (this.isLoadChunkError(error)) {
570
+ console.warn(&#x27;Old application version detected. Reloading the page to update the application.&#x27;);
571
+ window.location.reload();
572
+ }
573
+
550
574
  // Try to unwrap zone.js error.
551
575
  // https://github.com/angular/angular/blob/master/packages/core/src/util/errors.ts
552
576
  if (error &amp;&amp; (error as { ngOriginalError: Error }).ngOriginalError) {
@@ -355,6 +355,25 @@ export class RxapErrorHandler implements ErrorHandler {
355
355
 
356
356
  protected readonly injector &#x3D; inject(INJECTOR);
357
357
 
358
+ private isLoadChunkError(error: unknown) {
359
+ if (!error) {
360
+ return false;
361
+ }
362
+ let message &#x3D; &#x27;&#x27;;
363
+ if (typeof error &#x3D;&#x3D;&#x3D; &#x27;string&#x27;) {
364
+ message &#x3D; error;
365
+ } else if (typeof error &#x3D;&#x3D;&#x3D; &#x27;object&#x27;) {
366
+ if (&#x27;name&#x27; in error &amp;&amp; typeof error.name &#x3D;&#x3D;&#x3D; &#x27;string&#x27; &amp;&amp; /ChunkLoadError/i.test(error.name)) {
367
+ return true;
368
+ } else if (&#x27;message&#x27; in error &amp;&amp; typeof error.message &#x3D;&#x3D;&#x3D; &#x27;string&#x27;) {
369
+ message &#x3D; error.message;
370
+ }
371
+ }
372
+ return [
373
+ /Loading chunk [\d]+ failed/i,
374
+ ].some((regex) &#x3D;&gt; regex.test(message));
375
+ }
376
+
358
377
  /**
359
378
  * Method called for every value captured through the ErrorHandler
360
379
  */
@@ -362,6 +381,11 @@ export class RxapErrorHandler implements ErrorHandler {
362
381
 
363
382
  let error &#x3D; errorCandidate;
364
383
 
384
+ if (this.isLoadChunkError(error)) {
385
+ console.warn(&#x27;Old application version detected. Reloading the page to update the application.&#x27;);
386
+ window.location.reload();
387
+ }
388
+
365
389
  // Try to unwrap zone.js error.
366
390
  // https://github.com/angular/angular/blob/master/packages/core/src/util/errors.ts
367
391
  if (error &amp;&amp; (error as { ngOriginalError: Error }).ngOriginalError) {