@rxap/components 22.0.0-dev.0 → 22.0.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 (94) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/compodoc/architecture.html +222 -0
  3. package/compodoc/changelog.html +65 -5
  4. package/compodoc/components/ConfirmComponent.html +112 -116
  5. package/compodoc/components/CopyToClipboardButtonComponent.html +165 -70
  6. package/compodoc/components/CopyToClipboardComponent.html +205 -176
  7. package/compodoc/components/EmptyRouterOutletComponent.html +86 -22
  8. package/compodoc/components/JsonViewerComponent.html +162 -94
  9. package/compodoc/components/NavigateBackButtonComponent.html +111 -26
  10. package/compodoc/dependencies.html +108 -27
  11. package/compodoc/directives/ConfirmDirective.html +266 -139
  12. package/compodoc/index.html +46 -5
  13. package/compodoc/interfaces/Segment.html +254 -184
  14. package/compodoc/js/architecture-graph.js +288 -0
  15. package/compodoc/js/libs/bootstrap-native.js +4 -2
  16. package/compodoc/js/libs/jszip.min.js +13 -0
  17. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  18. package/compodoc/js/libs/tablesort.min.js +3 -3
  19. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  20. package/compodoc/js/libs/vis-network.min.js +78 -0
  21. package/compodoc/js/menu-wc.js +25 -12
  22. package/compodoc/js/menu.js +10 -11
  23. package/compodoc/js/routes/routes_index.js +1 -0
  24. package/compodoc/js/routes.js +142 -34
  25. package/compodoc/js/search/search-lunr.js +6 -8
  26. package/compodoc/js/search/search.js +118 -66
  27. package/compodoc/js/search/search_index.js +2 -2
  28. package/compodoc/js/tabs.js +98 -15
  29. package/compodoc/js/tree.js +44 -7
  30. package/compodoc/license.html +48 -6
  31. package/compodoc/llms.txt +141 -0
  32. package/compodoc/miscellaneous/functions.html +48 -6
  33. package/compodoc/miscellaneous/variables.html +65 -6
  34. package/compodoc/modules.html +44 -3
  35. package/compodoc/overview.html +54 -3
  36. package/compodoc/properties.html +45 -4
  37. package/compodoc/routes.html +227 -0
  38. package/compodoc/styles/compodoc.css +365 -44
  39. package/compodoc/styles/dark.css +16 -0
  40. package/compodoc/template-playground/default-templates.json +192 -0
  41. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  42. package/compodoc/template-playground/main.ts +9 -0
  43. package/compodoc/template-playground/template-editor.service.ts +173 -0
  44. package/compodoc/template-playground/template-playground.component.ts +614 -0
  45. package/compodoc/template-playground/template-playground.module.ts +29 -0
  46. package/compodoc/template-playground/zip-export.service.ts +86 -0
  47. package/compodoc/template-playground-app/app.js +1389 -0
  48. package/compodoc/template-playground-app/index.html +462 -0
  49. package/docs/documentation.json +436 -314
  50. package/docs/html/assets/highlight.css +1 -1
  51. package/docs/html/assets/icons.js +1 -1
  52. package/docs/html/assets/icons.svg +1 -1
  53. package/docs/html/assets/main.js +5 -5
  54. package/docs/html/assets/search.js +1 -1
  55. package/docs/html/assets/style.css +265 -228
  56. package/docs/html/classes/ConfirmComponent.html +76 -4
  57. package/docs/html/classes/ConfirmDirective.html +209 -17
  58. package/docs/html/classes/CopyToClipboardButtonComponent.html +88 -4
  59. package/docs/html/classes/CopyToClipboardComponent.html +106 -9
  60. package/docs/html/classes/EmptyRouterOutletComponent.html +56 -2
  61. package/docs/html/classes/JsonViewerComponent.html +187 -14
  62. package/docs/html/classes/NavigateBackButtonComponent.html +74 -3
  63. package/docs/html/hierarchy.html +29 -0
  64. package/docs/html/index.html +40 -4
  65. package/docs/html/interfaces/Segment.html +79 -6
  66. package/docs/html/modules.html +44 -1
  67. package/docs/html/variables/JSON_VIEW_IGNORED_PROPERTIES.html +33 -1
  68. package/docs/html/variables/JSON_VIEW_IGNORED_TYPES.html +33 -1
  69. package/docs/markdown/README.md +1 -1
  70. package/docs/markdown/classes/ConfirmComponent.md +7 -7
  71. package/docs/markdown/classes/ConfirmDirective.md +30 -28
  72. package/docs/markdown/classes/CopyToClipboardButtonComponent.md +7 -7
  73. package/docs/markdown/classes/CopyToClipboardComponent.md +12 -12
  74. package/docs/markdown/classes/EmptyRouterOutletComponent.md +5 -5
  75. package/docs/markdown/classes/JsonViewerComponent.md +20 -20
  76. package/docs/markdown/classes/NavigateBackButtonComponent.md +6 -6
  77. package/docs/markdown/globals.md +2 -2
  78. package/docs/markdown/interfaces/Segment.md +8 -8
  79. package/docs/markdown/variables/JSON_VIEW_IGNORED_PROPERTIES.md +2 -2
  80. package/docs/markdown/variables/JSON_VIEW_IGNORED_TYPES.md +2 -2
  81. package/docs/wiki/Class.ConfirmComponent.md +6 -6
  82. package/docs/wiki/Class.ConfirmDirective.md +29 -27
  83. package/docs/wiki/Class.CopyToClipboardButtonComponent.md +6 -6
  84. package/docs/wiki/Class.CopyToClipboardComponent.md +11 -11
  85. package/docs/wiki/Class.EmptyRouterOutletComponent.md +4 -4
  86. package/docs/wiki/Class.JsonViewerComponent.md +19 -19
  87. package/docs/wiki/Class.NavigateBackButtonComponent.md +5 -5
  88. package/docs/wiki/Interface.Segment.md +7 -7
  89. package/docs/wiki/Variable.JSON_VIEW_IGNORED_PROPERTIES.md +1 -1
  90. package/docs/wiki/Variable.JSON_VIEW_IGNORED_TYPES.md +1 -1
  91. package/docs/wiki/globals.md +1 -1
  92. package/fesm2022/rxap-components.mjs +9 -7
  93. package/fesm2022/rxap-components.mjs.map +1 -1
  94. package/package.json +12 -12
