@eui/mobile-core 20.0.2 → 22.0.0-alpha.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 (196) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/docs/architecture.html +223 -0
  3. package/docs/changelog.html +69 -4
  4. package/docs/components/EuiMUserProfileActionComponent.html +80 -130
  5. package/docs/components/EuiMUserProfileAvatarComponent.html +74 -129
  6. package/docs/components/EuiMUserProfileInfosComponent.html +117 -117
  7. package/docs/components/EuiMUserProfileInfosItemComponent.html +74 -129
  8. package/docs/components/EuimAboutComponent.html +108 -28
  9. package/docs/components/EuimAboutContentLoadingComponent.html +107 -33
  10. package/docs/components/EuimAlertMessageComponent.html +161 -90
  11. package/docs/components/EuimAppComponent.html +105 -27
  12. package/docs/components/EuimAvatarBadgeComponent.html +120 -72
  13. package/docs/components/EuimAvatarComponent.html +123 -121
  14. package/docs/components/EuimAvatarIconComponent.html +74 -129
  15. package/docs/components/EuimAvatarIconSubComponent.html +123 -121
  16. package/docs/components/EuimAvatarImageComponent.html +91 -121
  17. package/docs/components/EuimAvatarTextComponent.html +115 -117
  18. package/docs/components/EuimBadgeComponent.html +121 -43
  19. package/docs/components/EuimCardComponent.html +123 -71
  20. package/docs/components/EuimCardListComponent.html +118 -118
  21. package/docs/components/EuimChangelogComponent.html +131 -128
  22. package/docs/components/EuimChipSelectorComponent.html +257 -184
  23. package/docs/components/EuimDataSummaryColComponent.html +92 -25
  24. package/docs/components/EuimDataSummaryComponent.html +127 -44
  25. package/docs/components/EuimEmptyListPlaceholderComponent.html +176 -156
  26. package/docs/components/EuimHeaderDetailsComponent.html +130 -49
  27. package/docs/components/EuimHelpSupportComponent.html +159 -130
  28. package/docs/components/EuimHelperTextComponent.html +161 -66
  29. package/docs/components/EuimLabelComponent.html +134 -53
  30. package/docs/components/EuimLanguageListComponent.html +185 -31
  31. package/docs/components/EuimLanguageSelectorComponent.html +156 -54
  32. package/docs/components/EuimMediaHeaderComponent.html +137 -52
  33. package/docs/components/EuimMessageComponent.html +130 -47
  34. package/docs/components/EuimMessageTitleComponent.html +92 -25
  35. package/docs/components/EuimMultiselectComponent.html +160 -131
  36. package/docs/components/EuimMultiselectFilterComponent.html +103 -123
  37. package/docs/components/EuimMultiselectInfoComponent.html +91 -125
  38. package/docs/components/EuimMultiselectListComponent.html +85 -122
  39. package/docs/components/EuimMultiselectToolbarComponent.html +126 -134
  40. package/docs/components/EuimNotificationItemComponent.html +121 -43
  41. package/docs/components/EuimOpenSourceLicencesComponent.html +127 -137
  42. package/docs/components/EuimPdfViewerComponent.html +214 -141
  43. package/docs/components/EuimScrollerXComponent.html +78 -130
  44. package/docs/components/EuimSidebarComponent.html +125 -114
  45. package/docs/components/EuimSidebarContentComponent.html +151 -124
  46. package/docs/components/EuimSkeletonListComponent.html +127 -42
  47. package/docs/components/EuimSkeletonListItemComponent.html +159 -56
  48. package/docs/components/EuimSlideInfoScreenComponent.html +74 -129
  49. package/docs/components/EuimSliderInfoScreenComponent.html +247 -174
  50. package/docs/components/EuimSpinnerComponent.html +131 -119
  51. package/docs/components/EuimSpinnerDescriptionComponent.html +74 -129
  52. package/docs/components/EuimSpinnerMessageComponent.html +74 -129
  53. package/docs/components/EuimToolbarActionItemsComponent.html +74 -129
  54. package/docs/components/EuimToolbarComponent.html +150 -140
  55. package/docs/components/EuimToolbarDatepickerComponent.html +291 -114
  56. package/docs/components/EuimToolbarQrcodeComponent.html +100 -32
  57. package/docs/components/EuimToolbarTitleComponent.html +121 -43
  58. package/docs/components/EuimUserProfileComponent.html +117 -117
  59. package/docs/dependencies.html +56 -4
  60. package/docs/directives/BaseStatesDirective.html +175 -62
  61. package/docs/directives/EuimAlignCenterDirective.html +92 -23
  62. package/docs/directives/EuimAlignTopDirective.html +92 -23
  63. package/docs/directives/EuimAvatarMainIconDirective.html +73 -23
  64. package/docs/directives/EuimAvatarSubIconDirective.html +73 -23
  65. package/docs/directives/EuimCardImageDirective.html +86 -118
  66. package/docs/directives/EuimChipSelectorItemDirective.html +104 -108
  67. package/docs/directives/EuimDataSummaryColLabelDirective.html +121 -41
  68. package/docs/directives/EuimDataSummaryColValueDirective.html +117 -41
  69. package/docs/directives/EuimDividerDirective.html +118 -42
  70. package/docs/directives/EuimEmptyListPlaceholderIconDirective.html +92 -23
  71. package/docs/directives/EuimEmptyListPlaceholderSubtitleDirective.html +92 -23
  72. package/docs/directives/EuimEmptyListPlaceholderTitleDirective.html +92 -23
  73. package/docs/directives/EuimFooterTransparentDirective.html +92 -23
  74. package/docs/directives/EuimHeaderDetailsIconDirective.html +66 -126
  75. package/docs/directives/EuimHeaderDetailsMetaDirective.html +66 -126
  76. package/docs/directives/EuimHeaderDetailsTitleDirective.html +66 -126
  77. package/docs/directives/EuimListHeaderDirective.html +118 -42
  78. package/docs/directives/EuimListItemNoPaddingsDirective.html +92 -23
  79. package/docs/directives/EuimMediaHeaderCustomContentDirective.html +95 -23
  80. package/docs/directives/EuimMediaHeaderImageDirective.html +92 -23
  81. package/docs/directives/EuimMediaHeaderSubTitleDirective.html +92 -23
  82. package/docs/directives/EuimMediaHeaderTitleDirective.html +66 -126
  83. package/docs/directives/EuimMinWidthDirective.html +105 -29
  84. package/docs/directives/EuimMultiselectAllDirective.html +138 -101
  85. package/docs/directives/EuimMultiselectSelectFieldDirective.html +102 -127
  86. package/docs/directives/EuimReadOnlyFormDirective.html +66 -126
  87. package/docs/directives/EuimReadOnlyFormLabelDirective.html +92 -23
  88. package/docs/directives/EuimReadOnlyFormValueDirective.html +66 -126
  89. package/docs/directives/EuimSidebarFooterNoBordersDirective.html +92 -23
  90. package/docs/directives/EuimSkeletonTextAvatarDirective.html +92 -23
  91. package/docs/directives/EuimSliderInfoScreenContentDirective.html +112 -114
  92. package/docs/directives/EuimSliderInfoScreenSubTitleDirective.html +66 -126
  93. package/docs/directives/EuimSliderInfoScreenTitleDirective.html +66 -126
  94. package/docs/directives/EuimToolbarDatepickerDatetimeDirective.html +122 -43
  95. package/docs/directives/EuimToolbarTransparentDirective.html +140 -54
  96. package/docs/index.html +54 -2
  97. package/docs/injectables/EuimAppService.html +102 -38
  98. package/docs/interfaces/ActionBtnsIconsNames.html +169 -123
  99. package/docs/interfaces/ActionBtnsNames.html +169 -123
  100. package/docs/interfaces/FilteredData.html +138 -92
  101. package/docs/interfaces/HelpAndSupportItem.html +145 -99
  102. package/docs/interfaces/Item.html +504 -458
  103. package/docs/interfaces/MenuItem.html +408 -362
  104. package/docs/interfaces/UIState.html +109 -63
  105. package/docs/js/architecture-graph.js +288 -0
  106. package/docs/js/libs/bootstrap-native.js +4 -2
  107. package/docs/js/libs/jszip.min.js +13 -0
  108. package/docs/js/libs/svg-pan-zoom.min.js +3 -3
  109. package/docs/js/libs/tablesort.min.js +3 -3
  110. package/docs/js/libs/tablesort.number.min.js +3 -3
  111. package/docs/js/libs/vis-network.min.js +78 -0
  112. package/docs/js/menu-wc.js +25 -13
  113. package/docs/js/routes/routes_index.js +1 -0
  114. package/docs/js/routes.js +142 -34
  115. package/docs/js/search/search.js +62 -0
  116. package/docs/js/search/search_index.js +2 -2
  117. package/docs/js/tabs.js +98 -15
  118. package/docs/js/tree.js +44 -7
  119. package/docs/json/EuimAlertMessageComponent.md +1 -1
  120. package/docs/json/EuimAvatarImageComponent.md +1 -1
  121. package/docs/json/EuimCardListComponent.md +1 -1
  122. package/docs/json/EuimChangelogComponent.md +1 -1
  123. package/docs/json/EuimChipSelectorComponent.md +4 -4
  124. package/docs/json/EuimHeaderDetailsComponent.md +1 -1
  125. package/docs/json/EuimHelperTextComponent.md +1 -0
  126. package/docs/json/EuimMultiselectComponent.md +1 -1
  127. package/docs/json/EuimMultiselectToolbarComponent.md +2 -2
  128. package/docs/json/EuimOpenSourceLicencesComponent.md +2 -2
  129. package/docs/json/EuimPdfViewerComponent.md +0 -1
  130. package/docs/json/EuimSidebarContentComponent.md +3 -4
  131. package/docs/json/EuimSliderInfoScreenComponent.md +3 -3
  132. package/docs/json/EuimToolbarComponent.md +1 -1
  133. package/docs/json/EuimToolbarDatepickerComponent.md +5 -4
  134. package/docs/json/EuimToolbarQrcodeComponent.md +1 -1
  135. package/docs/json/HbsRenderService.md +6 -0
  136. package/docs/json/TemplateEditorService.md +6 -0
  137. package/docs/json/TemplatePlaygroundComponent.md +8 -0
  138. package/docs/json/ZipExportService.md +6 -0
  139. package/docs/json/documentation.json +6868 -3891
  140. package/docs/license.html +46 -4
  141. package/docs/llms.txt +1527 -0
  142. package/docs/miscellaneous/typealiases.html +53 -8
  143. package/docs/miscellaneous/variables.html +320 -36
  144. package/docs/modules/EuimAboutModule.html +87 -10
  145. package/docs/modules/EuimAlertMessageModule.html +75 -10
  146. package/docs/modules/EuimAllModule.html +190 -9
  147. package/docs/modules/EuimAppModule.html +75 -10
  148. package/docs/modules/EuimAvatarModule.html +99 -10
  149. package/docs/modules/EuimBadgeModule.html +75 -10
  150. package/docs/modules/EuimCardListModule.html +75 -10
  151. package/docs/modules/EuimCardModule.html +78 -10
  152. package/docs/modules/EuimChipSelectorComponentModule.html +74 -10
  153. package/docs/modules/EuimDataSummaryModule.html +84 -10
  154. package/docs/modules/EuimDividerModule.html +75 -10
  155. package/docs/modules/EuimEmptyListPlaceholderModule.html +90 -10
  156. package/docs/modules/EuimHeaderDetailsModule.html +84 -10
  157. package/docs/modules/EuimLabelModule.html +87 -10
  158. package/docs/modules/EuimLanguageSelectorModule.html +81 -10
  159. package/docs/modules/EuimListHeaderModule.html +75 -10
  160. package/docs/modules/EuimMediaHeaderModule.html +87 -10
  161. package/docs/modules/EuimMessageModule.html +78 -10
  162. package/docs/modules/EuimMultiselectModule.html +93 -10
  163. package/docs/modules/EuimNotificationItemModule.html +75 -10
  164. package/docs/modules/EuimPdfViewerModule.html +75 -10
  165. package/docs/modules/EuimScrollerXComponentModule.html +75 -10
  166. package/docs/modules/EuimSidebarModule.html +78 -10
  167. package/docs/modules/EuimSkeletonListItemModule.html +75 -10
  168. package/docs/modules/EuimSkeletonListModule.html +75 -10
  169. package/docs/modules/EuimSkeletonTextAvatarModule.html +75 -10
  170. package/docs/modules/EuimSliderInfoScreenModule.html +87 -10
  171. package/docs/modules/EuimSpinnerComponentModule.html +81 -10
  172. package/docs/modules/EuimToolbarComponentModule.html +81 -10
  173. package/docs/modules/EuimToolbarDatepickerModule.html +75 -10
  174. package/docs/modules/EuimToolbarQrcodeModule.html +75 -10
  175. package/docs/modules/EuimUserProfileModule.html +87 -10
  176. package/docs/modules.html +44 -2
  177. package/docs/properties.html +45 -3
  178. package/docs/routes.html +228 -0
  179. package/docs/styles/compodoc.css +365 -44
  180. package/docs/styles/dark.css +16 -0
  181. package/docs/template-playground/default-templates.json +192 -0
  182. package/docs/template-playground/hbs-render.service.ts +217 -0
  183. package/docs/template-playground/main.ts +9 -0
  184. package/docs/template-playground/template-editor.service.ts +173 -0
  185. package/docs/template-playground/template-playground.component.ts +614 -0
  186. package/docs/template-playground/template-playground.module.ts +29 -0
  187. package/docs/template-playground/zip-export.service.ts +86 -0
  188. package/docs/template-playground-app/app.js +1389 -0
  189. package/docs/template-playground-app/index.html +462 -0
  190. package/fesm2022/eui-mobile-core.mjs +870 -1214
  191. package/fesm2022/eui-mobile-core.mjs.map +1 -1
  192. package/package.json +12 -11
  193. package/{index.d.ts → types/eui-mobile-core.d.ts} +143 -215
  194. package/types/eui-mobile-core.d.ts.map +1 -0
  195. package/docs/js/libs/vis.min.js +0 -47
  196. package/docs/js/menu-wc_es5.js +0 -40
