@rxap/components 22.0.0-dev.0 → 22.0.0-dev.2

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 (106) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +5 -3
  3. package/compodoc/architecture.html +222 -0
  4. package/compodoc/changelog.html +81 -5
  5. package/compodoc/components/ConfirmComponent.html +112 -116
  6. package/compodoc/components/CopyToClipboardButtonComponent.html +165 -70
  7. package/compodoc/components/CopyToClipboardComponent.html +205 -176
  8. package/compodoc/components/EmptyRouterOutletComponent.html +86 -22
  9. package/compodoc/components/JsonViewerComponent.html +162 -94
  10. package/compodoc/components/NavigateBackButtonComponent.html +111 -26
  11. package/compodoc/dependencies.html +108 -27
  12. package/compodoc/directives/ConfirmDirective.html +266 -139
  13. package/compodoc/index.html +50 -8
  14. package/compodoc/interfaces/Segment.html +254 -184
  15. package/compodoc/js/architecture-graph.js +288 -0
  16. package/compodoc/js/libs/bootstrap-native.js +4 -2
  17. package/compodoc/js/libs/jszip.min.js +13 -0
  18. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  19. package/compodoc/js/libs/tablesort.min.js +3 -3
  20. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  21. package/compodoc/js/libs/vis-network.min.js +78 -0
  22. package/compodoc/js/menu-wc.js +25 -12
  23. package/compodoc/js/menu.js +10 -11
  24. package/compodoc/js/routes/routes_index.js +1 -0
  25. package/compodoc/js/routes.js +142 -34
  26. package/compodoc/js/search/search-lunr.js +6 -8
  27. package/compodoc/js/search/search.js +118 -66
  28. package/compodoc/js/search/search_index.js +2 -2
  29. package/compodoc/js/tabs.js +98 -15
  30. package/compodoc/js/tree.js +44 -7
  31. package/compodoc/license.html +48 -6
  32. package/compodoc/llms.txt +143 -0
  33. package/compodoc/miscellaneous/functions.html +129 -6
  34. package/compodoc/miscellaneous/variables.html +65 -6
  35. package/compodoc/modules.html +44 -3
  36. package/compodoc/overview.html +54 -3
  37. package/compodoc/properties.html +45 -4
  38. package/compodoc/routes.html +227 -0
  39. package/compodoc/styles/compodoc.css +365 -44
  40. package/compodoc/styles/dark.css +16 -0
  41. package/compodoc/template-playground/default-templates.json +192 -0
  42. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  43. package/compodoc/template-playground/main.ts +9 -0
  44. package/compodoc/template-playground/template-editor.service.ts +173 -0
  45. package/compodoc/template-playground/template-playground.component.ts +614 -0
  46. package/compodoc/template-playground/template-playground.module.ts +29 -0
  47. package/compodoc/template-playground/zip-export.service.ts +86 -0
  48. package/compodoc/template-playground-app/app.js +1389 -0
  49. package/compodoc/template-playground-app/index.html +462 -0
  50. package/docs/documentation.json +464 -318
  51. package/docs/html/assets/highlight.css +1 -1
  52. package/docs/html/assets/icons.js +1 -1
  53. package/docs/html/assets/icons.svg +1 -1
  54. package/docs/html/assets/main.js +5 -5
  55. package/docs/html/assets/search.js +1 -1
  56. package/docs/html/assets/style.css +265 -228
  57. package/docs/html/classes/ConfirmComponent.html +76 -4
  58. package/docs/html/classes/ConfirmDirective.html +209 -17
  59. package/docs/html/classes/CopyToClipboardButtonComponent.html +88 -4
  60. package/docs/html/classes/CopyToClipboardComponent.html +106 -9
  61. package/docs/html/classes/EmptyRouterOutletComponent.html +56 -2
  62. package/docs/html/classes/JsonViewerComponent.html +187 -14
  63. package/docs/html/classes/NavigateBackButtonComponent.html +74 -3
  64. package/docs/html/hierarchy.html +29 -0
  65. package/docs/html/index.html +44 -7
  66. package/docs/html/interfaces/Segment.html +79 -6
  67. package/docs/html/modules.html +44 -1
  68. package/docs/html/variables/JSON_VIEW_IGNORED_PROPERTIES.html +33 -1
  69. package/docs/html/variables/JSON_VIEW_IGNORED_TYPES.html +33 -1
  70. package/docs/markdown/README.md +6 -4
  71. package/docs/markdown/classes/ConfirmComponent.md +7 -7
  72. package/docs/markdown/classes/ConfirmDirective.md +30 -28
  73. package/docs/markdown/classes/CopyToClipboardButtonComponent.md +7 -7
  74. package/docs/markdown/classes/CopyToClipboardComponent.md +12 -12
  75. package/docs/markdown/classes/EmptyRouterOutletComponent.md +5 -5
  76. package/docs/markdown/classes/JsonViewerComponent.md +20 -20
  77. package/docs/markdown/classes/NavigateBackButtonComponent.md +6 -6
  78. package/docs/markdown/globals.md +2 -2
  79. package/docs/markdown/interfaces/Segment.md +8 -8
  80. package/docs/markdown/variables/JSON_VIEW_IGNORED_PROPERTIES.md +2 -2
  81. package/docs/markdown/variables/JSON_VIEW_IGNORED_TYPES.md +2 -2
  82. package/docs/wiki/Class.ConfirmComponent.md +6 -6
  83. package/docs/wiki/Class.ConfirmDirective.md +29 -27
  84. package/docs/wiki/Class.CopyToClipboardButtonComponent.md +6 -6
  85. package/docs/wiki/Class.CopyToClipboardComponent.md +11 -11
  86. package/docs/wiki/Class.EmptyRouterOutletComponent.md +4 -4
  87. package/docs/wiki/Class.JsonViewerComponent.md +19 -19
  88. package/docs/wiki/Class.NavigateBackButtonComponent.md +5 -5
  89. package/docs/wiki/Home.md +5 -3
  90. package/docs/wiki/Interface.Segment.md +7 -7
  91. package/docs/wiki/Variable.JSON_VIEW_IGNORED_PROPERTIES.md +1 -1
  92. package/docs/wiki/Variable.JSON_VIEW_IGNORED_TYPES.md +1 -1
  93. package/docs/wiki/globals.md +1 -1
  94. package/fesm2022/rxap-components.mjs +9 -7
  95. package/fesm2022/rxap-components.mjs.map +1 -1
  96. package/generators.json +16 -0
  97. package/package.json +15 -17
  98. package/src/generators/init/generator.js +120 -0
  99. package/src/generators/init/index.js +6 -0
  100. package/src/generators/init/schema.json +8 -0
  101. package/src/generators/package.json +3 -0
  102. package/compodoc/js/libs/vis.min.js +0 -47
  103. package/compodoc/js/menu-wc_es5.js +0 -40
  104. package/compodoc/modules/ConfirmModule/dependencies.svg +0 -78
  105. package/compodoc/modules/ConfirmModule.html +0 -346
  106. package/theme.css +0 -1