@@ -61,6 +61,20 @@
61
61
  }
62
62
  toggleDarkMode(darkModeState);
63
63
  </script>
64
+ <script>
65
+ // --- Iframe navigation tracking for Template Playground ---
66
+ function sendCurrentUrlToParent() {
67
+ if (window.parent && window.parent !== window) {
68
+ window.parent.postMessage({
69
+ type: 'compodoc-iframe-navigate',
70
+ url: window.location.pathname + window.location.hash
71
+ }, '*');
72
+ }
73
+ }
74
+ window.addEventListener('hashchange', sendCurrentUrlToParent, false);
75
+ window.addEventListener('popstate', sendCurrentUrlToParent, false);
76
+ window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
77
+ </script>
64
78
 
65
79
  <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
66
80
  <div class="d-flex">
@@ -70,7 +84,14 @@
70
84
  </div>
71
85
 
72
86
  <div class="xs-menu menu" id="mobile-menu">
73
- <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
87
+ <div id="book-search-input" role="search">
88
+ <input type="text" placeholder="Type to search">
89
+ <button type="button"
90
+ class="search-input-clear"
91
+ aria-label="Clear search"
92
+ data-search-input-clear>&times;</button>
93
+ </div>
94
+ <compodoc-menu></compodoc-menu>
74
95
  </div>
75
96
 
76
97
  <div class="container-fluid main">
@@ -85,6 +106,10 @@
85
106
 
86
107
 
87
108
 
109
+
110
+
111
+
112
+
88
113
  <ol class="breadcrumb">
89
114
  <li class="breadcrumb-item">Components</li>
90
115
  <li class="breadcrumb-item"
@@ -92,11 +117,20 @@
92
117
  CopyToClipboardButtonComponent</li>
93
118
  </ol>
94
119
 
120
+ <div class="io-file io-file-path" data-compodoc="entity-file-path">
121
+ <span class="icon ion-ios-document" aria-hidden="true"></span>
122
+ <code>src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.ts</code>
123
+ </div>
124
+
95
125
  <ul class="nav nav-tabs" role="tablist">
96
126
  <li class="nav-item">
97
127
  <a href="#info" class="nav-link active"
98
128
  role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
99
129
  </li>
130
+ <li class="nav-item">
131
+ <a href="#api" class="nav-link"
132
+ role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
133
+ </li>
100
134
  <li class="nav-item">
101
135
  <a href="#source" class="nav-link"
102
136
  role="tab" id="source-tab" data-bs-toggle="tab" data-link="source">Source</a>
@@ -116,14 +150,7 @@
116
150
  </ul>
117
151
 
118
152
  <div class="tab-content">
119
- <div class="tab-pane fade active in" id="info"><p class="comment">
120
- <h3>File</h3>
121
- </p>
122
- <p class="comment">
123
- <code>src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.ts</code>
124
- </p>
125
-
126
-
153
+ <div class="tab-pane fade active in" id="info">
127
154
 
128
155
 
129
156
 
@@ -157,10 +184,14 @@
157
184
  <tr>
158
185
  <td class="col-md-3">imports</td>