@@ -62,6 +62,20 @@
62
62
  }
63
63
  toggleDarkMode(darkModeState);
64
64
  </script>
65
+ <script>
66
+ // --- Iframe navigation tracking for Template Playground ---
67
+ function sendCurrentUrlToParent() {
68
+ if (window.parent && window.parent !== window) {
69
+ window.parent.postMessage({
70
+ type: 'compodoc-iframe-navigate',
71
+ url: window.location.pathname + window.location.hash
72
+ }, '*');
73
+ }
74
+ }
75
+ window.addEventListener('hashchange', sendCurrentUrlToParent, false);
76
+ window.addEventListener('popstate', sendCurrentUrlToParent, false);
77
+ window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
78
+ </script>
65
79
 
66
80
  <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
67
81
  <div class="d-flex">
@@ -71,7 +85,14 @@
71
85
  </div>
72
86
 
73
87
  <div class="xs-menu menu" id="mobile-menu">
74
- <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
88
+ <div id="book-search-input" role="search">
89
+ <input type="text" placeholder="Type to search">
90
+ <button type="button"
91
+ class="search-input-clear"
92
+ aria-label="Clear search"
93
+ data-search-input-clear>&times;</button>
94
+ </div>
95
+ <compodoc-menu></compodoc-menu>
75
96
  </div>