@@ -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">
@@ -94,6 +115,10 @@
94
115
 
95
116
 
96
117
 
118
+
119
+
120
+
121
+
97
122
  <ol class="breadcrumb">
98
123
  <li class="breadcrumb-item">Interfaces</li>
99
124
  <li class="breadcrumb-item"
@@ -101,6 +126,11 @@
101
126
  Segment</li>
102
127
  </ol>
103
128
 
129
+ <div class="io-file io-file-path" data-compodoc="entity-file-path">
130
+ <span class="icon ion-ios-document" aria-hidden="true"></span>
131
+ <code>src/lib/json-viewer/json-viewer.component.ts</code>
132
+ </div>
133
+
104
134
  <ul class="nav nav-tabs" role="tablist">
105
135
  <li class="nav-item">
106
136
  <a href="#info"
@@ -108,6 +138,12 @@
108
138
  class="nav-link active"
109
139
  role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
110
140
  </li>
141
+ <li class="nav-item">
142
+ <a href="#api"
143
+ class="nav-link"
144
+
145
+ role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
146
+ </li>
111
147
  <li class="nav-item">
112
148
  <a href="#source"
113
149
  class="nav-link"
@@ -118,236 +154,254 @@
118
154
 
119
155
  <div class="tab-content">
120
156
  <div class="tab-pane fade active in" id="info">
121
- <p class="comment">
122
- <h3>File</h3>
123
- </p>
124
- <p class="comment">
125
- <code>src/lib/json-viewer/json-viewer.component.ts</code>
126
- </p>
127
-
128
157
 