159
186
  <td class="col-md-9">
160
- <code>MatButtonModule</code>
161
- <code>ClipboardModule</code>
162
- <code>MatIconModule</code>
163
- <code>MatSnackBarModule</code>
187
+ <div> <code>MatButtonModule</code>
188
+ </div>
189
+ <div> <code>ClipboardModule</code>
190
+ </div>
191
+ <div> <code>MatIconModule</code>
192
+ </div>
193
+ <div> <code>MatSnackBarModule</code>
194
+ </div>
164
195
  </td>
165
196
  </tr>
166
197
 
@@ -171,6 +202,7 @@
171
202
 
172
203
 
173
204
 
205
+
174
206
  <tr>
175
207
  <td class="col-md-3">templateUrl</td>
176
208
  <td class="col-md-9"><code>./copy-to-clipboard-button.component.html</code></td>
@@ -187,51 +219,114 @@
187
219
  </table>
188
220
  </section>
189
221
 
190
- <section data-compodoc="block-index">
222
+ <section data-compodoc="block-relationships">
223
+ <h3>Relationships</h3>
224
+
225
+ <div class="row pt-3">
226
+ <div class="col-sm-6">
227
+ <h4>Used by</h4>
228
+ <ul class="list-unstyled relationships-list">
229
+ <li>
230
+ <code><a href="../components/CopyToClipboardComponent.html" target="_self" >CopyToClipboardComponent</a></code>
231
+ </li>
232
+ </ul>
233
+ </div>
234
+
235
+ <div class="col-sm-6">
236
+ <h4>Depends on</h4>
237
+ <ul class="list-unstyled relationships-list">
238
+ <li>
239
+ <code>MatButtonModule</code>
240
+ </li>
241
+ <li>
242
+ <code>ClipboardModule</code>
243
+ </li>
244
+ <li>
245
+ <code>MatIconModule</code>
246
+ </li>
247
+ <li>
248
+ <code>MatSnackBarModule</code>
249
+ </li>
250
+ </ul>
251
+ </div>
252
+ </div>
253
+ </section>
254
+ </div>
255
+
256
+ <div class="tab-pane fade " id="api"> <section data-compodoc="block-index">
191
257
  <h3 id="index">Index</h3>
192
- <table class="table table-sm table-bordered index-table">
193
- <tbody>
258
+
259
+ <table class="table table-sm table-bordered index-table">
260
+ <tbody>
194
261
  <tr>
195
- <td class="col-md-4">
196
- <h6><b>Properties</b></h6>
262
+ <td class="col-md-3">
263
+ <h6><b>Methods</b></h6>
197
264
  </td>
198
- </tr>
199
- <tr>
200
- <td class="col-md-4">
265
+ <td class="col-md-9">
201
266
  <ul class="index-list">
202
267
  <li>
203
- <span class="modifier">Readonly</span>
204
- <a href="#value" >value</a>
268
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
269
+ <span class="modifier">Public</span>
270
+ <a href="#copied" >copied</a>
205
271
  </li>
206
272
  </ul>
207
273
  </td>
208
274
  </tr>
275
+ </tbody>
276
+ </table>
209
277
 
278
+ <table class="table table-sm table-bordered index-table">
279
+ <tbody>
210
280
  <tr>
211
- <td class="col-md-4">
212
- <h6><b>Methods</b></h6>
281
+ <td class="col-md-3">
282
+ <h6><b>Inputs</b></h6>
213
283
  </td>
214
- </tr>
215
- <tr>
216
- <td class="col-md-4">
284
+ <td class="col-md-9">
217
285
  <ul class="index-list">
218
286
  <li>
219
- <span class="modifier">Public</span>
220
- <a href="#copied" >copied</a>
287
+ <span class="reference-badge reference-badge--property" aria-hidden="true">I</span><a href="#value" >value</a>
221
288
  </li>
222
289
  </ul>
223
290
  </td>
224
291
  </tr>
292
+ </tbody>
293
+ </table>
225
294
 
226
295
 
227
296
 
228
297
 
229
-
230
- </tbody>
231
- </table>
232
298
  </section>
233
299
 
234
300
 
301
+ <section data-compodoc="block-inputs">
302
+ <h3 id="inputs">Inputs</h3>
303
+ <table class="table table-sm table-bordered">
304
+ <tbody>
305
+ <tr>
306
+ <td class="col-md-4">
307
+ <a name="value"></a>
308
+ <b>value</b>
309
+ </td>
310
+ </tr>
311
+ <tr>
312
+ <td class="col-md-4">
313
+ <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
314
+
315
+ </td>
316
+ </tr>
317
+ <tr>
318
+ <td class="col-md-4">
319
+ <i>Default value : </i><code>&#x27;&#x27;</code>
320
+ </td>
321
+ </tr>
322
+ <tr>
323
+ <td class="col-md-2" colspan="2">
324
+ <div class="io-line">Defined in <a href="" data-line="45" class="link-to-prism">src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.ts:45</a></div>
325
+ </td>
326
+ </tr>
327
+ </tbody>
328
+ </table>
329
+ </section>
235
330
 
