@eui/base 23.0.0-alpha.2 → 23.0.0-alpha.3

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 (108) hide show
  1. package/docs/architecture.html +223 -0
  2. package/docs/changelog.html +87 -2
  3. package/docs/classes/ConsoleAppender.html +76 -27
  4. package/docs/classes/EuiEuLanguages.html +55 -16
  5. package/docs/classes/EuiLazyService.html +86 -25
  6. package/docs/classes/EuiPagination.html +69 -16
  7. package/docs/classes/EuiService.html +103 -28
  8. package/docs/classes/LogAppender.html +52 -20
  9. package/docs/classes/Logger.html +100 -30
  10. package/docs/classes/LoggerMock.html +92 -22
  11. package/docs/classes/UrlAppender.html +78 -24
  12. package/docs/classes/UxBadgeLegacy.html +47 -16
  13. package/docs/classes/UxClearErrorFeedbackEvent.html +47 -16
  14. package/docs/classes/UxErrorGroupOnClickEvent.html +47 -16
  15. package/docs/classes/UxErrorOutput.html +91 -24
  16. package/docs/classes/UxLinkLegacy.html +105 -31
  17. package/docs/classes/UxPublishErrorFeedbackEvent.html +49 -16
  18. package/docs/classes/UxValidationErrorClass.html +77 -18
  19. package/docs/dependencies.html +38 -4
  20. package/docs/index.html +26 -2
  21. package/docs/interfaces/ApiQueue.html +41 -11
  22. package/docs/interfaces/ApiQueueItem.html +209 -181
  23. package/docs/interfaces/AppState.html +312 -284
  24. package/docs/interfaces/ConnectionStatus.html +134 -93
  25. package/docs/interfaces/ConsoleAppenderConfig.html +206 -104
  26. package/docs/interfaces/ConsoleAppenderTypeConfig.html +253 -53
  27. package/docs/interfaces/CoreState.html +272 -244
  28. package/docs/interfaces/EnvDynamicConfig.html +218 -190
  29. package/docs/interfaces/EuiAppHandlersConfig.html +229 -201
  30. package/docs/interfaces/EuiAppJsonConfig.html +171 -143
  31. package/docs/interfaces/EuiAuthConfig.html +184 -156
  32. package/docs/interfaces/EuiConfig.html +131 -103
  33. package/docs/interfaces/EuiEnvConfig.html +180 -152
  34. package/docs/interfaces/EuiGlobalConfig.html +140 -112
  35. package/docs/interfaces/EuiGrowlMessage.html +408 -380
  36. package/docs/interfaces/EuiLanguage.html +169 -141
  37. package/docs/interfaces/EuiMenuItem.html +1708 -1653
  38. package/docs/interfaces/EuiPaginationConfig.html +228 -200
  39. package/docs/interfaces/EuiServiceModel.html +109 -67
  40. package/docs/interfaces/EuiServiceStatus.html +138 -108
  41. package/docs/interfaces/EuiStoreServiceModel.html +64 -36
  42. package/docs/interfaces/EuiUserRight.html +127 -99
  43. package/docs/interfaces/GlobalConfig.html +268 -240
  44. package/docs/interfaces/HttpErrorHandlerConfig.html +96 -68
  45. package/docs/interfaces/HttpErrorRouteConfig.html +136 -108
  46. package/docs/interfaces/I18nConfig.html +157 -129
  47. package/docs/interfaces/I18nLoaderConfig.html +199 -152
  48. package/docs/interfaces/I18nResource.html +176 -148
  49. package/docs/interfaces/I18nServiceConfig.html +141 -113
  50. package/docs/interfaces/I18nState.html +91 -63
  51. package/docs/interfaces/LoadedConfigModules.html +137 -107
  52. package/docs/interfaces/LocaleServiceConfig.html +102 -74
  53. package/docs/interfaces/LocaleState.html +96 -68
  54. package/docs/interfaces/LogAppenderConfig.html +123 -70
  55. package/docs/interfaces/LogAppenderTypeConfig.html +159 -61
  56. package/docs/interfaces/LogConfig.html +196 -149
  57. package/docs/interfaces/LogEvent.html +246 -199
  58. package/docs/interfaces/LogPosition.html +151 -123
  59. package/docs/interfaces/ModuleConfig.html +236 -12
  60. package/docs/interfaces/ModulesConfig.html +41 -11
  61. package/docs/interfaces/NotificationsState.html +98 -70
  62. package/docs/interfaces/UrlAppenderConfig.html +200 -98
  63. package/docs/interfaces/UrlAppenderTypeConfig.html +247 -53
  64. package/docs/interfaces/UrlLogEvent.html +368 -96
  65. package/docs/interfaces/UserConfig.html +97 -69
  66. package/docs/interfaces/UserDetails.html +237 -190
  67. package/docs/interfaces/UserPreferences.html +141 -113
  68. package/docs/interfaces/UserState.html +326 -279
  69. package/docs/interfaces/UxErrorFeedback.html +373 -235
  70. package/docs/interfaces/UxErrorFollowMap.html +41 -11
  71. package/docs/interfaces/UxErrorInfo.html +201 -151
  72. package/docs/interfaces/UxErrorMessage.html +149 -102
  73. package/docs/interfaces/UxFormValidationError.html +91 -63
  74. package/docs/interfaces/UxHttpErrorInfo.html +112 -65
  75. package/docs/interfaces/UxHttpErrorResponse.html +108 -61
  76. package/docs/interfaces/UxModalLegacy.html +164 -136
  77. package/docs/interfaces/UxValidationErrorAttribute.html +121 -93
  78. package/docs/interfaces/UxValidationErrorFeedback.html +126 -98
  79. package/docs/interfaces/UxValidationErrorI18nMessage.html +127 -99
  80. package/docs/interfaces/VersionsConfig.html +96 -68
  81. package/docs/interfaces/XHRConfig.html +346 -318
  82. package/docs/js/architecture-graph.js +288 -0
  83. package/docs/js/libs/bootstrap-native.js +4 -2
  84. package/docs/js/libs/tablesort.min.js +3 -3
  85. package/docs/js/libs/tablesort.number.min.js +2 -2
  86. package/docs/js/libs/vis-network.min.js +7 -7
  87. package/docs/js/menu-wc.js +30 -23
  88. package/docs/js/routes.js +138 -37
  89. package/docs/js/search/search.js +62 -0
  90. package/docs/js/search/search_index.js +2 -2
  91. package/docs/js/tabs.js +98 -15
  92. package/docs/js/tree.js +44 -7
  93. package/docs/json/documentation.json +3154 -482
  94. package/docs/license.html +26 -2
  95. package/docs/llms.txt +1084 -0
  96. package/docs/miscellaneous/enumerations.html +30 -6
  97. package/docs/miscellaneous/functions.html +138 -27
  98. package/docs/miscellaneous/typealiases.html +62 -29
  99. package/docs/miscellaneous/variables.html +77 -53
  100. package/docs/modules.html +26 -2
  101. package/docs/overview.html +26 -2
  102. package/docs/properties.html +27 -3
  103. package/docs/routes.html +26 -2
  104. package/docs/styles/compodoc.css +365 -44
  105. package/docs/styles/dark.css +16 -0
  106. package/docs/template-playground/hbs-render.service.ts +6 -1
  107. package/package.json +1 -1
  108. package/docs/js/menu-wc_es5.js +0 -40