129
158
 
130
159
 
131
- <section data-compodoc="block-index">
132
- <h3 id="index">Index</h3>
133
- <table class="table table-sm table-bordered index-table">
160
+ </div>
161
+
162
+ <div class="tab-pane fade " id="api"><section data-compodoc="block-index">
163
+ <h3 id="index">Index</h3>
164
+ <table class="table table-sm table-bordered index-table">
165
+ <tbody>
166
+ <tr>
167
+ <td class="col-md-3">
168
+ <h6><b>Properties</b></h6>
169
+ </td>
170
+ <td class="col-md-9">
171
+ <ul class="index-list">
172
+ <li>
173
+ <a href="#description" class="reference-link ">
174
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span><span class="reference-link-label">description</span>
175
+ </a>
176
+ </li>
177
+ <li>
178
+ <a href="#expanded" class="reference-link ">
179
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span><span class="reference-link-label">expanded</span>
180
+ </a>
181
+ </li>
182
+ <li>
183
+ <a href="#key" class="reference-link ">
184
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span><span class="reference-link-label">key</span>
185
+ </a>
186
+ </li>
187
+ <li>
188
+ <a href="#type" class="reference-link ">
189
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span><span class="reference-link-label">type</span>
190
+ </a>
191
+ </li>
192
+ <li>
193
+ <a href="#value" class="reference-link ">
194
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span><span class="reference-link-label">value</span>
195
+ </a>
196
+ </li>
197
+ </ul>
198
+ </td>
199
+ </tr>
200
+ </tbody>
201
+ </table>
202
+ </section>
203
+
204
+
205
+
206
+ <section data-compodoc="block-properties">
207
+ <h3 id="inputs">Properties</h3>
208
+ <table class="table table-sm table-bordered">
134
209
  <tbody>
135
- <tr>
136
- <td class="col-md-4">
137
- <h6><b>Properties</b></h6>
138
- </td>
139
- </tr>
140
- <tr>
141
- <td class="col-md-4">
142
- <ul class="index-list">
143
- <li>
144
- <a href="#description"
145
- >
146
- description
147
- </a>
148
- </li>
149
- <li>
150
- <a href="#expanded"
151
- >
152
- expanded
153
- </a>
154
- </li>
155
- <li>
156
- <a href="#key"
157
- >
158
- key
159
- </a>
160
- </li>
161
- <li>
162
- <a href="#type"
163
- >
164
- type
165
- </a>
166
- </li>
167
- <li>
168
- <a href="#value"
169
- >
170
- value
171
- </a>
172
- </li>
173
- </ul>
174
- </td>
175
- </tr>
176
- </tbody>
177
- </table>
178
- </section>
179
-
180
-
181
-
182
- <section data-compodoc="block-properties">
183
- <h3 id="inputs">Properties</h3>
184
- <table class="table table-sm table-bordered">
185
- <tbody>
186
- <tr>
187
- <td class="col-md-4">
188
- <a name="description"></a>
189
- <span class="name "><b>description</b>
190
- <a href="#description">
191
- <span class="icon ion-ios-link"></span>
192
- </a>
193
- </span>
194
- </td>
195
- </tr>
196
- <tr>
197
- <td class="col-md-4">
198
- <code>description: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
210
+ <tr>
211
+ <td class="col-md-4">
212
+ <a name="description"></a>
213
+ <span class="name "><b>description</b>
214
+ <a href="#description">
215
+ <span class="icon ion-ios-link"></span>
216
+ </a>
217
+ </span>
218
+ </td>
219
+ </tr>
220
+ <tr>
221
+ <td class="col-md-4">
222
+ <code>description: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
199
223
  </code>
200
- </td>
201
- </tr>
224
+ </td>
225
+ </tr>
202
226
 
203
227
 
204
- <tr>
205
- <td class="col-md-4">
206
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
228
+ <tr>
229
+ <td class="col-md-4">
230
+ <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
207
231
 
208
- </td>
209
- </tr>
232
+ </td>
233
+ </tr>
210
234
 
211
235
 
212
236
 
213
237
 
214
238
 