76
97
 
77
98
  <div class="container-fluid main">
@@ -86,6 +107,10 @@
86
107
 
87
108
 
88
109
 
110
+
111
+
112
+
113
+
89
114
  <ol class="breadcrumb">
90
115
  <li class="breadcrumb-item">Components</li>
91
116
  <li class="breadcrumb-item"
@@ -93,29 +118,31 @@
93
118
  EuimCardComponent</li>
94
119
  </ol>
95
120
 
121
+ <div class="io-file io-file-path" data-compodoc="entity-file-path">
122
+ <span class="icon ion-ios-document" aria-hidden="true"></span>
123
+ <code>packages/core/src/lib/components/euim-card/euim-card.component.ts</code>
124
+ </div>
125
+
96
126
  <ul class="nav nav-tabs" role="tablist">
97
127
  <li class="nav-item">
98
128
  <a href="#info" class="nav-link active"
99
129
  role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
100
130
  </li>
131
+ <li class="nav-item">
132
+ <a href="#api" class="nav-link"
133
+ role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
134
+ </li>
101
135
  </ul>
102
136
 
103
137
  <div class="tab-content">
104
- <div class="tab-pane fade active in" id="info"><p class="comment">
105
- <h3>File</h3>
106
- </p>
107
- <p class="comment">
108
- <code>packages/core/src/lib/components/euim-card/euim-card.component.ts</code>
109
- </p>
110
-
111
-
138
+ <div class="tab-pane fade active in" id="info">
112
139
 
