@rxap/ngx-error 21.0.1-dev.0 → 21.0.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/compodoc/changelog.html +20 -0
- package/compodoc/components/AngularErrorComponent.html +16 -7
- package/compodoc/components/AnyHttpErrorComponent.html +18 -6
- package/compodoc/components/ErrorDialogComponent.html +67 -47
- package/compodoc/dependencies.html +5 -5
- package/compodoc/injectables/ErrorCaptureDialogService.html +7 -6
- package/compodoc/interfaces/IErrorCaptureDialogService.html +4 -3
- package/compodoc/interfaces/IErrorDialogComponent.html +10 -13
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +947 -983
- package/docs/html/assets/hierarchy.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 +2 -2
- package/docs/html/classes/ErrorCaptureService.html +2 -2
- package/docs/html/classes/ErrorDialogComponent.html +2 -6
- 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 -1
- 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 -1
- 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 +6 -6
- package/docs/markdown/classes/ErrorCaptureService.md +5 -5
- package/docs/markdown/classes/ErrorDialogComponent.md +13 -35
- 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 +2 -2
- package/docs/markdown/functions/withErrorCaptureDialogService.md +2 -2
- package/docs/markdown/globals.md +2 -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 +2 -2
- 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 +5 -5
- package/docs/wiki/Class.ErrorCaptureService.md +4 -4
- package/docs/wiki/Class.ErrorDialogComponent.md +12 -34
- 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 +1 -1
- 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 +1 -1
- 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/globals.md +1 -1
- package/fesm2022/rxap-ngx-error.mjs +20 -48
- package/fesm2022/rxap-ngx-error.mjs.map +1 -1
- package/package.json +25 -25
- package/types/rxap-ngx-error.d.ts +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## 21.0.1-dev.1 (2026-11-22)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **angular:** add ng-prism showcases from the leaf library outwards
|
|
6
|
+
- **angular:** add ng-prism styleguide targets and environment showcase
|
|
7
|
+
|
|
8
|
+
### 🧱 Updated Dependencies
|
|
9
|
+
|
|
10
|
+
- Updated angular-environment to 21.0.1-dev.1
|
|
11
|
+
- Updated angular-components to 21.0.1-dev.1
|
|
12
|
+
- Updated angular-data-grid to 21.0.1-dev.1
|
|
13
|
+
- Updated angular-open-api to 21.0.1-dev.1
|
|
14
|
+
- Updated angular-config to 21.0.1-dev.1
|
|
15
|
+
- Updated utilities to 16.5.2-dev.1
|
|
16
|
+
|
|
17
|
+
### ❤️ Thank You
|
|
18
|
+
|
|
19
|
+
- Claude Opus 5.5
|
|
20
|
+
- Merzough Münker
|
|
21
|
+
|
|
1
22
|
## 21.0.1-dev.0 (2026-11-20)
|
|
2
23
|
|
|
3
24
|
### 🩹 Fixes
|
package/compodoc/changelog.html
CHANGED
|
@@ -82,6 +82,26 @@
|
|
|
82
82
|
<div class="content getting-started">
|
|
83
83
|
<div class="content-data">
|
|
84
84
|
|
|
85
|
+
<h2>21.0.1-dev.1 (2026-11-22)</h2>
|
|
86
|
+
<h3>🚀 Features</h3>
|
|
87
|
+
<ul>
|
|
88
|
+
<li><strong>angular:</strong> add ng-prism showcases from the leaf library outwards</li>
|
|
89
|
+
<li><strong>angular:</strong> add ng-prism styleguide targets and environment showcase</li>
|
|
90
|
+
</ul>
|
|
91
|
+
<h3>🧱 Updated Dependencies</h3>
|
|
92
|
+
<ul>
|
|
93
|
+
<li>Updated angular-environment to 21.0.1-dev.1</li>
|
|
94
|
+
<li>Updated angular-components to 21.0.1-dev.1</li>
|
|
95
|
+
<li>Updated angular-data-grid to 21.0.1-dev.1</li>
|
|
96
|
+
<li>Updated angular-open-api to 21.0.1-dev.1</li>
|
|
97
|
+
<li>Updated angular-config to 21.0.1-dev.1</li>
|
|
98
|
+
<li>Updated utilities to 16.5.2-dev.1</li>
|
|
99
|
+
</ul>
|
|
100
|
+
<h3>❤️ Thank You</h3>
|
|
101
|
+
<ul>
|
|
102
|
+
<li>Claude Opus 5.5</li>
|
|
103
|
+
<li>Merzough Münker</li>
|
|
104
|
+
</ul>
|
|
85
105
|
<h2>21.0.1-dev.0 (2026-11-20)</h2>
|
|
86
106
|
<h3>🩹 Fixes</h3>
|
|
87
107
|
<ul>
|
|
@@ -139,6 +139,10 @@
|
|
|
139
139
|
<table class="table table-sm table-hover metadata">
|
|
140
140
|
<tbody>
|
|
141
141
|
|
|
142
|
+
<tr>
|
|
143
|
+
<td class="col-md-3">changeDetection</td>
|
|
144
|
+
<td class="col-md-9"><code>ChangeDetectionStrategy.OnPush</code></td>
|
|
145
|
+
</tr>
|
|
142
146
|
|
|
143
147
|
|
|
144
148
|
|
|
@@ -159,7 +163,10 @@
|
|
|
159
163
|
<tr>
|
|
160
164
|
<td class="col-md-3">imports</td>
|
|
161
165
|
<td class="col-md-9">
|
|
162
|
-
<code>
|
|
166
|
+
<code>DataGridComponent</code>
|
|
167
|
+
<code>DataGridRowDefDirective</code>
|
|
168
|
+
<code>DataGridHeaderCellDefDirective</code>
|
|
169
|
+
<code>DataGridCellDefDirective</code>
|
|
163
170
|
<code>KeyValuePipe</code>
|
|
164
171
|
</td>
|
|
165
172
|
</tr>
|
|
@@ -274,7 +281,7 @@
|
|
|
274
281
|
</tr>
|
|
275
282
|
<tr>
|
|
276
283
|
<td class="col-md-4">
|
|
277
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
284
|
+
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">src/lib/error/angular-error.component.ts:21</a></div>
|
|
278
285
|
</td>
|
|
279
286
|
</tr>
|
|
280
287
|
|
|
@@ -303,7 +310,7 @@
|
|
|
303
310
|
</tr>
|
|
304
311
|
<tr>
|
|
305
312
|
<td class="col-md-4">
|
|
306
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
313
|
+
<div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/lib/error/angular-error.component.ts:23</a></div>
|
|
307
314
|
</td>
|
|
308
315
|
</tr>
|
|
309
316
|
|
|
@@ -325,7 +332,7 @@
|
|
|
325
332
|
</tr>
|
|
326
333
|
<tr>
|
|
327
334
|
<td class="col-md-4">
|
|
328
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
335
|
+
<div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">src/lib/error/angular-error.component.ts:27</a></div>
|
|
329
336
|
</td>
|
|
330
337
|
</tr>
|
|
331
338
|
|
|
@@ -347,7 +354,7 @@
|
|
|
347
354
|
</tr>
|
|
348
355
|
<tr>
|
|
349
356
|
<td class="col-md-4">
|
|
350
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
357
|
+
<div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/error/angular-error.component.ts:31</a></div>
|
|
351
358
|
</td>
|
|
352
359
|
</tr>
|
|
353
360
|
|
|
@@ -360,17 +367,19 @@
|
|
|
360
367
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
361
368
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { KeyValuePipe } from '@angular/common';
|
|
362
369
|
import {
|
|
370
|
+
ChangeDetectionStrategy,
|
|
363
371
|
Component,
|
|
364
372
|
inject,
|
|
365
373
|
} from '@angular/core';
|
|
366
|
-
import {
|
|
374
|
+
import { DataGridComponent, DataGridRowDefDirective, DataGridHeaderCellDefDirective, DataGridCellDefDirective } from '@rxap/data-grid';
|
|
367
375
|
import { IErrorDialogComponent } from '../error-dialog/error-dialog.component';
|
|
368
376
|
import { RXAP_ERROR_DIALOG_ERROR } from '../tokens';
|
|
369
377
|
import { AngularErrorDialogData } from './angular-error-dialog-data';
|
|
370
378
|
|
|
371
379
|
@Component({
|
|
372
380
|
selector: 'rxap-angular-error',
|
|
373
|
-
|
|
381
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
382
|
+
imports: [DataGridComponent, DataGridRowDefDirective, DataGridHeaderCellDefDirective, DataGridCellDefDirective, KeyValuePipe],
|
|
374
383
|
templateUrl: './angular-error.component.html',
|
|
375
384
|
styleUrls: ['./angular-error.component.scss']
|
|
376
385
|
})
|
|
@@ -163,7 +163,9 @@
|
|
|
163
163
|
<tr>
|
|
164
164
|
<td class="col-md-3">imports</td>
|
|
165
165
|
<td class="col-md-9">
|
|
166
|
-
<code>
|
|
166
|
+
<code>DataGridComponent</code>
|
|
167
|
+
<code>DataGridRowDefDirective</code>
|
|
168
|
+
<code>DataGridCellDefDirective</code>
|
|
167
169
|
<code>DatePipe</code>
|
|
168
170
|
<code>KeyValuePipe</code>
|
|
169
171
|
<code>CopyToClipboardComponent</code>
|
|
@@ -267,7 +269,7 @@
|
|
|
267
269
|
</tr>
|
|
268
270
|
<tr>
|
|
269
271
|
<td class="col-md-4">
|
|
270
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
272
|
+
<div class="io-line">Defined in <a href="" data-line="45" class="link-to-prism">src/lib/any-http-error/any-http-error.component.ts:45</a></div>
|
|
271
273
|
</td>
|
|
272
274
|
</tr>
|
|
273
275
|
|
|
@@ -300,7 +302,7 @@
|
|
|
300
302
|
</tr>
|
|
301
303
|
<tr>
|
|
302
304
|
<td class="col-md-4">
|
|
303
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
305
|
+
<div class="io-line">Defined in <a href="" data-line="43" class="link-to-prism">src/lib/any-http-error/any-http-error.component.ts:43</a></div>
|
|
304
306
|
</td>
|
|
305
307
|
</tr>
|
|
306
308
|
|
|
@@ -323,19 +325,29 @@ import {
|
|
|
323
325
|
CopyToClipboardComponent,
|
|
324
326
|
JsonViewerComponent,
|
|
325
327
|
} from '@rxap/components';
|
|
326
|
-
import {
|
|
328
|
+
import { DataGridComponent, DataGridRowDefDirective, DataGridCellDefDirective } from '@rxap/data-grid';
|
|
327
329
|
import { RXAP_ENVIRONMENT } from '@rxap/environment';
|
|
328
330
|
import { IErrorDialogComponent } from '../error-dialog/error-dialog.component';
|
|
329
331
|
import { RXAP_ERROR_DIALOG_ERROR } from '../tokens';
|
|
330
332
|
import { AnyHttpErrorDialogData } from './any-http-error-dialog-data';
|
|
331
|
-
|
|
333
|
+
import { Showcase } from '@ng-prism/core';
|
|
334
|
+
|
|
335
|
+
@Showcase({
|
|
336
|
+
title: 'Any Http Error',
|
|
337
|
+
category: 'Error',
|
|
338
|
+
description: 'Content of the error dialog for a failed http request. The error is read from the `RXAP_ERROR_DIALOG_ERROR` token, which the styleguide host provides with demo data.',
|
|
339
|
+
status: 'stable',
|
|
340
|
+
variants: [
|
|
341
|
+
{ name: 'Default' },
|
|
342
|
+
],
|
|
343
|
+
})
|
|
332
344
|
@Component({
|
|
333
345
|
selector: 'rxap-any-http-error',
|
|
334
346
|
templateUrl: './any-http-error.component.html',
|
|
335
347
|
styleUrls: ['./any-http-error.component.scss'],
|
|
336
348
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
337
349
|
imports: [
|
|
338
|
-
|
|
350
|
+
DataGridComponent, DataGridRowDefDirective, DataGridCellDefDirective,
|
|
339
351
|
DatePipe,
|
|
340
352
|
KeyValuePipe,
|
|
341
353
|
CopyToClipboardComponent,
|
|
@@ -126,12 +126,6 @@
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
<p class="comment">
|
|
130
|
-
<h3>Implements</h3>
|
|
131
|
-
</p>
|
|
132
|
-
<p class="comment">
|
|
133
|
-
<code>AfterViewInit</code>
|
|
134
|
-
</p>
|
|
135
129
|
|
|
136
130
|
|
|
137
131
|
<section data-compodoc="block-metadata">
|
|
@@ -141,7 +135,7 @@
|
|
|
141
135
|
|
|
142
136
|
<tr>
|
|
143
137
|
<td class="col-md-3">changeDetection</td>
|
|
144
|
-
<td class="col-md-9"><code>ChangeDetectionStrategy.
|
|
138
|
+
<td class="col-md-9"><code>ChangeDetectionStrategy.OnPush</code></td>
|
|
145
139
|
</tr>
|
|
146
140
|
|
|
147
141
|
|
|
@@ -208,6 +202,11 @@
|
|
|
208
202
|
<span class="modifier">Readonly</span>
|
|
209
203
|
<a href="#activeIndex" >activeIndex</a>
|
|
210
204
|
</li>
|
|
205
|
+
<li>
|
|
206
|
+
<span class="modifier">Public</span>
|
|
207
|
+
<span class="modifier">Readonly</span>
|
|
208
|
+
<a href="#closeDialog" >closeDialog</a>
|
|
209
|
+
</li>
|
|
211
210
|
<li>
|
|
212
211
|
<span class="modifier">Public</span>
|
|
213
212
|
<span class="modifier">Readonly</span>
|
|
@@ -219,8 +218,8 @@
|
|
|
219
218
|
<a href="#data" >data</a>
|
|
220
219
|
</li>
|
|
221
220
|
<li>
|
|
222
|
-
<span class="modifier"></span>
|
|
223
221
|
<span class="modifier">Public</span>
|
|
222
|
+
<span class="modifier">Readonly</span>
|
|
224
223
|
<a href="#dialog" >dialog</a>
|
|
225
224
|
</li>
|
|
226
225
|
<li>
|
|
@@ -269,6 +268,24 @@
|
|
|
269
268
|
</table>
|
|
270
269
|
</section>
|
|
271
270
|
|
|
271
|
+
<section data-compodoc="block-constructor">
|
|
272
|
+
<h3 id="constructor">Constructor</h3>
|
|
273
|
+
<table class="table table-sm table-bordered">
|
|
274
|
+
<tbody>
|
|
275
|
+
<tr>
|
|
276
|
+
<td class="col-md-4">
|
|
277
|
+
<code>constructor()</code>
|
|
278
|
+
</td>
|
|
279
|
+
</tr>
|
|
280
|
+
<tr>
|
|
281
|
+
<td class="col-md-4">
|
|
282
|
+
<div class="io-line">Defined in <a href="" data-line="68" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:68</a></div>
|
|
283
|
+
</td>
|
|
284
|
+
</tr>
|
|
285
|
+
|
|
286
|
+
</tbody>
|
|
287
|
+
</table>
|
|
288
|
+
</section>
|
|
272
289
|
|
|
273
290
|
|
|
274
291
|
<section data-compodoc="block-outputs">
|
|
@@ -280,16 +297,10 @@
|
|
|
280
297
|
<a name="closeDialog"></a>
|
|
281
298
|
<b>closeDialog</b>
|
|
282
299
|
</td>
|
|
283
|
-
</tr>
|
|
284
|
-
<tr>
|
|
285
|
-
<td class="col-md-4">
|
|
286
|
-
<i>Type : </i> <code>EventEmitter</code>
|
|
287
|
-
|
|
288
|
-
</td>
|
|
289
300
|
</tr>
|
|
290
301
|
<tr>
|
|
291
302
|
<td class="col-md-2" colspan="2">
|
|
292
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
303
|
+
<div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:52</a></div>
|
|
293
304
|
</td>
|
|
294
305
|
</tr>
|
|
295
306
|
</tbody>
|
|
@@ -322,8 +333,8 @@
|
|
|
322
333
|
|
|
323
334
|
<tr>
|
|
324
335
|
<td class="col-md-4">
|
|
325
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
326
|
-
class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:
|
|
336
|
+
<div class="io-line">Defined in <a href="" data-line="74"
|
|
337
|
+
class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:74</a></div>
|
|
327
338
|
</td>
|
|
328
339
|
</tr>
|
|
329
340
|
|
|
@@ -365,7 +376,29 @@
|
|
|
365
376
|
</tr>
|
|
366
377
|
<tr>
|
|
367
378
|
<td class="col-md-4">
|
|
368
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
379
|
+
<div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:46</a></div>
|
|
380
|
+
</td>
|
|
381
|
+
</tr>
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
</tbody>
|
|
385
|
+
</table>
|
|
386
|
+
<table class="table table-sm table-bordered">
|
|
387
|
+
<tbody>
|
|
388
|
+
<tr>
|
|
389
|
+
<td class="col-md-4">
|
|
390
|
+
<a name="closeDialog"></a>
|
|
391
|
+
<span class="name">
|
|
392
|
+
<span class="modifier">Public</span>
|
|
393
|
+
<span class="modifier">Readonly</span>
|
|
394
|
+
<span ><b>closeDialog</b></span>
|
|
395
|
+
<a href="#closeDialog"><span class="icon ion-ios-link"></span></a>
|
|
396
|
+
</span>
|
|
397
|
+
</td>
|
|
398
|
+
</tr>
|
|
399
|
+
<tr>
|
|
400
|
+
<td class="col-md-4">
|
|
401
|
+
<div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:52</a></div>
|
|
369
402
|
</td>
|
|
370
403
|
</tr>
|
|
371
404
|
|
|
@@ -405,7 +438,7 @@
|
|
|
405
438
|
</tr>
|
|
406
439
|
<tr>
|
|
407
440
|
<td class="col-md-4">
|
|
408
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
441
|
+
<div class="io-line">Defined in <a href="" data-line="55" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:55</a></div>
|
|
409
442
|
</td>
|
|
410
443
|
</tr>
|
|
411
444
|
|
|
@@ -438,7 +471,7 @@
|
|
|
438
471
|
</tr>
|
|
439
472
|
<tr>
|
|
440
473
|
<td class="col-md-4">
|
|
441
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
474
|
+
<div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:44</a></div>
|
|
442
475
|
</td>
|
|
443
476
|
</tr>
|
|
444
477
|
|
|
@@ -451,8 +484,8 @@
|
|
|
451
484
|
<td class="col-md-4">
|
|
452
485
|
<a name="dialog"></a>
|
|
453
486
|
<span class="name">
|
|
454
|
-
<span class="modifier"></span>
|
|
455
487
|
<span class="modifier">Public</span>
|
|
488
|
+
<span class="modifier">Readonly</span>
|
|
456
489
|
<span ><b>dialog</b></span>
|
|
457
490
|
<a href="#dialog"><span class="icon ion-ios-link"></span></a>
|
|
458
491
|
</span>
|
|
@@ -460,22 +493,12 @@
|
|
|
460
493
|
</tr>
|
|
461
494
|
<tr>
|
|
462
495
|
<td class="col-md-4">
|
|
463
|
-
<i>
|
|
464
|
-
|
|
465
|
-
</td>
|
|
466
|
-
</tr>
|
|
467
|
-
<tr>
|
|
468
|
-
<td class="col-md-4">
|
|
469
|
-
<b>Decorators : </b>
|
|
470
|
-
<br />
|
|
471
|
-
<code>
|
|
472
|
-
@ViewChild('dialog', {static: true})<br />
|
|
473
|
-
</code>
|
|
496
|
+
<i>Default value : </i><code>viewChild.required<ElementRef<HTMLDialogElement>>('dialog')</code>
|
|
474
497
|
</td>
|
|
475
498
|
</tr>
|
|
476
499
|
<tr>
|
|
477
500
|
<td class="col-md-4">
|
|
478
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
501
|
+
<div class="io-line">Defined in <a href="" data-line="42" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:42</a></div>
|
|
479
502
|
</td>
|
|
480
503
|
</tr>
|
|
481
504
|
|
|
@@ -506,7 +529,7 @@
|
|
|
506
529
|
</tr>
|
|
507
530
|
<tr>
|
|
508
531
|
<td class="col-md-4">
|
|
509
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
532
|
+
<div class="io-line">Defined in <a href="" data-line="47" class="link-to-prism">src/lib/error-dialog/error-dialog.component.ts:47</a></div>
|
|
510
533
|
</td>
|
|
511
534
|
</tr>
|
|
512
535
|
|
|
@@ -525,19 +548,18 @@
|
|
|
525
548
|
} from '@angular/cdk/portal';
|
|
526
549
|
import { NgClass } from '@angular/common';
|
|
527
550
|
import {
|
|
528
|
-
|
|
551
|
+
afterNextRender,
|
|
529
552
|
ChangeDetectionStrategy,
|
|
530
553
|
Component,
|
|
531
554
|
computed,
|
|
532
555
|
ElementRef,
|
|
533
|
-
EventEmitter,
|
|
534
556
|
inject,
|
|
535
557
|
INJECTOR,
|
|
536
558
|
Injector,
|
|
537
|
-
|
|
559
|
+
output,
|
|
538
560
|
signal,
|
|
539
561
|
Signal,
|
|
540
|
-
|
|
562
|
+
viewChild
|
|
541
563
|
} from '@angular/core';
|
|
542
564
|
import {
|
|
543
565
|
RXAP_ERROR_DIALOG_COMPONENT,
|
|
@@ -553,16 +575,15 @@ export interface IErrorDialogComponent<Error = any> {
|
|
|
553
575
|
selector: 'rxap-error-dialog',
|
|
554
576
|
templateUrl: './error-dialog.component.html',
|
|
555
577
|
styleUrls: ['./error-dialog.component.scss'],
|
|
556
|
-
changeDetection: ChangeDetectionStrategy.
|
|
578
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
557
579
|
imports: [
|
|
558
580
|
NgClass,
|
|
559
581
|
PortalModule
|
|
560
582
|
]
|
|
561
583
|
})
|
|
562
|
-
export class ErrorDialogComponent
|
|
584
|
+
export class ErrorDialogComponent {
|
|
563
585
|
|
|
564
|
-
|
|
565
|
-
public dialog!: ElementRef<HTMLDialogElement>;
|
|
586
|
+
public readonly dialog = viewChild.required<ElementRef<HTMLDialogElement>>('dialog');
|
|
566
587
|
|
|
567
588
|
public readonly data: Signal<any[]> = inject(RXAP_ERROR_DIALOG_DATA);
|
|
568
589
|
|
|
@@ -572,8 +593,7 @@ export class ErrorDialogComponent implements AfterViewInit {
|
|
|
572
593
|
const end = Math.min(this.data().length, start + 5);
|
|
573
594
|
return Array.from({ length: end - start }, (_, i) => start + i);
|
|
574
595
|
});
|
|
575
|
-
|
|
576
|
-
public closeDialog = new EventEmitter<void>();
|
|
596
|
+
public readonly closeDialog = output<void>();
|
|
577
597
|
private readonly component = inject(RXAP_ERROR_DIALOG_COMPONENT);
|
|
578
598
|
private readonly injector = inject(INJECTOR);
|
|
579
599
|
public readonly componentPortal = computed(() => {
|
|
@@ -591,12 +611,12 @@ export class ErrorDialogComponent implements AfterViewInit {
|
|
|
591
611
|
return new ComponentPortal(this.component, null, injector);
|
|
592
612
|
});
|
|
593
613
|
|
|
594
|
-
|
|
595
|
-
this.dialog.nativeElement.showModal();
|
|
614
|
+
constructor() {
|
|
615
|
+
afterNextRender(() => this.dialog().nativeElement.showModal());
|
|
596
616
|
}
|
|
597
617
|
|
|
598
618
|
close() {
|
|
599
|
-
this.dialog.nativeElement.close();
|
|
619
|
+
this.dialog().nativeElement.close();
|
|
600
620
|
this.closeDialog.emit();
|
|
601
621
|
}
|
|
602
622
|
|
|
@@ -119,15 +119,15 @@
|
|
|
119
119
|
<li>
|
|
120
120
|
<b>@angular/core</b> : ^21.2.9</li>
|
|
121
121
|
<li>
|
|
122
|
-
<b>@rxap/components</b> : ^21.0.1-dev.
|
|
122
|
+
<b>@rxap/components</b> : ^21.0.1-dev.1</li>
|
|
123
123
|
<li>
|
|
124
|
-
<b>@rxap/config</b> : ^21.0.1-dev.
|
|
124
|
+
<b>@rxap/config</b> : ^21.0.1-dev.1</li>
|
|
125
125
|
<li>
|
|
126
|
-
<b>@rxap/data-grid</b> : ^21.0.1-dev.
|
|
126
|
+
<b>@rxap/data-grid</b> : ^21.0.1-dev.1</li>
|
|
127
127
|
<li>
|
|
128
|
-
<b>@rxap/environment</b> : ^21.0.1-dev.
|
|
128
|
+
<b>@rxap/environment</b> : ^21.0.1-dev.1</li>
|
|
129
129
|
<li>
|
|
130
|
-
<b>@rxap/open-api</b> : ^21.0.1-dev.
|
|
130
|
+
<b>@rxap/open-api</b> : ^21.0.1-dev.1</li>
|
|
131
131
|
<li>
|
|
132
132
|
<b>@sentry/angular</b> : ^10.10.0</li>
|
|
133
133
|
<li>
|
|
@@ -202,8 +202,8 @@
|
|
|
202
202
|
|
|
203
203
|
<tr>
|
|
204
204
|
<td class="col-md-4">
|
|
205
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
206
|
-
class="link-to-prism">src/lib/error-capture-dialog.service.ts:
|
|
205
|
+
<div class="io-line">Defined in <a href="" data-line="41"
|
|
206
|
+
class="link-to-prism">src/lib/error-capture-dialog.service.ts:41</a></div>
|
|
207
207
|
</td>
|
|
208
208
|
</tr>
|
|
209
209
|
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
</tr>
|
|
288
288
|
<tr>
|
|
289
289
|
<td class="col-md-4">
|
|
290
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
290
|
+
<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>
|
|
291
291
|
</td>
|
|
292
292
|
</tr>
|
|
293
293
|
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
</tr>
|
|
315
315
|
<tr>
|
|
316
316
|
<td class="col-md-4">
|
|
317
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
317
|
+
<div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/lib/error-capture-dialog.service.ts:39</a></div>
|
|
318
318
|
</td>
|
|
319
319
|
</tr>
|
|
320
320
|
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
</tr>
|
|
342
342
|
<tr>
|
|
343
343
|
<td class="col-md-4">
|
|
344
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
344
|
+
<div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/lib/error-capture-dialog.service.ts:38</a></div>
|
|
345
345
|
</td>
|
|
346
346
|
</tr>
|
|
347
347
|
|
|
@@ -355,6 +355,7 @@
|
|
|
355
355
|
|
|
356
356
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
357
357
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ComponentType } from '@angular/cdk/overlay';
|
|
358
|
+
import { outputToObservable } from '@angular/core/rxjs-interop';
|
|
358
359
|
|
|
359
360
|
import {
|
|
360
361
|
ApplicationRef,
|
|
@@ -419,7 +420,7 @@ export class ErrorCaptureDialogService<Error = any> implements IError
|
|
|
419
420
|
});
|
|
420
421
|
this.applicationRef.attachView(componentRef.hostView);
|
|
421
422
|
return new Observable<void>(subscriber => {
|
|
422
|
-
const subscription = componentRef.instance.closeDialog.pipe(
|
|
423
|
+
const subscription = outputToObservable(componentRef.instance.closeDialog).pipe(
|
|
423
424
|
take(1),
|
|
424
425
|
tap(() => {
|
|
425
426
|
subscriber.next();
|
|
@@ -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="31"
|
|
182
|
+
class="link-to-prism">src/lib/error-capture-dialog.service.ts:31</a></div>
|
|
183
183
|
</td>
|
|
184
184
|
</tr>
|
|
185
185
|
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
|
|
245
245
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
246
246
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ComponentType } from '@angular/cdk/overlay';
|
|
247
|
+
import { outputToObservable } from '@angular/core/rxjs-interop';
|
|
247
248
|
|
|
248
249
|
import {
|
|
249
250
|
ApplicationRef,
|
|
@@ -308,7 +309,7 @@ export class ErrorCaptureDialogService<Error = any> implements IError
|
|
|
308
309
|
});
|
|
309
310
|
this.applicationRef.attachView(componentRef.hostView);
|
|
310
311
|
return new Observable<void>(subscriber => {
|
|
311
|
-
const subscription = componentRef.instance.closeDialog.pipe(
|
|
312
|
+
const subscription = outputToObservable(componentRef.instance.closeDialog).pipe(
|
|
312
313
|
take(1),
|
|
313
314
|
tap(() => {
|
|
314
315
|
subscriber.next();
|
|
@@ -201,19 +201,18 @@
|
|
|
201
201
|
} from '@angular/cdk/portal';
|
|
202
202
|
import { NgClass } from '@angular/common';
|
|
203
203
|
import {
|
|
204
|
-
|
|
204
|
+
afterNextRender,
|
|
205
205
|
ChangeDetectionStrategy,
|
|
206
206
|
Component,
|
|
207
207
|
computed,
|
|
208
208
|
ElementRef,
|
|
209
|
-
EventEmitter,
|
|
210
209
|
inject,
|
|
211
210
|
INJECTOR,
|
|
212
211
|
Injector,
|
|
213
|
-
|
|
212
|
+
output,
|
|
214
213
|
signal,
|
|
215
214
|
Signal,
|
|
216
|
-
|
|
215
|
+
viewChild
|
|
217
216
|
} from '@angular/core';
|
|
218
217
|
import {
|
|
219
218
|
RXAP_ERROR_DIALOG_COMPONENT,
|
|
@@ -229,16 +228,15 @@ export interface IErrorDialogComponent<Error = any> {
|
|
|
229
228
|
selector: 'rxap-error-dialog',
|
|
230
229
|
templateUrl: './error-dialog.component.html',
|
|
231
230
|
styleUrls: ['./error-dialog.component.scss'],
|
|
232
|
-
changeDetection: ChangeDetectionStrategy.
|
|
231
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
233
232
|
imports: [
|
|
234
233
|
NgClass,
|
|
235
234
|
PortalModule
|
|
236
235
|
]
|
|
237
236
|
})
|
|
238
|
-
export class ErrorDialogComponent
|
|
237
|
+
export class ErrorDialogComponent {
|
|
239
238
|
|
|
240
|
-
|
|
241
|
-
public dialog!: ElementRef<HTMLDialogElement>;
|
|
239
|
+
public readonly dialog = viewChild.required<ElementRef<HTMLDialogElement>>('dialog');
|
|
242
240
|
|
|
243
241
|
public readonly data: Signal<any[]> = inject(RXAP_ERROR_DIALOG_DATA);
|
|
244
242
|
|
|
@@ -248,8 +246,7 @@ export class ErrorDialogComponent implements AfterViewInit {
|
|
|
248
246
|
const end = Math.min(this.data().length, start + 5);
|
|
249
247
|
return Array.from({ length: end - start }, (_, i) => start + i);
|
|
250
248
|
});
|
|
251
|
-
|
|
252
|
-
public closeDialog = new EventEmitter<void>();
|
|
249
|
+
public readonly closeDialog = output<void>();
|
|
253
250
|
private readonly component = inject(RXAP_ERROR_DIALOG_COMPONENT);
|
|
254
251
|
private readonly injector = inject(INJECTOR);
|
|
255
252
|
public readonly componentPortal = computed(() => {
|
|
@@ -267,12 +264,12 @@ export class ErrorDialogComponent implements AfterViewInit {
|
|
|
267
264
|
return new ComponentPortal(this.component, null, injector);
|
|
268
265
|
});
|
|
269
266
|
|
|
270
|
-
|
|
271
|
-
this.dialog.nativeElement.showModal();
|
|
267
|
+
constructor() {
|
|
268
|
+
afterNextRender(() => this.dialog().nativeElement.showModal());
|
|
272
269
|
}
|
|
273
270
|
|
|
274
271
|
close() {
|
|
275
|
-
this.dialog.nativeElement.close();
|
|
272
|
+
this.dialog().nativeElement.close();
|
|
276
273
|
this.closeDialog.emit();
|
|
277
274
|
}
|
|
278
275
|
|