215
- </tbody>
216
- </table>
217
- <table class="table table-sm table-bordered">
218
- <tbody>
219
- <tr>
220
- <td class="col-md-4">
221
- <a name="expanded"></a>
222
- <span class="name "><b>expanded</b>
223
- <a href="#expanded">
224
- <span class="icon ion-ios-link"></span>
225
- </a>
226
- </span>
227
- </td>
228
- </tr>
229
- <tr>
230
- <td class="col-md-4">
231
- <code>expanded: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
239
+ <tr>
240
+ <td class="col-md-4">
241
+ <div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/lib/json-viewer/json-viewer.component.ts:19</a></div>
242
+ </td>
243
+ </tr>
244
+
245
+ </tbody>
246
+ </table>
247
+ <table class="table table-sm table-bordered">
248
+ <tbody>
249
+ <tr>
250
+ <td class="col-md-4">
251
+ <a name="expanded"></a>
252
+ <span class="name "><b>expanded</b>
253
+ <a href="#expanded">
254
+ <span class="icon ion-ios-link"></span>
255
+ </a>
256
+ </span>
257
+ </td>
258
+ </tr>
259
+ <tr>
260
+ <td class="col-md-4">
261
+ <code>expanded: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
232
262
  </code>
233
- </td>
234
- </tr>
263
+ </td>
264
+ </tr>
265
+
235
266
 
267
+ <tr>
268
+ <td class="col-md-4">
269
+ <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
270
 
237
- <tr>
238
- <td class="col-md-4">
239
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
271
+ </td>
272
+ </tr>
240
273
 
241
- </td>
242
- </tr>
243
274
 
244
275
 
245
276
 
246
277
 
278
+ <tr>
279
+ <td class="col-md-4">
280
+ <div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/lib/json-viewer/json-viewer.component.ts:20</a></div>
281
+ </td>
282
+ </tr>
247
283
 
248
- </tbody>
249
- </table>
250
- <table class="table table-sm table-bordered">
251
- <tbody>
252
- <tr>
253
- <td class="col-md-4">
254
- <a name="key"></a>
255
- <span class="name "><b>key</b>
256
- <a href="#key">
257
- <span class="icon ion-ios-link"></span>
258
- </a>
259
- </span>
260
- </td>
261
- </tr>
262
- <tr>
263
- <td class="col-md-4">
264
- <code>key: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
284
+ </tbody>
285
+ </table>
286
+ <table class="table table-sm table-bordered">
287
+ <tbody>
288
+ <tr>
289
+ <td class="col-md-4">
290
+ <a name="key"></a>
291
+ <span class="name "><b>key</b>
292
+ <a href="#key">
293
+ <span class="icon ion-ios-link"></span>
294
+ </a>
295
+ </span>
296
+ </td>
297
+ </tr>
298
+ <tr>
299
+ <td class="col-md-4">
300
+ <code>key: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
265
301
  </code>
266
- </td>
267
- </tr>
302
+ </td>
303
+ </tr>
268
304
 
269
305
 
270
- <tr>
271
- <td class="col-md-4">
272
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
306
+ <tr>
307
+ <td class="col-md-4">
308
+ <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
273
309
 
274
- </td>
275
- </tr>
310
+ </td>
311
+ </tr>
276
312
 
277
313
 
278
314
 
279
315
 
280
316
 
281
- </tbody>
282
- </table>
283
- <table class="table table-sm table-bordered">
284
- <tbody>
285
- <tr>
286
- <td class="col-md-4">
287
- <a name="type"></a>
288
- <span class="name "><b>type</b>
289
- <a href="#type">
290
- <span class="icon ion-ios-link"></span>
291
- </a>
292
- </span>
293
- </td>
294
- </tr>
295
- <tr>
296
- <td class="col-md-4">
297
- <code>type: <code>undefined | string</code>
317
+ <tr>
318
+ <td class="col-md-4">
319
+ <div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">src/lib/json-viewer/json-viewer.component.ts:16</a></div>
320
+ </td>
321
+ </tr>
322
+
323
+ </tbody>
324
+ </table>
325
+ <table class="table table-sm table-bordered">
326
+ <tbody>
327
+ <tr>
328
+ <td class="col-md-4">
329
+ <a name="type"></a>
330
+ <span class="name "><b>type</b>
331
+ <a href="#type">
332
+ <span class="icon ion-ios-link"></span>
333
+ </a>
334
+ </span>
335
+ </td>
336
+ </tr>
337
+ <tr>
338
+ <td class="col-md-4">
339
+ <code>type: <code>undefined | string</code>
298
340
  </code>