113
140
 
114
141
  <p class="comment">
115
142
  <h3>Implements</h3>
116
143
  </p>
117
144
  <p class="comment">
118
- <code>AfterContentInit</code>
145
+ <code><a href="https://angular.dev/api/core/AfterContentInit" target="_blank" >AfterContentInit</a></code>
119
146
  </p>
120
147
 
121
148
 
@@ -145,6 +172,10 @@
145
172
 
146
173
 
147
174
 
175
+ <tr>
176
+ <td class="col-md-3">host</td>
177
+ <td class="col-md-9"><code>{<br>}</code></td>
178
+ </tr>
148
179
 
149
180
 
150
181
 
@@ -160,7 +191,8 @@
160
191
  <tr>
161
192
  <td class="col-md-3">imports</td>
162
193
  <td class="col-md-9">
163
- <code>IonicModule</code>
194
+ <div> <code>IonCard</code>
195
+ </div>
164
196
  </td>
165
197
  </tr>
166
198
 
@@ -171,6 +203,7 @@
171
203
 
172
204
 
173
205
 
206
+
174
207
  <tr>
175
208
  <td class="col-md-3">templateUrl</td>
176
209
  <td class="col-md-9"><code>./euim-card.component.html</code></td>
@@ -187,82 +220,106 @@
187
220
  </table>