@@ -85,7 +85,14 @@
85
85
  </div>
86
86
 
87
87
  <div class="xs-menu menu" id="mobile-menu">
88
- <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>
89
96
  </div>
90
97
 
91
98
  <div class="container-fluid main">
@@ -114,9 +121,14 @@
114
121
 
115
122
  <ol class="breadcrumb">
116
123
  <li class="breadcrumb-item">Classes</li>
117
- <li class="breadcrumb-item" >EuiService</li>
124
+ <li class="breadcrumb-item" >EuiService&lt;T&gt;</li>
118
125
  </ol>
119
126
 
127
+ <div class="io-file io-file-path" data-compodoc="entity-file-path">
128
+ <span class="icon ion-ios-document" aria-hidden="true"></span>
129
+ <code>packages/base/src/lib/eui-models/eui-service.model.ts</code>
130
+ </div>
131
+
120
132
  <ul class="nav nav-tabs" role="tablist">
121
133
  <li class="nav-item">
122
134
  <a href="#info"
@@ -124,17 +136,16 @@
124
136
  class="nav-link active"
125
137
  role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
126
138
  </li>
139
+ <li class="nav-item">
140
+ <a href="#api"
141
+ class="nav-link"
142
+
143
+ role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
144
+ </li>
127
145
  </ul>