236
331
 
237
332
 
@@ -263,8 +358,8 @@
263
358
 
264
359
  <tr>
265
360
  <td class="col-md-4">
266
- <div class="io-line">Defined in <a href="" data-line="34"
267
- class="link-to-prism">src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.ts:34</a></div>
361
+ <div class="io-line">Defined in <a href="" data-line="49"
362
+ class="link-to-prism">src/lib/copy-to-clipboard-button/copy-to-clipboard-button.component.ts:49</a></div>
268
363
  </td>
269
364
  </tr>
270
365
 
@@ -281,39 +376,8 @@
281
376
  </tbody>
282
377
  </table>
283
378
  </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(&#x27;&#x27;)</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
379
 
312
380
 
313
- </tbody>
314
- </table>
315
- </section>
316
-
317
381
  </div>
318
382
 
319
383
 
@@ -333,7 +397,22 @@ import {
333
397
  import { MatIconModule } from &#x27;@angular/material/icon&#x27;;
334
398
  import { ClipboardModule } from &#x27;@angular/cdk/clipboard&#x27;;
335
399
  import { MatButtonModule } from &#x27;@angular/material/button&#x27;;
336
-
400
+ import { Showcase } from &#x27;@ng-prism/core&#x27;;
401
+
402
+ @Showcase&lt;CopyToClipboardButtonComponent&gt;({
403
+ title: &#x27;Copy To Clipboard Button&#x27;,
404
+ category: &#x27;Components&#x27;,
405
+ description: &#x27;Icon button that copies the given value to the clipboard and confirms it with a snack bar.&#x27;,
406
+ status: &#x27;stable&#x27;,
407
+ variants: [
408
+ { name: &#x27;Default&#x27;, inputs: { value: &#x27;npm install @rxap/components&#x27; } },
409
+ { name: &#x27;Empty value&#x27;, description: &#x27;Copies an empty string.&#x27; },
410
+ ],
411
+ states: [
412
+ { name: &#x27;Hover&#x27;, pseudo: { hover: &#x27;button&#x27; } },
413
+ { name: &#x27;Focus visible&#x27;, pseudo: { &#x27;focus-visible&#x27;: &#x27;button&#x27; } },
414
+ ],
415
+ })
337
416
  @Component({
338
417
  selector: &#x27;rxap-copy-to-clipboard-button&#x27;,
339
418
  templateUrl: &#x27;./copy-to-clipboard-button.component.html&#x27;,
@@ -401,7 +480,7 @@ export class CopyToClipboardButtonComponent {
401
480
 
402
481
  </div>
403
482
 
404
- <script src="../js/libs/vis.min.js"></script>
483
+ <script src="../js/libs/vis-network.min.js"></script>
405
484
  <script src="../js/libs/htmlparser.js"></script>
406
485
  <script src="../js/libs/deep-iterator.js"></script>
407
486
  <script>
@@ -460,6 +539,24 @@ export class CopyToClipboardButtonComponent {
460
539
 
461
540
  <script>
462
541
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
542
+ var updateDarkModeSwitchOffset = function () {
543
+ var content = document.querySelector('.content');
544
+ var scrollbarWidth = 0;
545
+
546
+ if (content) {
547
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
548
+ }
549
+
550
+ document.documentElement.style.setProperty(
551
+ '--content-scrollbar-width',
552
+ scrollbarWidth + 'px'
553
+ );
554
+ };
555
+
556
+ updateDarkModeSwitchOffset();
557
+ requestAnimationFrame(updateDarkModeSwitchOffset);
558
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
559
+
463
560
  checkToggle(darkModeState);
464
561
  if ($darkModeToggleSwitchers.length > 0) {
465
562
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -475,14 +572,12 @@ export class CopyToClipboardButtonComponent {
475
572
  <script src="../js/libs/lit-html.js"></script>
476
573
 
477
574
  <script src="../js/menu-wc.js" defer></script>
478
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
479
575
 
480
576
  <script src="../js/libs/bootstrap-native.js"></script>
481
577
 
482
578
  <script src="../js/libs/es6-shim.min.js"></script>
483
579
  <script src="../js/libs/EventDispatcher.js"></script>
484
580
  <script src="../js/libs/promise.min.js"></script>
485
- <script src="../js/libs/zepto.min.js"></script>
486
581
 
487
582
  <script src="../js/compodoc.js"></script>
488
583