@eui/core 23.0.0-alpha.2 → 23.0.0-alpha.4
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 +61 -0
- package/docs/architecture.html +223 -0
- package/docs/changelog.html +126 -2
- package/docs/classes/ActivatedRouteAction.html +70 -20
- package/docs/classes/AddApiQueueItemAction.html +70 -20
- package/docs/classes/AddAppLoadedConfigModulesAction.html +70 -20
- package/docs/classes/ApiQueueServiceMock.html +77 -20
- package/docs/classes/AsyncStorageService.html +86 -20
- package/docs/classes/AsyncStorageServiceMock.html +73 -17
- package/docs/classes/CssUtils.html +74 -20
- package/docs/classes/EmptyApiQueueAction.html +67 -17
- package/docs/classes/ErrorSubClass.html +68 -16
- package/docs/classes/EuiAppShellServiceMock.html +58 -20
- package/docs/classes/EuiCoreRootGuardClass.html +39 -8
- package/docs/classes/EuiError.html +69 -17
- package/docs/classes/I18nResourceImpl.html +50 -17
- package/docs/classes/InitStoreAction.html +70 -20
- package/docs/classes/LogServiceMock.html +67 -17
- package/docs/classes/RemoveApiQueueItemAction.html +67 -17
- package/docs/classes/StorageService.html +83 -19
- package/docs/classes/StorageServiceMock.html +70 -17
- package/docs/classes/TranslateServiceMock.html +90 -35
- package/docs/classes/UpdateAppConnectionAction.html +67 -17
- package/docs/classes/UpdateAppStatusAction.html +67 -17
- package/docs/classes/UpdateAppVersionAction.html +67 -17
- package/docs/classes/UpdateCurrentModuleAction.html +67 -17
- package/docs/classes/UpdateI18nStateAction.html +67 -17
- package/docs/classes/UpdateLocaleStateAction.html +67 -17
- package/docs/classes/UpdateNotificationsListAction.html +67 -17
- package/docs/classes/UpdateUserDashboardAction.html +67 -17
- package/docs/classes/UpdateUserDetailsAction.html +67 -17
- package/docs/classes/UpdateUserPreferencesAction.html +67 -17
- package/docs/classes/UpdateUserRightsAction.html +67 -17
- package/docs/classes/UpdateUserStateAction.html +67 -17
- package/docs/dependencies.html +38 -4
- package/docs/directives/TranslateMockDirective.html +72 -19
- package/docs/index.html +26 -2
- package/docs/injectables/ApiQueueService.html +97 -20
- package/docs/injectables/EuiAppShellService.html +147 -68
- package/docs/injectables/EuiDynamicComponentService.html +51 -18
- package/docs/injectables/EuiDynamicMenuService.html +67 -20
- package/docs/injectables/EuiGrowlService.html +85 -21
- package/docs/injectables/EuiLoaderService.html +65 -17
- package/docs/injectables/EuiPermissionService.html +95 -20
- package/docs/injectables/EuiThemeService.html +89 -34
- package/docs/injectables/EuiTimezoneService.html +51 -16
- package/docs/injectables/GlobalErrorHandler.html +79 -17
- package/docs/injectables/I18nLoader.html +53 -17
- package/docs/injectables/I18nService.html +101 -23
- package/docs/injectables/I18nServiceMock.html +96 -34
- package/docs/injectables/LocalForageService.html +81 -21
- package/docs/injectables/LocalStorageService.html +78 -21
- package/docs/injectables/LocaleService.html +124 -41
- package/docs/injectables/LocaleServiceMock.html +72 -18
- package/docs/injectables/LogService.html +68 -17
- package/docs/injectables/SessionStorageService.html +78 -21
- package/docs/injectables/StoreService.html +91 -22
- package/docs/injectables/StoreServiceMock.html +72 -17
- package/docs/injectables/UserService.html +97 -23
- package/docs/injectables/UserServiceMock.html +81 -23
- package/docs/interceptors/AddLangParamInterceptor.html +49 -18
- package/docs/interceptors/CachePreventionInterceptor.html +48 -17
- package/docs/interceptors/CorsSecurityInterceptor.html +48 -17
- package/docs/interceptors/CsrfPreventionInterceptor.html +48 -17
- package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +48 -17
- package/docs/interceptors/HttpErrorHandlerInterceptor.html +48 -17
- package/docs/interceptors/UxRequestErrorModelInterceptor.html +48 -17
- package/docs/interfaces/Action.html +158 -60
- package/docs/interfaces/ActionReducer.html +84 -55
- package/docs/interfaces/ComponentInfo.html +151 -123
- package/docs/interfaces/Dependency.html +278 -250
- package/docs/interfaces/Edit-1.html +151 -123
- package/docs/interfaces/Edit-2.html +151 -123
- package/docs/interfaces/Edit.html +151 -123
- package/docs/interfaces/EuiComponentEntry.html +230 -202
- package/docs/interfaces/EuiTimeZone.html +121 -93
- package/docs/interfaces/IEuiTheme.html +181 -153
- package/docs/interfaces/ImportToAdd.html +164 -136
- package/docs/interfaces/ImportsArrayInfo.html +121 -93
- package/docs/interfaces/Library.html +169 -137
- package/docs/interfaces/LoadedResources.html +164 -136
- package/docs/interfaces/LoadedResourcesError.html +121 -93
- package/docs/interfaces/MemoizedSelector.html +187 -138
- package/docs/interfaces/MemoizedSelectorWithProps.html +188 -139
- package/docs/interfaces/MigrateAllSchema.html +228 -200
- package/docs/interfaces/MigrationResult.html +151 -123
- package/docs/interfaces/ModuleLoadEvent.html +164 -136
- package/docs/interfaces/ModuleMapping.html +121 -93
- package/docs/interfaces/NgModuleInfo.html +151 -123
- package/docs/interfaces/Policy.html +164 -136
- package/docs/interfaces/ResourceError.html +170 -142
- package/docs/interfaces/Schema-1.html +140 -112
- package/docs/interfaces/Schema-10.html +140 -112
- package/docs/interfaces/Schema-11.html +140 -112
- package/docs/interfaces/Schema-12.html +140 -112
- package/docs/interfaces/Schema-13.html +140 -112
- package/docs/interfaces/Schema-14.html +140 -112
- package/docs/interfaces/Schema-15.html +140 -112
- package/docs/interfaces/Schema-16.html +140 -112
- package/docs/interfaces/Schema-17.html +140 -112
- package/docs/interfaces/Schema-18.html +140 -112
- package/docs/interfaces/Schema-19.html +140 -112
- package/docs/interfaces/Schema-2.html +141 -113
- package/docs/interfaces/Schema-20.html +140 -112
- package/docs/interfaces/Schema-3.html +180 -152
- package/docs/interfaces/Schema-4.html +140 -112
- package/docs/interfaces/Schema-5.html +140 -112
- package/docs/interfaces/Schema-6.html +140 -112
- package/docs/interfaces/Schema-7.html +140 -112
- package/docs/interfaces/Schema-8.html +140 -112
- package/docs/interfaces/Schema-9.html +140 -112
- package/docs/interfaces/Schema.html +184 -156
- package/docs/interfaces/SelectorEntry.html +230 -202
- package/docs/interfaces/TextChange.html +151 -123
- package/docs/interfaces/ThemeState.html +121 -93
- package/docs/interfaces/TranslationKeys.html +41 -11
- package/docs/interfaces/UIState.html +1669 -1641
- package/docs/interfaces/body.html +181 -153
- package/docs/js/architecture-graph.js +288 -0
- package/docs/js/libs/bootstrap-native.js +4 -2
- package/docs/js/libs/tablesort.min.js +3 -3
- package/docs/js/libs/tablesort.number.min.js +2 -2
- package/docs/js/libs/vis-network.min.js +7 -7
- package/docs/js/menu-wc.js +47 -14
- package/docs/js/routes.js +138 -37
- package/docs/js/search/search.js +62 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/js/tabs.js +98 -15
- package/docs/js/tree.js +44 -7
- package/docs/json/EuiPermissionService.md +1 -0
- package/docs/json/LocaleService.md +1 -0
- package/docs/json/documentation.json +6691 -1067
- package/docs/license.html +26 -2
- package/docs/llms.txt +2282 -0
- package/docs/miscellaneous/enumerations.html +34 -10
- package/docs/miscellaneous/functions.html +550 -394
- package/docs/miscellaneous/typealiases.html +59 -27
- package/docs/miscellaneous/variables.html +196 -175
- package/docs/modules/CoreModule.html +34 -9
- package/docs/modules/I18nModule.html +34 -9
- package/docs/modules/LogModule.html +34 -9
- package/docs/modules/TranslateMockModule.html +60 -13
- package/docs/modules.html +26 -2
- package/docs/overview.html +27 -3
- package/docs/pipes/TranslateMockPipe.html +87 -9
- package/docs/properties.html +27 -3
- package/docs/routes.html +26 -2
- package/docs/styles/compodoc.css +365 -44
- package/docs/styles/dark.css +16 -0
- package/docs/template-playground/hbs-render.service.ts +6 -1
- package/fesm2022/eui-core.mjs +26 -27
- package/fesm2022/eui-core.mjs.map +1 -1
- package/package.json +2 -2
- package/types/eui-core.d.ts +9 -11
- package/types/eui-core.d.ts.map +1 -1
- 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"
|
|
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>×</button>
|
|
94
|
+
</div>
|
|
95
|
+
<compodoc-menu></compodoc-menu>
|
|
89
96
|
</div>
|
|
90
97
|
|
|
91
98
|
<div class="container-fluid main">
|
|
@@ -113,6 +120,11 @@
|
|
|
113
120
|
<li class="breadcrumb-item" >GlobalErrorHandler</li>
|
|
114
121
|
</ol>
|
|
115
122
|
|
|
123
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
124
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
125
|
+
<code>packages/core/src/lib/services/errors/global-error-handler.ts</code>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
116
128
|
<ul class="nav nav-tabs" role="tablist">
|
|
117
129
|
<li class="nav-item">
|
|
118
130
|
<a href="#info"
|
|
@@ -120,17 +132,16 @@
|
|
|
120
132
|
class="nav-link active"
|
|
121
133
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
122
134
|
</li>
|
|
135
|
+
<li class="nav-item">
|
|
136
|
+
<a href="#api"
|
|
137
|
+
class="nav-link"
|
|
138
|
+
|
|
139
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
140
|
+
</li>
|
|
123
141
|
</ul>
|
|
124
142
|
|
|
125
143
|
<div class="tab-content">
|
|
126
144
|
<div class="tab-pane fade active in" id="info">
|
|
127
|
-
<p class="comment">
|
|
128
|
-
<h3>File</h3>
|
|
129
|
-
</p>
|
|
130
|
-
<p class="comment">
|
|
131
|
-
<code>packages/core/src/lib/services/errors/global-error-handler.ts</code>
|
|
132
|
-
</p>
|
|
133
|
-
|
|
134
145
|
|
|
135
146
|
|
|
136
147
|
<p class="comment">
|
|
@@ -140,34 +151,67 @@
|
|
|
140
151
|
<code><a href="../miscellaneous/typealiases.html#Handler" target="_self" >ErrorHandler</a></code>
|
|
141
152
|
</p>
|
|
142
153
|
|
|
154
|
+
<section data-compodoc="block-metadata">
|
|
155
|
+
<h3>Metadata</h3>
|
|
156
|
+
<table class="table table-sm table-hover metadata">
|
|
157
|
+
<tbody>
|
|
158
|
+
<tr>
|
|
159
|
+
<td class="col-md-3">providedIn</td>
|
|
160
|
+
<td class="col-md-9"><code>root</code></td>
|
|
161
|
+
</tr>
|
|
162
|
+
</tbody>
|
|
163
|
+
</table>
|
|
164
|
+
</section>
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
<section data-compodoc="block-relationships">
|
|
168
|
+
<h3>Relationships</h3>
|
|
169
|
+
|
|
170
|
+
<div class="row pt-3">
|
|
171
|
+
<div class="col-sm-6">
|
|
172
|
+
<h4>Used by</h4>
|
|
173
|
+
<p class="comment"><i>No results matching.</i></p>
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<div class="col-sm-6">
|
|
177
|
+
<h4>Depends on</h4>
|
|
178
|
+
<ul class="list-unstyled relationships-list">
|
|
179
|
+
<li>
|
|
180
|
+
<code><a href="../miscellaneous/typealiases.html#Handler" target="_self" >ErrorHandler</a></code>
|
|
181
|
+
</li>
|
|
182
|
+
</ul>
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
</section>
|
|
186
|
+
</div>
|
|
143
187
|
|
|
188
|
+
<div class="tab-pane fade " id="api">
|
|
144
189
|
<section data-compodoc="block-index">
|
|
145
190
|
<h3 id="index">Index</h3>
|
|
146
|
-
<table class="table table-sm table-bordered index-table">
|
|
147
|
-
<tbody>
|
|
148
191
|
|
|
192
|
+
<table class="table table-sm table-bordered index-table">
|
|
193
|
+
<tbody>
|
|
149
194
|
<tr>
|
|
150
|
-
<td class="col-md-
|
|
195
|
+
<td class="col-md-3">
|
|
151
196
|
<h6><b>Methods</b></h6>
|
|
152
197
|
</td>
|
|
153
|
-
|
|
154
|
-
<tr>
|
|
155
|
-
<td class="col-md-4">
|
|
198
|
+
<td class="col-md-9">
|
|
156
199
|
<ul class="index-list">
|
|
157
200
|
<li>
|
|
201
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
158
202
|
<span class="modifier"></span>
|
|
159
203
|
<a href="#handleError" >handleError</a>
|
|
160
204
|
</li>
|
|
161
205
|
</ul>
|
|
162
206
|
</td>
|
|
163
207
|
</tr>
|
|
208
|
+
</tbody>
|
|
209
|
+
</table>
|
|
164
210
|
|
|
165
211
|
|
|
166
212
|
|
|
167
213
|
|
|
168
214
|
|
|
169
|
-
</tbody>
|
|
170
|
-
</table>
|
|
171
215
|
</section>
|
|
172
216
|
|
|
173
217
|
|
|
@@ -241,6 +285,7 @@
|
|
|
241
285
|
</table>
|
|
242
286
|
</section>
|
|
243
287
|
|
|
288
|
+
|
|
244
289
|
</div>
|
|
245
290
|
|
|
246
291
|
|
|
@@ -291,6 +336,24 @@
|
|
|
291
336
|
|
|
292
337
|
<script>
|
|
293
338
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
339
|
+
var updateDarkModeSwitchOffset = function () {
|
|
340
|
+
var content = document.querySelector('.content');
|
|
341
|
+
var scrollbarWidth = 0;
|
|
342
|
+
|
|
343
|
+
if (content) {
|
|
344
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
document.documentElement.style.setProperty(
|
|
348
|
+
'--content-scrollbar-width',
|
|
349
|
+
scrollbarWidth + 'px'
|
|
350
|
+
);
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
updateDarkModeSwitchOffset();
|
|
354
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
355
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
356
|
+
|
|
294
357
|
checkToggle(darkModeState);
|
|
295
358
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
296
359
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -306,7 +369,6 @@
|
|
|
306
369
|
<script src="../js/libs/lit-html.js"></script>
|
|
307
370
|
|
|
308
371
|
<script src="../js/menu-wc.js" defer></script>
|
|
309
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
310
372
|
|
|
311
373
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
312
374
|
|
|
@@ -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"
|
|
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>×</button>
|
|
94
|
+
</div>
|
|
95
|
+
<compodoc-menu></compodoc-menu>
|
|
89
96
|
</div>
|
|
90
97
|
|
|
91
98
|
<div class="container-fluid main">
|
|
@@ -113,6 +120,11 @@
|
|
|
113
120
|
<li class="breadcrumb-item" >I18nLoader</li>
|
|
114
121
|
</ol>
|
|
115
122
|
|
|
123
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
124
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
125
|
+
<code>packages/core/src/lib/services/i18n/i18n.loader.ts</code>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
116
128
|
<ul class="nav nav-tabs" role="tablist">
|
|
117
129
|
<li class="nav-item">
|
|
118
130
|
<a href="#info"
|
|
@@ -120,64 +132,70 @@
|
|
|
120
132
|
class="nav-link active"
|
|
121
133
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
122
134
|
</li>
|
|
135
|
+
<li class="nav-item">
|
|
136
|
+
<a href="#api"
|
|
137
|
+
class="nav-link"
|
|
138
|
+
|
|
139
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
140
|
+
</li>
|
|
123
141
|
</ul>
|
|
124
142
|
|
|
125
143
|
<div class="tab-content">
|
|
126
144
|
<div class="tab-pane fade active in" id="info">
|
|
127
|
-
<p class="comment">
|
|
128
|
-
<h3>File</h3>
|
|
129
|
-
</p>
|
|
130
|
-
<p class="comment">
|
|
131
|
-
<code>packages/core/src/lib/services/i18n/i18n.loader.ts</code>
|
|
132
|
-
</p>
|
|
133
145
|
|
|
134
146
|
|
|
135
147
|
|
|
136
148
|
|
|
137
149
|
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
<div class="tab-pane fade " id="api">
|
|
138
153
|
<section data-compodoc="block-index">
|
|
139
154
|
<h3 id="index">Index</h3>
|
|
140
|
-
<table class="table table-sm table-bordered index-table">
|
|
141
|
-
<tbody>
|
|
142
155
|
|
|
156
|
+
<table class="table table-sm table-bordered index-table">
|
|
157
|
+
<tbody>
|
|
143
158
|
<tr>
|
|
144
|
-
<td class="col-md-
|
|
159
|
+
<td class="col-md-3">
|
|
145
160
|
<h6><b>Methods</b></h6>
|
|
146
161
|
</td>
|
|
147
|
-
|
|
148
|
-
<tr>
|
|
149
|
-
<td class="col-md-4">
|
|
162
|
+
<td class="col-md-9">
|
|
150
163
|
<ul class="index-list">
|
|
151
164
|
<li>
|
|
165
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
152
166
|
<span class="modifier">Public</span>
|
|
153
167
|
<a href="#addResources" >addResources</a>
|
|
154
168
|
</li>
|
|
155
169
|
<li>
|
|
170
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
156
171
|
<span class="modifier">Public</span>
|
|
157
172
|
<a href="#getFailedResources" >getFailedResources</a>
|
|
158
173
|
</li>
|
|
159
174
|
<li>
|
|
175
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
160
176
|
<span class="modifier">Public</span>
|
|
161
177
|
<a href="#getTranslation" >getTranslation</a>
|
|
162
178
|
</li>
|
|
163
179
|
<li>
|
|
180
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
164
181
|
<span class="modifier">Public</span>
|
|
165
182
|
<a href="#loadResources" >loadResources</a>
|
|
166
183
|
</li>
|
|
167
184
|
<li>
|
|
185
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
168
186
|
<span class="modifier">Public</span>
|
|
169
187
|
<a href="#removeResources" >removeResources</a>
|
|
170
188
|
</li>
|
|
171
189
|
</ul>
|
|
172
190
|
</td>
|
|
173
191
|
</tr>
|
|
192
|
+
</tbody>
|
|
193
|
+
</table>
|
|
174
194
|
|
|
175
195
|
|
|
176
196
|
|
|
177
197
|
|
|
178
198
|
|
|
179
|
-
</tbody>
|
|
180
|
-
</table>
|
|
181
199
|
</section>
|
|
182
200
|
|
|
183
201
|
<section data-compodoc="block-constructor">
|
|
@@ -447,7 +465,7 @@
|
|
|
447
465
|
</table>
|
|
448
466
|
</div>
|
|
449
467
|
<div class="io-description">
|
|
450
|
-
<b>Returns : </b> <code>Observable<
|
|
468
|
+
<b>Returns : </b> <code>Observable<{ hasError: boolean; translations: TranslationObject; errors?: LoadedResourcesError[] }></code>
|
|
451
469
|
|
|
452
470
|
</div>
|
|
453
471
|
<div class="io-description">
|
|
@@ -525,6 +543,7 @@
|
|
|
525
543
|
</table>
|
|
526
544
|
</section>
|
|
527
545
|
|
|
546
|
+
|
|
528
547
|
</div>
|
|
529
548
|
|
|
530
549
|
|
|
@@ -575,6 +594,24 @@
|
|
|
575
594
|
|
|
576
595
|
<script>
|
|
577
596
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
597
|
+
var updateDarkModeSwitchOffset = function () {
|
|
598
|
+
var content = document.querySelector('.content');
|
|
599
|
+
var scrollbarWidth = 0;
|
|
600
|
+
|
|
601
|
+
if (content) {
|
|
602
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
document.documentElement.style.setProperty(
|
|
606
|
+
'--content-scrollbar-width',
|
|
607
|
+
scrollbarWidth + 'px'
|
|
608
|
+
);
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
updateDarkModeSwitchOffset();
|
|
612
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
613
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
614
|
+
|
|
578
615
|
checkToggle(darkModeState);
|
|
579
616
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
580
617
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -590,7 +627,6 @@
|
|
|
590
627
|
<script src="../js/libs/lit-html.js"></script>
|
|
591
628
|
|
|
592
629
|
<script src="../js/menu-wc.js" defer></script>
|
|
593
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
594
630
|
|
|
595
631
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
596
632
|
|
|
@@ -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"
|
|
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>×</button>
|
|
94
|
+
</div>
|
|
95
|
+
<compodoc-menu></compodoc-menu>
|
|
89
96
|
</div>
|
|
90
97
|
|
|
91
98
|
<div class="container-fluid main">
|
|
@@ -113,6 +120,11 @@
|
|
|
113
120
|
<li class="breadcrumb-item" >I18nService</li>
|
|
114
121
|
</ol>
|
|
115
122
|
|
|
123
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
124
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
125
|
+
<code>packages/core/src/lib/services/i18n/i18n.service.ts</code>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
116
128
|
<ul class="nav nav-tabs" role="tablist">
|
|
117
129
|
<li class="nav-item">
|
|
118
130
|
<a href="#info"
|
|
@@ -120,91 +132,139 @@
|
|
|
120
132
|
class="nav-link active"
|
|
121
133
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
122
134
|
</li>
|
|
135
|
+
<li class="nav-item">
|
|
136
|
+
<a href="#api"
|
|
137
|
+
class="nav-link"
|
|
138
|
+
|
|
139
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
140
|
+
</li>
|
|
123
141
|
</ul>
|
|
124
142
|
|
|
125
143
|
<div class="tab-content">
|
|
126
144
|
<div class="tab-pane fade active in" id="info">
|
|
127
|
-
<p class="comment">
|
|
128
|
-
<h3>File</h3>
|
|
129
|
-
</p>
|
|
130
|
-
<p class="comment">
|
|
131
|
-
<code>packages/core/src/lib/services/i18n/i18n.service.ts</code>
|
|
132
|
-
</p>
|
|
133
|
-
|
|
134
145
|
|
|
135
146
|
|
|
136
147
|
<p class="comment">
|
|
137
148
|
<h3>Extends</h3>
|
|
138
149
|
</p>
|
|
139
150
|
<p class="comment">
|
|
140
|
-
<code>EuiLazyService
|
|
151
|
+
<code>EuiLazyService<T | I18nState></code>
|
|
141
152
|
</p>
|
|
142
153
|
|
|
154
|
+
<section data-compodoc="block-metadata">
|
|
155
|
+
<h3>Metadata</h3>
|
|
156
|
+
<table class="table table-sm table-hover metadata">
|
|
157
|
+
<tbody>
|
|
158
|
+
<tr>
|
|
159
|
+
<td class="col-md-3">providedIn</td>
|
|
160
|
+
<td class="col-md-9"><code>root</code></td>
|
|
161
|
+
</tr>
|
|
162
|
+
</tbody>
|
|
163
|
+
</table>
|
|
164
|
+
</section>
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
<section data-compodoc="block-relationships">
|
|
168
|
+
<h3>Relationships</h3>
|
|
169
|
+
|
|
170
|
+
<div class="row pt-3">
|
|
171
|
+
<div class="col-sm-6">
|
|
172
|
+
<h4>Used by</h4>
|
|
173
|
+
<ul class="list-unstyled relationships-list">
|
|
174
|
+
<li>
|
|
175
|
+
<code><a href="../injectables/I18nServiceMock.html" target="_self" >I18nServiceMock</a></code>
|
|
176
|
+
</li>
|
|
177
|
+
</ul>
|
|
178
|
+
</div>
|
|
179
|
+
|
|
180
|
+
<div class="col-sm-6">
|
|
181
|
+
<h4>Depends on</h4>
|
|
182
|
+
<ul class="list-unstyled relationships-list">
|
|
183
|
+
<li>
|
|
184
|
+
<code>EuiLazyService<T | I18nState></code>
|
|
185
|
+
</li>
|
|
186
|
+
</ul>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</section>
|
|
190
|
+
</div>
|
|
143
191
|
|
|
192
|
+
<div class="tab-pane fade " id="api">
|
|
144
193
|
<section data-compodoc="block-index">
|
|
145
194
|
<h3 id="index">Index</h3>
|
|
146
|
-
<table class="table table-sm table-bordered index-table">
|
|
147
|
-
<tbody>
|
|
148
195
|
|
|
196
|
+
<table class="table table-sm table-bordered index-table">
|
|
197
|
+
<tbody>
|
|
149
198
|
<tr>
|
|
150
|
-
<td class="col-md-
|
|
199
|
+
<td class="col-md-3">
|
|
151
200
|
<h6><b>Methods</b></h6>
|
|
152
201
|
</td>
|
|
153
|
-
|
|
154
|
-
<tr>
|
|
155
|
-
<td class="col-md-4">
|
|
202
|
+
<td class="col-md-9">
|
|
156
203
|
<ul class="index-list">
|
|
157
204
|
<li>
|
|
205
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
158
206
|
<span class="modifier">Public</span>
|
|
159
207
|
<a href="#addResources" >addResources</a>
|
|
160
208
|
</li>
|
|
161
209
|
<li>
|
|
210
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
162
211
|
<a href="#getSignal" >getSignal</a>
|
|
163
212
|
</li>
|
|
164
213
|
<li>
|
|
214
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
165
215
|
<a href="#getState" >getState</a>
|
|
166
216
|
</li>
|
|
167
217
|
<li>
|
|
218
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
168
219
|
<a href="#getState" class="deprecated-name">getState</a>
|
|
169
220
|
</li>
|
|
170
221
|
<li>
|
|
222
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
171
223
|
<a href="#getState" >getState</a>
|
|
172
224
|
</li>
|
|
173
225
|
<li>
|
|
226
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
174
227
|
<a href="#getState" >getState</a>
|
|
175
228
|
</li>
|
|
176
229
|
<li>
|
|
230
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
177
231
|
<a href="#init" >init</a>
|
|
178
232
|
</li>
|
|
179
233
|
<li>
|
|
234
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
180
235
|
<span class="modifier">Public</span>
|
|
181
236
|
<a href="#lazyLoad" >lazyLoad</a>
|
|
182
237
|
</li>
|
|
183
238
|
<li>
|
|
239
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
184
240
|
<a href="#lazyLoadInit" >lazyLoadInit</a>
|
|
185
241
|
</li>
|
|
186
242
|
<li>
|
|
243
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
187
244
|
<a href="#onReady" >onReady</a>
|
|
188
245
|
</li>
|
|
189
246
|
<li>
|
|
247
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
190
248
|
<a href="#updateState" >updateState</a>
|
|
191
249
|
</li>
|
|
192
250
|
<li>
|
|
251
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
193
252
|
<a href="#updateState" class="deprecated-name">updateState</a>
|
|
194
253
|
</li>
|
|
195
254
|
<li>
|
|
255
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
196
256
|
<a href="#updateState" >updateState</a>
|
|
197
257
|
</li>
|
|
198
258
|
</ul>
|
|
199
259
|
</td>
|
|
200
260
|
</tr>
|
|
261
|
+
</tbody>
|
|
262
|
+
</table>
|
|
201
263
|
|
|
202
264
|
|
|
203
265
|
|
|
204
266
|
|
|
205
267
|
|
|
206
|
-
</tbody>
|
|
207
|
-
</table>
|
|
208
268
|
</section>
|
|
209
269
|
|
|
210
270
|
<section data-compodoc="block-constructor">
|
|
@@ -393,7 +453,7 @@
|
|
|
393
453
|
</tr>
|
|
394
454
|
<tr>
|
|
395
455
|
<td class="col-md-4">
|
|
396
|
-
<code>getState(mapFn?: (state?: T) => void)</code>
|
|
456
|
+
<code>getState<K>(mapFn?: (state?: T) => void)</code>
|
|
397
457
|
</td>
|
|
398
458
|
</tr>
|
|
399
459
|
|
|
@@ -462,7 +522,7 @@
|
|
|
462
522
|
</tr>
|
|
463
523
|
<tr>
|
|
464
524
|
<td class="col-md-4">
|
|
465
|
-
<code>getState(key?: a)</code>
|
|
525
|
+
<code>getState<a>(key?: a)</code>
|
|
466
526
|
</td>
|
|
467
527
|
</tr>
|
|
468
528
|
|
|
@@ -531,7 +591,7 @@
|
|
|
531
591
|
</tr>
|
|
532
592
|
<tr>
|
|
533
593
|
<td class="col-md-4">
|
|
534
|
-
<code>getState(keyOrMapFn?: unknown | string)</code>
|
|
594
|
+
<code>getState<K>(keyOrMapFn?: unknown | string)</code>
|
|
535
595
|
</td>
|
|
536
596
|
</tr>
|
|
537
597
|
|
|
@@ -936,7 +996,7 @@ fetch module name from the state.</p>
|
|
|
936
996
|
</tr>
|
|
937
997
|
<tr>
|
|
938
998
|
<td class="col-md-4">
|
|
939
|
-
<code>updateState(slice: DeepPartial<T>, reducer: (state: T,action: DeepPartial<T>) => void)</code>
|
|
999
|
+
<code>updateState(slice: DeepPartial<T>, reducer: (state: T, action: DeepPartial<T>) => void)</code>
|
|
940
1000
|
</td>
|
|
941
1001
|
</tr>
|
|
942
1002
|
|
|
@@ -1009,7 +1069,7 @@ fetch module name from the state.</p>
|
|
|
1009
1069
|
</tr>
|
|
1010
1070
|
<tr>
|
|
1011
1071
|
<td class="col-md-4">
|
|
1012
|
-
<code>updateState(state: DeepPartial<K>, reducer?: (state?: T,action?: DeepPartial<K>) => void)</code>
|
|
1072
|
+
<code>updateState<K>(state: DeepPartial<K>, reducer?: (state?: T, action?: DeepPartial<K>) => void)</code>
|
|
1013
1073
|
</td>
|
|
1014
1074
|
</tr>
|
|
1015
1075
|
|
|
@@ -1079,6 +1139,7 @@ fetch module name from the state.</p>
|
|
|
1079
1139
|
</table>
|
|
1080
1140
|
</section>
|
|
1081
1141
|
|
|
1142
|
+
|
|
1082
1143
|
</div>
|
|
1083
1144
|
|
|
1084
1145
|
|
|
@@ -1129,6 +1190,24 @@ fetch module name from the state.</p>
|
|
|
1129
1190
|
|
|
1130
1191
|
<script>
|
|
1131
1192
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
1193
|
+
var updateDarkModeSwitchOffset = function () {
|
|
1194
|
+
var content = document.querySelector('.content');
|
|
1195
|
+
var scrollbarWidth = 0;
|
|
1196
|
+
|
|
1197
|
+
if (content) {
|
|
1198
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
document.documentElement.style.setProperty(
|
|
1202
|
+
'--content-scrollbar-width',
|
|
1203
|
+
scrollbarWidth + 'px'
|
|
1204
|
+
);
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1207
|
+
updateDarkModeSwitchOffset();
|
|
1208
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
1209
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
1210
|
+
|
|
1132
1211
|
checkToggle(darkModeState);
|
|
1133
1212
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
1134
1213
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -1144,7 +1223,6 @@ fetch module name from the state.</p>
|
|
|
1144
1223
|
<script src="../js/libs/lit-html.js"></script>
|
|
1145
1224
|
|
|
1146
1225
|
<script src="../js/menu-wc.js" defer></script>
|
|
1147
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
1148
1226
|
|
|
1149
1227
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
1150
1228
|
|