128
146
 
129
147
  <div class="tab-content">
130
148
  <div class="tab-pane fade active in" id="info">
131
- <p class="comment">
132
- <h3>File</h3>
133
- </p>
134
- <p class="comment">
135
- <code>packages/base/src/lib/eui-models/eui-service.model.ts</code>
136
- </p>
137
-
138
149
 
139
150
 
140
151
 
@@ -146,70 +157,100 @@
146
157
  </p>
147
158
 
148
159
 
160
+ <section data-compodoc="block-relationships">
161
+ <h3>Relationships</h3>
162
+
163
+ <div class="row pt-3">
164
+ <div class="col-sm-6">
165
+ <h4>Used by</h4>
166
+ <p class="comment"><i>No results matching.</i></p>
167
+ </div>
168
+
169
+ <div class="col-sm-6">
170
+ <h4>Depends on</h4>
171
+ <ul class="list-unstyled relationships-list">
172
+ <li>
173
+ <code><a href="../interfaces/EuiServiceModel.html" target="_self" >EuiServiceModel</a></code>
174
+ </li>
175
+ </ul>
176
+ </div>
177
+ </div>
178
+ </section>
179
+ </div>
180
+
181
+ <div class="tab-pane fade " id="api">
149
182
  <section data-compodoc="block-index">
150
183
  <h3 id="index">Index</h3>
151
- <table class="table table-sm table-bordered index-table">
152
- <tbody>
184
+ <table class="table table-sm table-bordered index-table">
185
+ <tbody>
153
186
  <tr>
154
- <td class="col-md-4">
187
+ <td class="col-md-3">
155
188
  <h6><b>Properties</b></h6>
156
189
  </td>
157
- </tr>
158
- <tr>
159
- <td class="col-md-4">
190
+ <td class="col-md-9">
160
191
  <ul class="index-list">
161
192
  <li>
193
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
162
194
  <a href="#onStateChange" >onStateChange</a>
163
195
  </li>
164
196
  </ul>
165
197
  </td>
166
198
  </tr>
199
+ </tbody>
200
+ </table>
167
201
 
202
+ <table class="table table-sm table-bordered index-table">
203
+ <tbody>
168
204
  <tr>
169
- <td class="col-md-4">
205
+ <td class="col-md-3">
170
206
  <h6><b>Methods</b></h6>
171
207
  </td>
172
- </tr>
173
- <tr>
174
- <td class="col-md-4">
208
+ <td class="col-md-9">
175
209
  <ul class="index-list">
176
210
  <li>
211
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
177
212
  <span class="modifier">Abstract</span>
178
213
  <a href="#getState" >getState</a>
179
214
  </li>
180
215
  <li>
216
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
181
217
  <span class="modifier">Abstract</span>
182
218
  <a href="#getState" >getState</a>
183
219
  </li>
184
220
  <li>
221
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
185
222
  <span class="modifier">Abstract</span>
186
223
  <a href="#getState" >getState</a>
187
224
  </li>
188
225
  <li>
226
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
189
227
  <span class="modifier">Abstract</span>
