@rxap/components 19.0.4 → 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.
- package/CHANGELOG.md +10 -0
- package/compodoc/changelog.html +7 -0
- package/compodoc/components/CopyToClipboardButtonComponent.html +46 -89
- package/compodoc/components/CopyToClipboardComponent.html +255 -33
- package/compodoc/components/JsonViewerComponent.html +24 -21
- package/compodoc/dependencies.html +2 -2
- package/compodoc/interfaces/Segment.html +5 -2
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +451 -291
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/ConfirmComponent.html +2 -2
- package/docs/html/classes/ConfirmDirective.html +3 -3
- package/docs/html/classes/ConfirmModule.html +2 -2
- package/docs/html/classes/CopyToClipboardButtonComponent.html +2 -2
- package/docs/html/classes/CopyToClipboardComponent.html +6 -2
- package/docs/html/classes/EmptyRouterOutletComponent.html +2 -2
- package/docs/html/classes/JsonViewerComponent.html +4 -4
- package/docs/html/classes/NavigateBackButtonComponent.html +2 -2
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/Segment.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/JSON_VIEW_IGNORED_PROPERTIES.html +1 -1
- package/docs/html/variables/JSON_VIEW_IGNORED_TYPES.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ConfirmComponent.md +4 -4
- package/docs/markdown/classes/ConfirmDirective.md +15 -15
- package/docs/markdown/classes/ConfirmModule.md +2 -2
- package/docs/markdown/classes/CopyToClipboardButtonComponent.md +6 -14
- package/docs/markdown/classes/CopyToClipboardComponent.md +40 -8
- package/docs/markdown/classes/EmptyRouterOutletComponent.md +2 -2
- package/docs/markdown/classes/JsonViewerComponent.md +18 -18
- package/docs/markdown/classes/NavigateBackButtonComponent.md +3 -3
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/Segment.md +7 -7
- package/docs/markdown/variables/JSON_VIEW_IGNORED_PROPERTIES.md +2 -2
- package/docs/markdown/variables/JSON_VIEW_IGNORED_TYPES.md +2 -2
- package/docs/wiki/Class.ConfirmComponent.md +3 -3
- package/docs/wiki/Class.ConfirmDirective.md +14 -14
- package/docs/wiki/Class.ConfirmModule.md +1 -1
- package/docs/wiki/Class.CopyToClipboardButtonComponent.md +5 -13
- package/docs/wiki/Class.CopyToClipboardComponent.md +39 -7
- package/docs/wiki/Class.EmptyRouterOutletComponent.md +1 -1
- package/docs/wiki/Class.JsonViewerComponent.md +17 -17
- package/docs/wiki/Class.NavigateBackButtonComponent.md +2 -2
- package/docs/wiki/Interface.Segment.md +6 -6
- package/docs/wiki/Variable.JSON_VIEW_IGNORED_PROPERTIES.md +1 -1
- package/docs/wiki/Variable.JSON_VIEW_IGNORED_TYPES.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-components.mjs +21 -29
- package/fesm2022/rxap-components.mjs.map +1 -1
- package/lib/copy-to-clipboard/copy-to-clipboard.component.d.ts +8 -4
- package/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.d.ts +2 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.1.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/components@19.1.0-dev.0...@rxap/components@19.1.0-dev.1) (2025-09-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/components
|
|
9
|
+
|
|
10
|
+
# [19.1.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/components@19.0.4...@rxap/components@19.1.0-dev.0) (2025-06-25)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- support custom content better ([c722dd3](https://gitlab.com/rxap/packages/commit/c722dd36690d05597fbc048efa4ad5734df1dafe))
|
|
15
|
+
|
|
6
16
|
## [19.0.4](https://gitlab.com/rxap/packages/compare/@rxap/components@19.0.4-dev.0...@rxap/components@19.0.4) (2025-05-16)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @rxap/components
|
package/compodoc/changelog.html
CHANGED
|
@@ -85,6 +85,13 @@
|
|
|
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/components@19.1.0-dev.0...@rxap/components@19.1.0-dev.1">19.1.0-dev.1</a> (2025-09-15)</h1>
|
|
89
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/components</p>
|
|
90
|
+
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/components@19.0.4...@rxap/components@19.1.0-dev.0">19.1.0-dev.0</a> (2025-06-25)</h1>
|
|
91
|
+
<h3>Features</h3>
|
|
92
|
+
<ul>
|
|
93
|
+
<li>support custom content better (<a href="https://gitlab.com/rxap/packages/commit/c722dd36690d05597fbc048efa4ad5734df1dafe">c722dd3</a>)</li>
|
|
94
|
+
</ul>
|
|
88
95
|
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/components@19.0.4-dev.0...@rxap/components@19.0.4">19.0.4</a> (2025-05-16)</h2>
|
|
89
96
|
<p><strong>Note:</strong> Version bump only for package @rxap/components</p>
|
|
90
97
|
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/components@19.0.3...@rxap/components@19.0.4-dev.0">19.0.4-dev.0</a> (2025-03-12)</h2>
|
|
@@ -191,18 +191,17 @@
|
|
|
191
191
|
<h3 id="index">Index</h3>
|
|
192
192
|
<table class="table table-sm table-bordered index-table">
|
|
193
193
|
<tbody>
|
|
194
|
-
|
|
195
194
|
<tr>
|
|
196
195
|
<td class="col-md-4">
|
|
197
|
-
<h6><b>
|
|
196
|
+
<h6><b>Properties</b></h6>
|
|
198
197
|
</td>
|
|
199
198
|
</tr>
|
|
200
199
|
<tr>
|
|
201
200
|
<td class="col-md-4">
|
|
202
201
|
<ul class="index-list">
|
|
203
202
|
<li>
|
|
204
|
-
<span class="modifier">
|
|
205
|
-
<a href="#
|
|
203
|
+
<span class="modifier">Readonly</span>
|
|
204
|
+
<a href="#value" >value</a>
|
|
206
205
|
</li>
|
|
207
206
|
</ul>
|
|
208
207
|
</td>
|
|
@@ -210,14 +209,15 @@
|
|
|
210
209
|
|
|
211
210
|
<tr>
|
|
212
211
|
<td class="col-md-4">
|
|
213
|
-
<h6><b>
|
|
212
|
+
<h6><b>Methods</b></h6>
|
|
214
213
|
</td>
|
|
215
214
|
</tr>
|
|
216
215
|
<tr>
|
|
217
216
|
<td class="col-md-4">
|
|
218
217
|
<ul class="index-list">
|
|
219
218
|
<li>
|
|
220
|
-
|
|
219
|
+
<span class="modifier">Public</span>
|
|
220
|
+
<a href="#copied" >copied</a>
|
|
221
221
|
</li>
|
|
222
222
|
</ul>
|
|
223
223
|
</td>
|
|
@@ -226,88 +226,13 @@
|
|
|
226
226
|
|
|
227
227
|
|
|
228
228
|
|
|
229
|
+
|
|
229
230
|
</tbody>
|
|
230
231
|
</table>
|
|
231
232
|
</section>
|
|
232
233
|
|
|
233
|
-
<section data-compodoc="block-constructor">
|
|
234
|
-
<h3 id="constructor">Constructor</h3>
|
|
235
|
-
<table class="table table-sm table-bordered">
|
|
236
|
-
<tbody>
|
|
237
|
-
<tr>
|
|
238
|
-
<td class="col-md-4">
|
|
239
|
-
<code>constructor(snackbar: MatSnackBar)</code>
|
|
240
|
-
</td>
|
|
241
|
-
</tr>
|
|
242
|
-
<tr>
|
|
243
|
-
<td class="col-md-4">
|
|
244
|
-
<div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.ts:29</a></div>
|
|
245
|
-
</td>
|
|
246
|
-
</tr>
|
|
247
234
|
|
|
248
|
-
<tr>
|
|
249
|
-
<td class="col-md-4">
|
|
250
|
-
<div>
|
|
251
|
-
<b>Parameters :</b>
|
|
252
|
-
<table class="params">
|
|
253
|
-
<thead>
|
|
254
|
-
<tr>
|
|
255
|
-
<td>Name</td>
|
|
256
|
-
<td>Type</td>
|
|
257
|
-
<td>Optional</td>
|
|
258
|
-
</tr>
|
|
259
|
-
</thead>
|
|
260
|
-
<tbody>
|
|
261
|
-
<tr>
|
|
262
|
-
<td>snackbar</td>
|
|
263
|
-
|
|
264
|
-
<td>
|
|
265
|
-
<code>MatSnackBar</code>
|
|
266
|
-
</td>
|
|
267
|
-
|
|
268
|
-
<td>
|
|
269
|
-
No
|
|
270
|
-
</td>
|
|
271
|
-
|
|
272
|
-
</tr>
|
|
273
|
-
</tbody>
|
|
274
|
-
</table>
|
|
275
|
-
</div>
|
|
276
|
-
</td>
|
|
277
|
-
</tr>
|
|
278
|
-
</tbody>
|
|
279
|
-
</table>
|
|
280
|
-
</section>
|
|
281
235
|
|
|
282
|
-
<section data-compodoc="block-inputs">
|
|
283
|
-
<h3 id="inputs">Inputs</h3>
|
|
284
|
-
<table class="table table-sm table-bordered">
|
|
285
|
-
<tbody>
|
|
286
|
-
<tr>
|
|
287
|
-
<td class="col-md-4">
|
|
288
|
-
<a name="value"></a>
|
|
289
|
-
<b>value</b>
|
|
290
|
-
</td>
|
|
291
|
-
</tr>
|
|
292
|
-
<tr>
|
|
293
|
-
<td class="col-md-4">
|
|
294
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
295
|
-
|
|
296
|
-
</td>
|
|
297
|
-
</tr>
|
|
298
|
-
<tr>
|
|
299
|
-
<td class="col-md-4">
|
|
300
|
-
<i>Default value : </i><code>''</code>
|
|
301
|
-
</td>
|
|
302
|
-
</tr>
|
|
303
|
-
<tr>
|
|
304
|
-
<td class="col-md-2" colspan="2">
|
|
305
|
-
<div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.ts:29</a></div>
|
|
306
|
-
</td>
|
|
307
|
-
</tr>
|
|
308
|
-
</tbody>
|
|
309
|
-
</table>
|
|
310
|
-
</section>
|
|
311
236
|
|
|
312
237
|
|
|
313
238
|
|
|
@@ -356,6 +281,38 @@
|
|
|
356
281
|
</tbody>
|
|
357
282
|
</table>
|
|
358
283
|
</section>
|
|
284
|
+
<section data-compodoc="block-properties">
|
|
285
|
+
|
|
286
|
+
<h3 id="inputs">
|
|
287
|
+
Properties
|
|
288
|
+
</h3>
|
|
289
|
+
<table class="table table-sm table-bordered">
|
|
290
|
+
<tbody>
|
|
291
|
+
<tr>
|
|
292
|
+
<td class="col-md-4">
|
|
293
|
+
<a name="value"></a>
|
|
294
|
+
<span class="name">
|
|
295
|
+
<span class="modifier">Readonly</span>
|
|
296
|
+
<span ><b>value</b></span>
|
|
297
|
+
<a href="#value"><span class="icon ion-ios-link"></span></a>
|
|
298
|
+
</span>
|
|
299
|
+
</td>
|
|
300
|
+
</tr>
|
|
301
|
+
<tr>
|
|
302
|
+
<td class="col-md-4">
|
|
303
|
+
<i>Default value : </i><code>input('')</code>
|
|
304
|
+
</td>
|
|
305
|
+
</tr>
|
|
306
|
+
<tr>
|
|
307
|
+
<td class="col-md-4">
|
|
308
|
+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.ts:30</a></div>
|
|
309
|
+
</td>
|
|
310
|
+
</tr>
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
</tbody>
|
|
314
|
+
</table>
|
|
315
|
+
</section>
|
|
359
316
|
|
|
360
317
|
</div>
|
|
361
318
|
|
|
@@ -364,7 +321,9 @@
|
|
|
364
321
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
365
322
|
ChangeDetectionStrategy,
|
|
366
323
|
Component,
|
|
324
|
+
inject,
|
|
367
325
|
Inject,
|
|
326
|
+
input,
|
|
368
327
|
Input,
|
|
369
328
|
} from '@angular/core';
|
|
370
329
|
import {
|
|
@@ -388,14 +347,12 @@ import { MatButtonModule } from '@angular/material/button';
|
|
|
388
347
|
]
|
|
389
348
|
})
|
|
390
349
|
export class CopyToClipboardButtonComponent {
|
|
391
|
-
|
|
392
|
-
public value = '';
|
|
350
|
+
readonly value = input('');
|
|
393
351
|
|
|
394
|
-
|
|
395
|
-
}
|
|
352
|
+
private readonly snackbar = inject(MatSnackBar);
|
|
396
353
|
|
|
397
354
|
public copied() {
|
|
398
|
-
this.snackbar.open(&#
|
|
355
|
+
this.snackbar.open($localize`Successfully copied to the clipboard.`, 'OK', {
|
|
399
356
|
duration: 2500,
|
|
400
357
|
});
|
|
401
358
|
}
|
|
@@ -407,7 +364,7 @@ export class CopyToClipboardButtonComponent {
|
|
|
407
364
|
<pre class="line-numbers"><code class="language-html"><button
|
|
408
365
|
(cdkCopyToClipboardCopied)="copied()"
|
|
409
366
|
(click)="$event.stopPropagation()"
|
|
410
|
-
[cdkCopyToClipboard]="value"
|
|
367
|
+
[cdkCopyToClipboard]="value()"
|
|
411
368
|
mat-icon-button
|
|
412
369
|
type="button"
|
|
413
370
|
>
|
|
@@ -448,7 +405,7 @@ export class CopyToClipboardButtonComponent {
|
|
|
448
405
|
<script src="../js/libs/htmlparser.js"></script>
|
|
449
406
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
450
407
|
<script>
|
|
451
|
-
var COMPONENT_TEMPLATE = '<div><button (cdkCopyToClipboardCopied)="copied()" (click)="$event.stopPropagation()" [cdkCopyToClipboard]="value" mat-icon-button type="button"> <mat-icon>content_copy</mat-icon></button></div>'
|
|
408
|
+
var COMPONENT_TEMPLATE = '<div><button (cdkCopyToClipboardCopied)="copied()" (click)="$event.stopPropagation()" [cdkCopyToClipboard]="value()" mat-icon-button type="button"> <mat-icon>content_copy</mat-icon></button></div>'
|
|
452
409
|
var COMPONENTS = [{'name': 'ConfirmComponent', 'selector': 'rxap-confirm'},{'name': 'CopyToClipboardButtonComponent', 'selector': 'rxap-copy-to-clipboard-button'},{'name': 'CopyToClipboardComponent', 'selector': 'rxap-copy-to-clipboard'},{'name': 'EmptyRouterOutletComponent', 'selector': 'rxap-empty-router-outlet'},{'name': 'JsonViewerComponent', 'selector': 'rxap-json-viewer'},{'name': 'NavigateBackButtonComponent', 'selector': 'rxap-navigate-back-button'}];
|
|
453
410
|
var DIRECTIVES = [{'name': 'ConfirmDirective', 'selector': '[rxapConfirm]'}];
|
|
454
411
|
var ACTUAL_COMPONENT = {'name': 'CopyToClipboardButtonComponent'};
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
<tr>
|
|
158
158
|
<td class="col-md-3">imports</td>
|
|
159
159
|
<td class="col-md-9">
|
|
160
|
-
<code>NgIf</code>
|
|
161
160
|
<code><a href="../components/CopyToClipboardButtonComponent.html" target="_self" >CopyToClipboardButtonComponent</a></code>
|
|
161
|
+
<code>NgClass</code>
|
|
162
162
|
</td>
|
|
163
163
|
</tr>
|
|
164
164
|
|
|
@@ -189,6 +189,45 @@
|
|
|
189
189
|
<h3 id="index">Index</h3>
|
|
190
190
|
<table class="table table-sm table-bordered index-table">
|
|
191
191
|
<tbody>
|
|
192
|
+
<tr>
|
|
193
|
+
<td class="col-md-4">
|
|
194
|
+
<h6><b>Properties</b></h6>
|
|
195
|
+
</td>
|
|
196
|
+
</tr>
|
|
197
|
+
<tr>
|
|
198
|
+
<td class="col-md-4">
|
|
199
|
+
<ul class="index-list">
|
|
200
|
+
<li>
|
|
201
|
+
<span class="modifier">Readonly</span>
|
|
202
|
+
<a href="#active" >active</a>
|
|
203
|
+
</li>
|
|
204
|
+
<li>
|
|
205
|
+
<span class="modifier">Readonly</span>
|
|
206
|
+
<a href="#containerClass" >containerClass</a>
|
|
207
|
+
</li>
|
|
208
|
+
<li>
|
|
209
|
+
<span class="modifier">Readonly</span>
|
|
210
|
+
<a href="#disabled" >disabled</a>
|
|
211
|
+
</li>
|
|
212
|
+
<li>
|
|
213
|
+
<span class="modifier">Readonly</span>
|
|
214
|
+
<a href="#isPositionAfter" >isPositionAfter</a>
|
|
215
|
+
</li>
|
|
216
|
+
<li>
|
|
217
|
+
<span class="modifier">Readonly</span>
|
|
218
|
+
<a href="#isPositionBefore" >isPositionBefore</a>
|
|
219
|
+
</li>
|
|
220
|
+
<li>
|
|
221
|
+
<span class="modifier">Readonly</span>
|
|
222
|
+
<a href="#position" >position</a>
|
|
223
|
+
</li>
|
|
224
|
+
<li>
|
|
225
|
+
<span class="modifier">Readonly</span>
|
|
226
|
+
<a href="#value" >value</a>
|
|
227
|
+
</li>
|
|
228
|
+
</ul>
|
|
229
|
+
</td>
|
|
230
|
+
</tr>
|
|
192
231
|
|
|
193
232
|
|
|
194
233
|
<tr>
|
|
@@ -230,12 +269,6 @@
|
|
|
230
269
|
<b>active</b>
|
|
231
270
|
</td>
|
|
232
271
|
</tr>
|
|
233
|
-
<tr>
|
|
234
|
-
<td class="col-md-4">
|
|
235
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
236
|
-
|
|
237
|
-
</td>
|
|
238
|
-
</tr>
|
|
239
272
|
<tr>
|
|
240
273
|
<td class="col-md-4">
|
|
241
274
|
<i>Default value : </i><code>true</code>
|
|
@@ -243,7 +276,7 @@
|
|
|
243
276
|
</tr>
|
|
244
277
|
<tr>
|
|
245
278
|
<td class="col-md-2" colspan="2">
|
|
246
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
279
|
+
<div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/lib/copy-to-clipboard/copy-to-clipboard.component.ts:22</a></div>
|
|
247
280
|
</td>
|
|
248
281
|
</tr>
|
|
249
282
|
</tbody>
|
|
@@ -256,12 +289,6 @@
|
|
|
256
289
|
<b>disabled</b>
|
|
257
290
|
</td>
|
|
258
291
|
</tr>
|
|
259
|
-
<tr>
|
|
260
|
-
<td class="col-md-4">
|
|
261
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
262
|
-
|
|
263
|
-
</td>
|
|
264
|
-
</tr>
|
|
265
292
|
<tr>
|
|
266
293
|
<td class="col-md-4">
|
|
267
294
|
<i>Default value : </i><code>false</code>
|
|
@@ -269,7 +296,7 @@
|
|
|
269
296
|
</tr>
|
|
270
297
|
<tr>
|
|
271
298
|
<td class="col-md-2" colspan="2">
|
|
272
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
299
|
+
<div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/lib/copy-to-clipboard/copy-to-clipboard.component.ts:23</a></div>
|
|
273
300
|
</td>
|
|
274
301
|
</tr>
|
|
275
302
|
</tbody>
|
|
@@ -282,12 +309,6 @@
|
|
|
282
309
|
<b>value</b>
|
|
283
310
|
</td>
|
|
284
311
|
</tr>
|
|
285
|
-
<tr>
|
|
286
|
-
<td class="col-md-4">
|
|
287
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
288
|
-
|
|
289
|
-
</td>
|
|
290
|
-
</tr>
|
|
291
312
|
<tr>
|
|
292
313
|
<td class="col-md-4">
|
|
293
314
|
<i>Required : </i> <b>true</b>
|
|
@@ -295,7 +316,7 @@
|
|
|
295
316
|
</tr>
|
|
296
317
|
<tr>
|
|
297
318
|
<td class="col-md-2" colspan="2">
|
|
298
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
319
|
+
<div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/lib/copy-to-clipboard/copy-to-clipboard.component.ts:24</a></div>
|
|
299
320
|
</td>
|
|
300
321
|
</tr>
|
|
301
322
|
</tbody>
|
|
@@ -305,16 +326,203 @@
|
|
|
305
326
|
|
|
306
327
|
|
|
307
328
|
|
|
329
|
+
<section data-compodoc="block-properties">
|
|
330
|
+
|
|
331
|
+
<h3 id="inputs">
|
|
332
|
+
Properties
|
|
333
|
+
</h3>
|
|
334
|
+
<table class="table table-sm table-bordered">
|
|
335
|
+
<tbody>
|
|
336
|
+
<tr>
|
|
337
|
+
<td class="col-md-4">
|
|
338
|
+
<a name="active"></a>
|
|
339
|
+
<span class="name">
|
|
340
|
+
<span class="modifier">Readonly</span>
|
|
341
|
+
<span ><b>active</b></span>
|
|
342
|
+
<a href="#active"><span class="icon ion-ios-link"></span></a>
|
|
343
|
+
</span>
|
|
344
|
+
</td>
|
|
345
|
+
</tr>
|
|
346
|
+
<tr>
|
|
347
|
+
<td class="col-md-4">
|
|
348
|
+
<i>Default value : </i><code>true</code>
|
|
349
|
+
</td>
|
|
350
|
+
</tr>
|
|
351
|
+
<tr>
|
|
352
|
+
<td class="col-md-4">
|
|
353
|
+
<div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/lib/copy-to-clipboard/copy-to-clipboard.component.ts:22</a></div>
|
|
354
|
+
</td>
|
|
355
|
+
</tr>
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
</tbody>
|
|
359
|
+
</table>
|
|
360
|
+
<table class="table table-sm table-bordered">
|
|
361
|
+
<tbody>
|
|
362
|
+
<tr>
|
|
363
|
+
<td class="col-md-4">
|
|
364
|
+
<a name="containerClass"></a>
|
|
365
|
+
<span class="name">
|
|
366
|
+
<span class="modifier">Readonly</span>
|
|
367
|
+
<span ><b>containerClass</b></span>
|
|
368
|
+
<a href="#containerClass"><span class="icon ion-ios-link"></span></a>
|
|
369
|
+
</span>
|
|
370
|
+
</td>
|
|
371
|
+
</tr>
|
|
372
|
+
<tr>
|
|
373
|
+
<td class="col-md-4">
|
|
374
|
+
<i>Default value : </i><code>input<string>('flex flex-row gap-2')</code>
|
|
375
|
+
</td>
|
|
376
|
+
</tr>
|
|
377
|
+
<tr>
|
|
378
|
+
<td class="col-md-4">
|
|
379
|
+
<div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/copy-to-clipboard/copy-to-clipboard.component.ts:26</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="disabled"></a>
|
|
391
|
+
<span class="name">
|
|
392
|
+
<span class="modifier">Readonly</span>
|
|
393
|
+
<span ><b>disabled</b></span>
|
|
394
|
+
<a href="#disabled"><span class="icon ion-ios-link"></span></a>
|
|
395
|
+
</span>
|
|
396
|
+
</td>
|
|
397
|
+
</tr>
|
|
398
|
+
<tr>
|
|
399
|
+
<td class="col-md-4">
|
|
400
|
+
<i>Default value : </i><code>false</code>
|
|
401
|
+
</td>
|
|
402
|
+
</tr>
|
|
403
|
+
<tr>
|
|
404
|
+
<td class="col-md-4">
|
|
405
|
+
<div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/lib/copy-to-clipboard/copy-to-clipboard.component.ts:23</a></div>
|
|
406
|
+
</td>
|
|
407
|
+
</tr>
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
</tbody>
|
|
411
|
+
</table>
|
|
412
|
+
<table class="table table-sm table-bordered">
|
|
413
|
+
<tbody>
|
|
414
|
+
<tr>
|
|
415
|
+
<td class="col-md-4">
|
|
416
|
+
<a name="isPositionAfter"></a>
|
|
417
|
+
<span class="name">
|
|
418
|
+
<span class="modifier">Readonly</span>
|
|
419
|
+
<span ><b>isPositionAfter</b></span>
|
|
420
|
+
<a href="#isPositionAfter"><span class="icon ion-ios-link"></span></a>
|
|
421
|
+
</span>
|
|
422
|
+
</td>
|
|
423
|
+
</tr>
|
|
424
|
+
<tr>
|
|
425
|
+
<td class="col-md-4">
|
|
426
|
+
<i>Default value : </i><code>computed(() => this.position() === 'after')</code>
|
|
427
|
+
</td>
|
|
428
|
+
</tr>
|
|
429
|
+
<tr>
|
|
430
|
+
<td class="col-md-4">
|
|
431
|
+
<div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/copy-to-clipboard/copy-to-clipboard.component.ts:31</a></div>
|
|
432
|
+
</td>
|
|
433
|
+
</tr>
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
</tbody>
|
|
437
|
+
</table>
|
|
438
|
+
<table class="table table-sm table-bordered">
|
|
439
|
+
<tbody>
|
|
440
|
+
<tr>
|
|
441
|
+
<td class="col-md-4">
|
|
442
|
+
<a name="isPositionBefore"></a>
|
|
443
|
+
<span class="name">
|
|
444
|
+
<span class="modifier">Readonly</span>
|
|
445
|
+
<span ><b>isPositionBefore</b></span>
|
|
446
|
+
<a href="#isPositionBefore"><span class="icon ion-ios-link"></span></a>
|
|
447
|
+
</span>
|
|
448
|
+
</td>
|
|
449
|
+
</tr>
|
|
450
|
+
<tr>
|
|
451
|
+
<td class="col-md-4">
|
|
452
|
+
<i>Default value : </i><code>computed(() => this.position() === 'before')</code>
|
|
453
|
+
</td>
|
|
454
|
+
</tr>
|
|
455
|
+
<tr>
|
|
456
|
+
<td class="col-md-4">
|
|
457
|
+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/copy-to-clipboard/copy-to-clipboard.component.ts:30</a></div>
|
|
458
|
+
</td>
|
|
459
|
+
</tr>
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
</tbody>
|
|
463
|
+
</table>
|
|
464
|
+
<table class="table table-sm table-bordered">
|
|
465
|
+
<tbody>
|
|
466
|
+
<tr>
|
|
467
|
+
<td class="col-md-4">
|
|
468
|
+
<a name="position"></a>
|
|
469
|
+
<span class="name">
|
|
470
|
+
<span class="modifier">Readonly</span>
|
|
471
|
+
<span ><b>position</b></span>
|
|
472
|
+
<a href="#position"><span class="icon ion-ios-link"></span></a>
|
|
473
|
+
</span>
|
|
474
|
+
</td>
|
|
475
|
+
</tr>
|
|
476
|
+
<tr>
|
|
477
|
+
<td class="col-md-4">
|
|
478
|
+
<i>Default value : </i><code>input<'before' | 'after'>('before')</code>
|
|
479
|
+
</td>
|
|
480
|
+
</tr>
|
|
481
|
+
<tr>
|
|
482
|
+
<td class="col-md-4">
|
|
483
|
+
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/copy-to-clipboard/copy-to-clipboard.component.ts:28</a></div>
|
|
484
|
+
</td>
|
|
485
|
+
</tr>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
</tbody>
|
|
489
|
+
</table>
|
|
490
|
+
<table class="table table-sm table-bordered">
|
|
491
|
+
<tbody>
|
|
492
|
+
<tr>
|
|
493
|
+
<td class="col-md-4">
|
|
494
|
+
<a name="value"></a>
|
|
495
|
+
<span class="name">
|
|
496
|
+
<span class="modifier">Readonly</span>
|
|
497
|
+
<span ><b>value</b></span>
|
|
498
|
+
<a href="#value"><span class="icon ion-ios-link"></span></a>
|
|
499
|
+
</span>
|
|
500
|
+
</td>
|
|
501
|
+
</tr>
|
|
502
|
+
<tr>
|
|
503
|
+
<td class="col-md-4">
|
|
504
|
+
<div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/lib/copy-to-clipboard/copy-to-clipboard.component.ts:24</a></div>
|
|
505
|
+
</td>
|
|
506
|
+
</tr>
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
</tbody>
|
|
510
|
+
</table>
|
|
511
|
+
</section>
|
|
308
512
|
|
|
309
513
|
</div>
|
|
310
514
|
|
|
311
515
|
|
|
312
516
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
313
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
517
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
518
|
+
NgClass,
|
|
519
|
+
NgIf,
|
|
520
|
+
} from '@angular/common';
|
|
314
521
|
import {
|
|
315
522
|
ChangeDetectionStrategy,
|
|
316
523
|
Component,
|
|
317
|
-
|
|
524
|
+
computed,
|
|
525
|
+
input,
|
|
318
526
|
} from '@angular/core';
|
|
319
527
|
import { CopyToClipboardButtonComponent } from '../copy-to-clipboard-button/copy-to-clipboard-button.component';
|
|
320
528
|
|
|
@@ -323,23 +531,37 @@ import { CopyToClipboardButtonComponent } from '../copy-to-clipboard-button
|
|
|
323
531
|
templateUrl: './copy-to-clipboard.component.html',
|
|
324
532
|
styleUrls: ['./copy-to-clipboard.component.scss'],
|
|
325
533
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
326
|
-
|
|
534
|
+
imports: [ CopyToClipboardButtonComponent, NgClass ],
|
|
327
535
|
})
|
|
328
536
|
export class CopyToClipboardComponent {
|
|
329
537
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
538
|
+
readonly active = input(true);
|
|
539
|
+
readonly disabled = input(false);
|
|
540
|
+
readonly value = input.required<string>();
|
|
541
|
+
|
|
542
|
+
readonly containerClass = input<string>('flex flex-row gap-2');
|
|
543
|
+
|
|
544
|
+
readonly position = input<'before' | 'after'>('before');
|
|
545
|
+
|
|
546
|
+
readonly isPositionBefore = computed(() => this.position() === 'before');
|
|
547
|
+
readonly isPositionAfter = computed(() => this.position() === 'after');
|
|
333
548
|
|
|
334
549
|
}
|
|
335
550
|
</code></pre>
|
|
336
551
|
</div>
|
|
337
552
|
|
|
338
553
|
<div class="tab-pane fade " id="templateData">
|
|
339
|
-
<pre class="line-numbers"><code class="language-html"><div class="flex flex-row gap-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
554
|
+
<pre class="line-numbers"><code class="language-html"><div class="flex flex-row gap-2 items-center">
|
|
555
|
+
@if (active() && isPositionBefore()) {
|
|
556
|
+
<rxap-copy-to-clipboard-button [value]="value()" class="w-[40px]"></rxap-copy-to-clipboard-button>
|
|
557
|
+
}
|
|
558
|
+
<span #ref class="grow {{ containerClass() }}" [ngClass]="{ 'hidden': !ref.innerHTML.trim() }"><ng-content></ng-content></span>
|
|
559
|
+
@if (!ref.innerHTML.trim()) {
|
|
560
|
+
<span class="grow">{{ value() }}</span>
|
|
561
|
+
}
|
|
562
|
+
@if (active() && isPositionAfter()) {
|
|
563
|
+
<rxap-copy-to-clipboard-button [value]="value()" class="w-[40px]"></rxap-copy-to-clipboard-button>
|
|
564
|
+
}
|
|
343
565
|
</div>
|
|
344
566
|
</code></pre>
|
|
345
567
|
</div>
|
|
@@ -376,7 +598,7 @@ export class CopyToClipboardComponent {
|
|
|
376
598
|
<script src="../js/libs/htmlparser.js"></script>
|
|
377
599
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
378
600
|
<script>
|
|
379
|
-
var COMPONENT_TEMPLATE = '<div><div class="flex flex-row gap-
|
|
601
|
+
var COMPONENT_TEMPLATE = '<div><div class="flex flex-row gap-2 items-center"> @if (active() && isPositionBefore()) { <rxap-copy-to-clipboard-button [value]="value()" class="w-[40px]"></rxap-copy-to-clipboard-button> } <span #ref class="grow {{ containerClass() }}" [ngClass]="{ \'hidden\': !ref.innerHTML.trim() }"><ng-content></ng-content></span> @if (!ref.innerHTML.trim()) { <span class="grow">{{ value() }}</span> } @if (active() && isPositionAfter()) { <rxap-copy-to-clipboard-button [value]="value()" class="w-[40px]"></rxap-copy-to-clipboard-button> }</div></div>'
|
|
380
602
|
var COMPONENTS = [{'name': 'ConfirmComponent', 'selector': 'rxap-confirm'},{'name': 'CopyToClipboardButtonComponent', 'selector': 'rxap-copy-to-clipboard-button'},{'name': 'CopyToClipboardComponent', 'selector': 'rxap-copy-to-clipboard'},{'name': 'EmptyRouterOutletComponent', 'selector': 'rxap-empty-router-outlet'},{'name': 'JsonViewerComponent', 'selector': 'rxap-json-viewer'},{'name': 'NavigateBackButtonComponent', 'selector': 'rxap-navigate-back-button'}];
|
|
381
603
|
var DIRECTIVES = [{'name': 'ConfirmDirective', 'selector': '[rxapConfirm]'}];
|
|
382
604
|
var ACTUAL_COMPONENT = {'name': 'CopyToClipboardComponent'};
|