@rxap/ngx-error 19.1.0 → 19.2.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.
- package/CHANGELOG.md +7 -0
- package/compodoc/changelog.html +6 -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 +23 -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 +16 -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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [19.2.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@19.1.0...@rxap/ngx-error@19.2.0-dev.0) (2025-09-23)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **error:** add conditional provider for error dialog disablement ([cabd1fa](https://gitlab.com/rxap/packages/commit/cabd1fa97c6c56bdc3d794e0682af23b99b82b85))
|
|
11
|
+
- **error:** add dialog disable option for flexible error handling ([1fa4b0e](https://gitlab.com/rxap/packages/commit/1fa4b0e8d66e15021219ff3e57d5757752131d13))
|
|
12
|
+
|
|
6
13
|
# [19.1.0](https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@19.1.0-dev.1...@rxap/ngx-error@19.1.0) (2025-05-16)
|
|
7
14
|
|
|
8
15
|
**Note:** Version bump only for package @rxap/ngx-error
|
package/compodoc/changelog.html
CHANGED
|
@@ -85,6 +85,12 @@
|
|
|
85
85
|
<h1>Change Log</h1>
|
|
86
86
|
<p>All notable changes to this project will be documented in this file.
|
|
87
87
|
See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
|
|
88
|
+
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@19.1.0...@rxap/ngx-error@19.2.0-dev.0">19.2.0-dev.0</a> (2025-09-23)</h1>
|
|
89
|
+
<h3>Features</h3>
|
|
90
|
+
<ul>
|
|
91
|
+
<li><strong>error:</strong> add conditional provider for error dialog disablement (<a href="https://gitlab.com/rxap/packages/commit/cabd1fa97c6c56bdc3d794e0682af23b99b82b85">cabd1fa</a>)</li>
|
|
92
|
+
<li><strong>error:</strong> add dialog disable option for flexible error handling (<a href="https://gitlab.com/rxap/packages/commit/1fa4b0e8d66e15021219ff3e57d5757752131d13">1fa4b0e</a>)</li>
|
|
93
|
+
</ul>
|
|
88
94
|
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@19.1.0-dev.1...@rxap/ngx-error@19.1.0">19.1.0</a> (2025-05-16)</h1>
|
|
89
95
|
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-error</p>
|
|
90
96
|
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-error@19.1.0-dev.0...@rxap/ngx-error@19.1.0-dev.1">19.1.0-dev.1</a> (2025-05-16)</h1>
|
|
@@ -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.0
|
|
122
|
+
<b>@rxap/components</b> : ^19.1.0-dev.1</li>
|
|
123
123
|
<li>
|
|
124
|
-
<b>@rxap/config</b> : ^19.
|
|
124
|
+
<b>@rxap/config</b> : ^19.2.0-dev.0</li>
|
|
125
125
|
<li>
|
|
126
|
-
<b>@rxap/data-grid</b> : ^19.0.4
|
|
126
|
+
<b>@rxap/data-grid</b> : ^19.0.4</li>
|
|
127
127
|
<li>
|
|
128
|
-
<b>@rxap/environment</b> : ^19.0.4
|
|
128
|
+
<b>@rxap/environment</b> : ^19.0.4</li>
|
|
129
129
|
<li>
|
|
130
|
-
<b>@rxap/open-api</b> : ^19.
|
|
130
|
+
<b>@rxap/open-api</b> : ^19.2.0-dev.1</li>
|
|
131
131
|
<li>
|
|
132
132
|
<b>@sentry/angular</b> : ^8.18.0</li>
|
|
133
133
|
<li>
|
|
@@ -139,6 +139,11 @@
|
|
|
139
139
|
<span class="modifier">Readonly</span>
|
|
140
140
|
<a href="#applicationRef" >applicationRef</a>
|
|
141
141
|
</li>
|
|
142
|
+
<li>
|
|
143
|
+
<span class="modifier">Protected</span>
|
|
144
|
+
<span class="modifier">Readonly</span>
|
|
145
|
+
<a href="#disabled" >disabled</a>
|
|
146
|
+
</li>
|
|
142
147
|
<li>
|
|
143
148
|
<span class="modifier">Protected</span>
|
|
144
149
|
<span class="modifier">Readonly</span>
|
|
@@ -197,8 +202,8 @@
|
|
|
197
202
|
|
|
198
203
|
<tr>
|
|
199
204
|
<td class="col-md-4">
|
|
200
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
201
|
-
class="link-to-prism">src/lib/error-capture-dialog.service.ts:
|
|
205
|
+
<div class="io-line">Defined in <a href="" data-line="39"
|
|
206
|
+
class="link-to-prism">src/lib/error-capture-dialog.service.ts:39</a></div>
|
|
202
207
|
</td>
|
|
203
208
|
</tr>
|
|
204
209
|
|
|
@@ -282,7 +287,34 @@
|
|
|
282
287
|
</tr>
|
|
283
288
|
<tr>
|
|
284
289
|
<td class="col-md-4">
|
|
285
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
290
|
+
<div class="io-line">Defined in <a href="" data-line="35" class="link-to-prism">src/lib/error-capture-dialog.service.ts:35</a></div>
|
|
291
|
+
</td>
|
|
292
|
+
</tr>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
</tbody>
|
|
296
|
+
</table>
|
|
297
|
+
<table class="table table-sm table-bordered">
|
|
298
|
+
<tbody>
|
|
299
|
+
<tr>
|
|
300
|
+
<td class="col-md-4">
|
|
301
|
+
<a name="disabled"></a>
|
|
302
|
+
<span class="name">
|
|
303
|
+
<span class="modifier">Protected</span>
|
|
304
|
+
<span class="modifier">Readonly</span>
|
|
305
|
+
<span ><b>disabled</b></span>
|
|
306
|
+
<a href="#disabled"><span class="icon ion-ios-link"></span></a>
|
|
307
|
+
</span>
|
|
308
|
+
</td>
|
|
309
|
+
</tr>
|
|
310
|
+
<tr>
|
|
311
|
+
<td class="col-md-4">
|
|
312
|
+
<i>Default value : </i><code>inject(RXAP_ERROR_DIALOG_DISABLED)</code>
|
|
313
|
+
</td>
|
|
314
|
+
</tr>
|
|
315
|
+
<tr>
|
|
316
|
+
<td class="col-md-4">
|
|
317
|
+
<div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">src/lib/error-capture-dialog.service.ts:37</a></div>
|
|
286
318
|
</td>
|
|
287
319
|
</tr>
|
|
288
320
|
|
|
@@ -309,7 +341,7 @@
|
|
|
309
341
|
</tr>
|
|
310
342
|
<tr>
|
|
311
343
|
<td class="col-md-4">
|
|
312
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
344
|
+
<div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/error-capture-dialog.service.ts:36</a></div>
|
|
313
345
|
</td>
|
|
314
346
|
</tr>
|
|
315
347
|
|
|
@@ -333,6 +365,7 @@ import {
|
|
|
333
365
|
WritableSignal,
|
|
334
366
|
} from '@angular/core';
|
|
335
367
|
import {
|
|
368
|
+
EMPTY,
|
|
336
369
|
finalize,
|
|
337
370
|
Observable,
|
|
338
371
|
take,
|
|
@@ -345,6 +378,7 @@ import {
|
|
|
345
378
|
import {
|
|
346
379
|
RXAP_ERROR_DIALOG_COMPONENT,
|
|
347
380
|
RXAP_ERROR_DIALOG_DATA,
|
|
381
|
+
RXAP_ERROR_DIALOG_DISABLED,
|
|
348
382
|
} from './tokens';
|
|
349
383
|
|
|
350
384
|
export interface IErrorCaptureDialogService<Error = any> {
|
|
@@ -356,8 +390,13 @@ export class ErrorCaptureDialogService<Error = any> implements IError
|
|
|
356
390
|
|
|
357
391
|
protected readonly applicationRef = inject(ApplicationRef);
|
|
358
392
|
protected readonly document = inject(DOCUMENT);
|
|
393
|
+
protected readonly disabled = inject(RXAP_ERROR_DIALOG_DISABLED);
|
|
359
394
|
|
|
360
395
|
open(component: ComponentType<IErrorDialogComponent>, errorList: WritableSignal<Error[]>): Observable<void> {
|
|
396
|
+
if (this.disabled) {
|
|
397
|
+
console.debug(`ErrorCaptureDialogService is disabled.`, { errorList: errorList() });
|
|
398
|
+
return EMPTY;
|
|
399
|
+
}
|
|
361
400
|
const body = this.document.getElementsByTagName('body')[0];
|
|
362
401
|
const div = this.document.createElement('div');
|
|
363
402
|
body.appendChild(div);
|
|
@@ -178,8 +178,8 @@
|
|
|
178
178
|
|
|
179
179
|
<tr>
|
|
180
180
|
<td class="col-md-4">
|
|
181
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
182
|
-
class="link-to-prism">src/lib/error-capture-dialog.service.ts:
|
|
181
|
+
<div class="io-line">Defined in <a href="" data-line="29"
|
|
182
|
+
class="link-to-prism">src/lib/error-capture-dialog.service.ts:29</a></div>
|
|
183
183
|
</td>
|
|
184
184
|
</tr>
|
|
185
185
|
|
|
@@ -254,6 +254,7 @@ import {
|
|
|
254
254
|
WritableSignal,
|
|
255
255
|
} from '@angular/core';
|
|
256
256
|
import {
|
|
257
|
+
EMPTY,
|
|
257
258
|
finalize,
|
|
258
259
|
Observable,
|
|
259
260
|
take,
|
|
@@ -266,6 +267,7 @@ import {
|
|
|
266
267
|
import {
|
|
267
268
|
RXAP_ERROR_DIALOG_COMPONENT,
|
|
268
269
|
RXAP_ERROR_DIALOG_DATA,
|
|
270
|
+
RXAP_ERROR_DIALOG_DISABLED,
|
|
269
271
|
} from './tokens';
|
|
270
272
|
|
|
271
273
|
export interface IErrorCaptureDialogService<Error = any> {
|
|
@@ -277,8 +279,13 @@ export class ErrorCaptureDialogService<Error = any> implements IError
|
|
|
277
279
|
|
|
278
280
|
protected readonly applicationRef = inject(ApplicationRef);
|
|
279
281
|
protected readonly document = inject(DOCUMENT);
|
|
282
|
+
protected readonly disabled = inject(RXAP_ERROR_DIALOG_DISABLED);
|
|
280
283
|
|
|
281
284
|
open(component: ComponentType<IErrorDialogComponent>, errorList: WritableSignal<Error[]>): Observable<void> {
|
|
285
|
+
if (this.disabled) {
|
|
286
|
+
console.debug(`ErrorCaptureDialogService is disabled.`, { errorList: errorList() });
|
|
287
|
+
return EMPTY;
|
|
288
|
+
}
|
|
282
289
|
const body = this.document.getElementsByTagName('body')[0];
|
|
283
290
|
const div = this.document.createElement('div');
|
|
284
291
|
body.appendChild(div);
|