190
228
  <a href="#getState" >getState</a>
191
229
  </li>
192
230
  <li>
231
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
193
232
  <span class="modifier">Abstract</span>
194
233
  <a href="#init" >init</a>
195
234
  </li>
196
235
  <li>
236
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
197
237
  <a href="#initEuiService" >initEuiService</a>
198
238
  </li>
199
239
  <li>
240
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
200
241
  <span class="modifier">Abstract</span>
201
242
  <a href="#updateState" >updateState</a>
202
243
  </li>
203
244
  </ul>
204
245
  </td>
205
246
  </tr>
247
+ </tbody>
248
+ </table>
206
249
 
207
250
 
208
251
 
209
252
 
210
253
 
211
- </tbody>
212
- </table>
213
254
  </section>
214
255
 
215
256
 
@@ -266,7 +307,7 @@
266
307
  <tr>
267
308
  <td class="col-md-4">
268
309
  <span class="modifier-icon icon ion-ios-reset"></span>
269
- <code>getState()</code>
310
+ <code>getState&lt;K&gt;()</code>
270
311
  </td>
271
312
  </tr>
272
313
 
@@ -283,6 +324,10 @@
283
324
 
284
325
  <tr>
285
326
  <td class="col-md-4">
327
+ <div class="io-description"><p>retrieves the State of the service. If you don&#39;t pass anything it will retrieve the whole State
328
+ of that service. If you pass a selector or MapFunction it will retrieve a slice of the state. If
329
+ you pass a string that&#39;s a key of the Service State type it will retrieve that slice of the state.</p>
330
+ </div>
286
331
 
287
332
  <div class="io-description">
288
333
  <b>Returns : </b> <code>Observable&lt;T&gt;</code>
@@ -307,7 +352,7 @@
307
352
  <tr>
308
353
  <td class="col-md-4">
309
354
  <span class="modifier-icon icon ion-ios-reset"></span>
310
- <code>getState(mapFn?: (state?: T) => void)</code>
355
+ <code>getState&lt;K&gt;(mapFn?: (state?: T) => void)</code>
311
356
  </td>
312
357
  </tr>
313
358
 
@@ -324,6 +369,10 @@
324
369
 
325
370
  <tr>
326
371
  <td class="col-md-4">
372
+ <div class="io-description"><p>retrieves the State of the service. If you don&#39;t pass anything it will retrieve the whole State
373
+ of that service. If you pass a selector or MapFunction it will retrieve a slice of the state. If
374
+ you pass a string that&#39;s a key of the Service State type it will retrieve that slice of the state.</p>
375
+ </div>
327
376
 
328
377
  <div class="io-description">
329
378
  <b>Parameters :</b>
@@ -378,7 +427,7 @@
378
427
  <tr>
379
428
  <td class="col-md-4">
380
429
  <span class="modifier-icon icon ion-ios-reset"></span>
381
- <code>getState(key?: A)</code>
430
+ <code>getState&lt;A&gt;(key?: A)</code>
382
431
  </td>
383
432
  </tr>
384
433
 
@@ -395,6 +444,10 @@
395
444
 
396
445
  <tr>
397
446
  <td class="col-md-4">
447
+ <div class="io-description"><p>retrieves the State of the service. If you don&#39;t pass anything it will retrieve the whole State
448
+ of that service. If you pass a selector or MapFunction it will retrieve a slice of the state. If
449
+ you pass a string that&#39;s a key of the Service State type it will retrieve that slice of the state.</p>
450
+ </div>
398
451
 
399
452
  <div class="io-description">
400
453
  <b>Parameters :</b>
@@ -424,7 +477,7 @@
424
477
  </table>
425
478
  </div>
426
479
  <div class="io-description">