299
- </td>
300
- </tr>
341
+ </td>
342
+ </tr>
343
+
301
344
 
345
+ <tr>
346
+ <td class="col-md-4">
347
+ <i>Type : </i> <code>undefined | string</code>
302
348
 
303
- <tr>
304
- <td class="col-md-4">
305
- <i>Type : </i> <code>undefined | string</code>
349
+ </td>
350
+ </tr>
306
351
 
307
- </td>
308
- </tr>
309
352
 
310
353
 
311
354
 
312
355
 
356
+ <tr>
357
+ <td class="col-md-4">
358
+ <div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/lib/json-viewer/json-viewer.component.ts:18</a></div>
359
+ </td>
360
+ </tr>
313
361
 
314
- </tbody>
315
- </table>
316
- <table class="table table-sm table-bordered">
317
- <tbody>
318
- <tr>
319
- <td class="col-md-4">
320
- <a name="value"></a>
321
- <span class="name "><b>value</b>
322
- <a href="#value">
323
- <span class="icon ion-ios-link"></span>
324
- </a>
325
- </span>
326
- </td>
327
- </tr>
328
- <tr>
329
- <td class="col-md-4">
330
- <code>value: <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
362
+ </tbody>
363
+ </table>
364
+ <table class="table table-sm table-bordered">
365
+ <tbody>
366
+ <tr>
367
+ <td class="col-md-4">
368
+ <a name="value"></a>
369
+ <span class="name "><b>value</b>
370
+ <a href="#value">
371
+ <span class="icon ion-ios-link"></span>
372
+ </a>
373
+ </span>
374
+ </td>
375
+ </tr>
376
+ <tr>
377
+ <td class="col-md-4">
378
+ <code>value: <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
331
379
  </code>
332
- </td>
333
- </tr>
380
+ </td>
381
+ </tr>
334
382
 
335
383
 
336
- <tr>
337
- <td class="col-md-4">
338
- <i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
384
+ <tr>
385
+ <td class="col-md-4">
386
+ <i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
339
387
 
340
- </td>
341
- </tr>
388
+ </td>
389
+ </tr>
342
390
 
343
391
 
344
392
 
345
393
 
346
394
 
347
- </tbody>
348
- </table>
349
- </section>
350
- </div>
395
+ <tr>
396
+ <td class="col-md-4">
397
+ <div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/lib/json-viewer/json-viewer.component.ts:17</a></div>
398
+ </td>
399
+ </tr>
400
+
401
+ </tbody>
402
+ </table>
403
+ </section>
404
+ </div>
351
405
 
352
406
 
353
407
  <div class="tab-pane fade tab-source-code" id="source">
@@ -600,6 +654,24 @@ export class JsonViewerComponent {
600
654
 
601
655
  <script>
602
656
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
657
+ var updateDarkModeSwitchOffset = function () {
658
+ var content = document.querySelector('.content');
659
+ var scrollbarWidth = 0;
660
+
661
+ if (content) {
662
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
663
+ }
664
+
665
+ document.documentElement.style.setProperty(
666
+ '--content-scrollbar-width',
667
+ scrollbarWidth + 'px'
668
+ );
669
+ };
670
+
671
+ updateDarkModeSwitchOffset();
672
+ requestAnimationFrame(updateDarkModeSwitchOffset);
673
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
674
+
603
675
  checkToggle(darkModeState);
604
676
  if ($darkModeToggleSwitchers.length > 0) {
605
677
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -615,14 +687,12 @@ export class JsonViewerComponent {
615
687
  <script src="../js/libs/lit-html.js"></script>
616
688
 
617
689
  <script src="../js/menu-wc.js" defer></script>
618
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
619
690
 
620
691
  <script src="../js/libs/bootstrap-native.js"></script>
621
692
 
622
693
  <script src="../js/libs/es6-shim.min.js"></script>
623
694
  <script src="../js/libs/EventDispatcher.js"></script>
624
695
  <script src="../js/libs/promise.min.js"></script>
625
- <script src="../js/libs/zepto.min.js"></script>
626
696
 
627
697
  <script src="../js/compodoc.js"></script>
628
698