188
221
  </section>
189
222
 
190
- <section data-compodoc="block-index">
223
+ <section data-compodoc="block-relationships">
224
+ <h3>Relationships</h3>
225
+
226
+ <div class="row pt-3">
227
+ <div class="col-sm-6">
228
+ <h4>Used by</h4>
229
+ <ul class="list-unstyled relationships-list">
230
+ <li>
231
+ <code><a href="../modules/EuimCardModule.html" target="_self" >EuimCardModule</a></code>
232
+ </li>
233
+ </ul>
234
+ </div>
235
+
236
+ <div class="col-sm-6">
237
+ <h4>Depends on</h4>
238
+ <ul class="list-unstyled relationships-list">
239
+ <li>
240
+ <code>IonCard</code>
241
+ </li>
242
+ <li>
243
+ <code><a href="../directives/BaseStatesDirective.html" target="_self" >BaseStatesDirective</a></code>
244
+ </li>
245
+ <li>
246
+ <code><a href="https://angular.dev/api/core/AfterContentInit" target="_blank" >AfterContentInit</a></code>
247
+ </li>
248
+ </ul>
249
+ </div>
250
+ </div>
251
+ </section>
252
+ </div>
253
+
254
+ <div class="tab-pane fade " id="api"> <section data-compodoc="block-index">
191
255
  <h3 id="index">Index</h3>
192
- <table class="table table-sm table-bordered index-table">
193
- <tbody>
256
+ <table class="table table-sm table-bordered index-table">
257
+ <tbody>
194
258
  <tr>
195
- <td class="col-md-4">
259
+ <td class="col-md-3">
196
260
  <h6><b>Properties</b></h6>
197
261
  </td>
198
- </tr>
199
- <tr>
200
- <td class="col-md-4">
262
+ <td class="col-md-9">
201
263
  <ul class="index-list">
202
264
  <li>
265
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
203
266
  <span class="modifier">Public</span>
204
267
  <a href="#baseStatesDirective" >baseStatesDirective</a>
205
268
  </li>
206
269
  <li>
270
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
207
271
  <span class="modifier"></span>
208
272
  <a href="#cardImageDirective" >cardImageDirective</a>
209
273
  </li>
210
274
  <li>
275
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
211
276
  <a href="#imageWidth" >imageWidth</a>
212
277
  </li>
213
278
  </ul>
214
279
  </td>
215
280
  </tr>
281
+ </tbody>
282
+ </table>
216
283
 
284
+ <table class="table table-sm table-bordered index-table">
285
+ <tbody>
217
286
  <tr>
218
- <td class="col-md-4">
287
+ <td class="col-md-3">
219
288
  <h6><b>Methods</b></h6>
220
289
  </td>