427
- <b>Returns : </b> <code>Observable&lt;unknown&gt;</code>
480
+ <b>Returns : </b> <code>Observable&lt;T[&#x27;A&#x27;]&gt;</code>
428
481
 
429
482
  </div>
430
483
  <div class="io-description">
@@ -449,7 +502,7 @@
449
502
  <tr>
450
503
  <td class="col-md-4">
451
504
  <span class="modifier-icon icon ion-ios-reset"></span>
452
- <code>getState(keyOrMapFn?: unknown | string)</code>
505
+ <code>getState&lt;K&gt;(keyOrMapFn?: unknown | string)</code>
453
506
  </td>
454
507
  </tr>
455
508
 
@@ -466,6 +519,10 @@
466
519
 
467
520
  <tr>
468
521
  <td class="col-md-4">
522
+ <div class="io-description"><p>retrieves the State of the service. If you don&#39;t pass anything it will retrieve the whole State
523
+ of that service. If you pass a selector or MapFunction it will retrieve a slice of the state. If
524
+ you pass a string that&#39;s a key of the Service State type it will retrieve that slice of the state.</p>
525
+ </div>
469
526
 
470
527
  <div class="io-description">
471
528
  <b>Parameters :</b>
@@ -614,7 +671,7 @@
614
671
  <tr>
615
672
  <td class="col-md-4">
616
673
  <span class="modifier-icon icon ion-ios-reset"></span>
617
- <code>updateState(t: <a href="../undefineds/DeepPartial.html" target="_self">DeepPartial&lt;T&gt;</a>)</code>
674
+ <code>updateState(t: <a href="../miscellaneous/typealiases.html#DeepPartial" target="_self">DeepPartial&lt;T&gt;</a>)</code>
618
675
  </td>
619
676
  </tr>
620
677
 
@@ -668,6 +725,7 @@
668
725
 
669
726
 
670
727
 
728
+
671
729
  </div>
672
730
 
673
731
 
@@ -713,6 +771,24 @@
713
771
 
714
772
  <script>
715
773
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
774
+ var updateDarkModeSwitchOffset = function () {
775
+ var content = document.querySelector('.content');
776
+ var scrollbarWidth = 0;
777
+
778
+ if (content) {
779
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
780
+ }
781
+
782
+ document.documentElement.style.setProperty(
783
+ '--content-scrollbar-width',
784
+ scrollbarWidth + 'px'
785
+ );
786
+ };
787
+
788
+ updateDarkModeSwitchOffset();
789
+ requestAnimationFrame(updateDarkModeSwitchOffset);
790
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
791
+
716
792
  checkToggle(darkModeState);
717
793
  if ($darkModeToggleSwitchers.length > 0) {
718
794
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -728,7 +804,6 @@
728
804
  <script src="../js/libs/lit-html.js"></script>
729
805
 
730
806
  <script src="../js/menu-wc.js" defer></script>
731
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
732
807
 
733
808
  <script src="../js/libs/bootstrap-native.js"></script>
734
809
 
@@ -85,7 +85,14 @@
85
85
  </div>
86
86
 
87
87
  <div class="xs-menu menu" id="mobile-menu">
88
- <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>
89
96
  </div>
90
97
 
91
98
  <div class="container-fluid main">
@@ -114,9 +121,14 @@
114
121
 
115
122
  <ol class="breadcrumb">
116
123
  <li class="breadcrumb-item">Classes</li>
117
- <li class="breadcrumb-item" >LogAppender</li>
124
+ <li class="breadcrumb-item" >LogAppender&lt;CFG extends LogAppenderConfig &#x3D; LogAppenderConfig&gt;</li>
118
125
  </ol>
119
126
 
127
+ <div class="io-file io-file-path" data-compodoc="entity-file-path">
128
+ <span class="icon ion-ios-document" aria-hidden="true"></span>
129
+ <code>packages/base/src/lib/eui-models/log/log.appender.ts</code>
130
+ </div>
131
+
120
132
  <ul class="nav nav-tabs" role="tablist">
121
133
  <li class="nav-item">
122
134
  <a href="#info"
@@ -124,17 +136,16 @@
124
136
  class="nav-link active"
125
137
  role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
126
138
  </li>
139
+ <li class="nav-item">
140
+ <a href="#api"
141
+ class="nav-link"
142
+
143
+ role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
144
+ </li>
127
145
  </ul>
128
146
 
129
147
  <div class="tab-content">
130
148
  <div class="tab-pane fade active in" id="info">
131
- <p class="comment">
132
- <h3>File</h3>
133
- </p>
134
- <p class="comment">
135
- <code>packages/base/src/lib/eui-models/log/log.appender.ts</code>
136
- </p>
137
-
138
149
 
139
150
  <p class="comment">
140
151
  <h3>Description</h3>
@@ -147,36 +158,39 @@
147
158
 
148
159
 
149
160
 
161
+ </div>
162
+
163
+ <div class="tab-pane fade " id="api">
150
164
  <section data-compodoc="block-index">
151
165
  <h3 id="index">Index</h3>
152
- <table class="table table-sm table-bordered index-table">
153
- <tbody>
154
166
 
167
+ <table class="table table-sm table-bordered index-table">
168
+ <tbody>
155
169
  <tr>
156
- <td class="col-md-4">
170
+ <td class="col-md-3">
157
171
  <h6><b>Methods</b></h6>
158
172
  </td>
159
- </tr>
160
- <tr>
161
- <td class="col-md-4">
173
+ <td class="col-md-9">
162
174
  <ul class="index-list">
163
175
  <li>
176
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
164
177
  <span class="modifier">Abstract</span>
165
178
  <a href="#append" >append</a>
166
179
  </li>
167
180
  <li>
181
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
168
182
  <a href="#getConfig" >getConfig</a>
169
183
  </li>
170
184
  </ul>
171
185
  </td>
172
186
  </tr>
187
+ </tbody>
188
+ </table>
173
189
 
174
190
 
175
191
 
176
192
 
177
193
 
178
- </tbody>
179
- </table>
180
194
  </section>
181
195
 
182
196
  <section data-compodoc="block-constructor">
@@ -185,7 +199,7 @@
185
199
  <tbody>
186
200
  <tr>
187
201
  <td class="col-md-4">
188
- <code>constructor(config: CFG, injector: Injector)</code>
202
+ <code>constructor(config: CFG, injector: <a href="https://angular.dev/api/core/Injector" target="_blank">Injector</a>)</code>
189
203
  </td>
190
204
  </tr>
191
205
 
@@ -218,7 +232,7 @@
218
232
  <td>injector</td>
219
233
 
220
234
  <td>
221
- <code>Injector</code>
235
+ <code><a href="https://angular.dev/api/core/Injector" target="_blank" >Injector</a></code>
222
236
  </td>
223
237
 
224
238
  <td>
@@ -354,6 +368,7 @@
354
368
 
355
369
 
356
370
 
371
+
357
372
  </div>
358
373
 
359
374
 
@@ -399,6 +414,24 @@
399
414
 
400
415
  <script>
401
416
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
417
+ var updateDarkModeSwitchOffset = function () {
418
+ var content = document.querySelector('.content');
419
+ var scrollbarWidth = 0;
420
+
421
+ if (content) {
422
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
423
+ }
424
+
425
+ document.documentElement.style.setProperty(
426
+ '--content-scrollbar-width',
427
+ scrollbarWidth + 'px'
428
+ );
429
+ };
430
+
431
+ updateDarkModeSwitchOffset();
432
+ requestAnimationFrame(updateDarkModeSwitchOffset);
433
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
434
+
402
435
  checkToggle(darkModeState);
403
436
  if ($darkModeToggleSwitchers.length > 0) {
404
437
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -414,7 +447,6 @@
414
447
  <script src="../js/libs/lit-html.js"></script>
415
448
 
416
449
  <script src="../js/menu-wc.js" defer></script>
417
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
418
450
 
419
451
  <script src="../js/libs/bootstrap-native.js"></script>
420
452