221
- </tr>
222
- <tr>
223
- <td class="col-md-4">
290
+ <td class="col-md-9">
224
291
  <ul class="index-list">
225
292
  <li>
293
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
226
294
  <a href="#getCssClasses" >getCssClasses</a>
227
295
  </li>
228
296
  </ul>
229
297
  </td>
230
298
  </tr>
299
+ </tbody>
300
+ </table>
301
+
302
+
231
303
 
232
304
 
233
305
 
306
+ <table class="table table-sm table-bordered index-table">
307
+ <tbody>
234
308
  <tr>
235
- <td class="col-md-4">
236
- <h6><b>HostBindings</b></h6>
309
+ <td class="col-md-3">
310
+ <h6><b>Accessors</b></h6>
237
311
  </td>
238
- </tr>
239
- <tr>
240
- <td class="col-md-4">
312
+ <td class="col-md-9">
241
313
  <ul class="index-list">
242
314
  <li>
243
- <a href="#class" >class</a>
315
+ <span class="reference-badge reference-badge--accessor" aria-hidden="true">A</span>
316
+ <a href="#cssClasses" >cssClasses</a>
244
317
  </li>
245
318
  </ul>
246
319
  </td>
247
320
  </tr>
248
-
249
-
250
- <tr>
251
- <td class="col-md-4">
252
- <h6><b>Accessors</b></h6>
253
- </td>
254
- </tr>
255
- <tr>
256
- <td class="col-md-4">
257
- <ul class="index-list">
258
- <li>
259
- <a href="#cssClasses" >cssClasses</a>
260
- </li>
261
- </ul>
262
- </td>
263
- </tr>
264
- </tbody>
265
- </table>
321
+ </tbody>
322
+ </table>
266
323
  </section>
267
324
 
268
325
  <section data-compodoc="block-constructor">
@@ -311,29 +368,6 @@
311
368
 
312
369
 
313
370
 
314
- <section data-compodoc="block-properties">
315
- <h3>HostBindings</h3> <table class="table table-sm table-bordered">
316
- <tbody>
317
- <tr>
318
- <td class="col-md-4">
319
- <a name="class"></a>
320
- <span class="name">
321
- <span ><b>class</b></span>
322
- <a href="#class"><span class="icon ion-ios-link"></span></a>
323
- </span>
324
- </td>
325
- </tr>
326
- <tr>
327
- <td class="col-md-4">
328
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
329
-
330
- </td>
331
- </tr>
332
-
333
-
334
- </tbody>
335
- </table>
336
- </section>
337
371
 
338
372
 
339
373
  <section data-compodoc="block-methods">
@@ -373,6 +407,7 @@
373
407
  </tbody>
374
408
  </table>
375
409
  </section>
410
+
376
411
  <section data-compodoc="block-properties">
377
412
 
378
413
  <h3 id="inputs">
@@ -486,7 +521,7 @@
486
521
 
487
522
  </div>
488
523
 
489
- <script src="../js/libs/vis.min.js"></script>
524
+ <script src="../js/libs/vis-network.min.js"></script>
490
525
  <script src="../js/libs/htmlparser.js"></script>
491
526
  <script src="../js/libs/deep-iterator.js"></script>
492
527
  <script>
@@ -545,6 +580,24 @@
545
580
 
546
581
  <script>
547
582
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
583
+ var updateDarkModeSwitchOffset = function () {
584
+ var content = document.querySelector('.content');
585
+ var scrollbarWidth = 0;
586
+
587
+ if (content) {
588
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
589
+ }
590
+
591
+ document.documentElement.style.setProperty(
592
+ '--content-scrollbar-width',
593
+ scrollbarWidth + 'px'
594
+ );
595
+ };
596
+
597
+ updateDarkModeSwitchOffset();
598
+ requestAnimationFrame(updateDarkModeSwitchOffset);
599
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
600
+
548
601
  checkToggle(darkModeState);
549
602
  if ($darkModeToggleSwitchers.length > 0) {
550
603
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -560,7 +613,6 @@
560
613
  <script src="../js/libs/lit-html.js"></script>
561
614
 
562
615
  <script src="../js/menu-wc.js" defer></script>
563
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
564
616
 
565
617
  <script src="../js/libs/bootstrap-native.js"></script>
566
618