@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" >LocaleService</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/locale/locale.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,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/locale/locale.service.ts</code>
|
|
132
|
-
</p>
|
|
133
|
-
|
|
134
145
|
|
|
135
146
|
<p class="comment">
|
|
136
147
|
<h3>Description</h3>
|
|
@@ -144,6 +155,7 @@ for dynamic loading of locales upon request and updates the state of the EUI app
|
|
|
144
155
|
<li>Binding to a translation service for locale changes.</li>
|
|
145
156
|
<li>Updating the Angular LOCALE_ID token.</li>
|
|
146
157
|
</ul>
|
|
158
|
+
<p>EuiService<T | LocaleState></p>
|
|
147
159
|
|
|
148
160
|
</p>
|
|
149
161
|
|
|
@@ -151,74 +163,118 @@ for dynamic loading of locales upon request and updates the state of the EUI app
|
|
|
151
163
|
<h3>Extends</h3>
|
|
152
164
|
</p>
|
|
153
165
|
<p class="comment">
|
|
154
|
-
<code>EuiService
|
|
166
|
+
<code>EuiService<T | LocaleState></code>
|
|
155
167
|
</p>
|
|
156
168
|
|
|
169
|
+
<section data-compodoc="block-metadata">
|
|
170
|
+
<h3>Metadata</h3>
|
|
171
|
+
<table class="table table-sm table-hover metadata">
|
|
172
|
+
<tbody>
|
|
173
|
+
<tr>
|
|
174
|
+
<td class="col-md-3">providedIn</td>
|
|
175
|
+
<td class="col-md-9"><code>root</code></td>
|
|
176
|
+
</tr>
|
|
177
|
+
</tbody>
|
|
178
|
+
</table>
|
|
179
|
+
</section>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<section data-compodoc="block-relationships">
|
|
183
|
+
<h3>Relationships</h3>
|
|
184
|
+
|
|
185
|
+
<div class="row pt-3">
|
|
186
|
+
<div class="col-sm-6">
|
|
187
|
+
<h4>Used by</h4>
|
|
188
|
+
<p class="comment"><i>No results matching.</i></p>
|
|
189
|
+
</div>
|
|
157
190
|
|
|
191
|
+
<div class="col-sm-6">
|
|
192
|
+
<h4>Depends on</h4>
|
|
193
|
+
<ul class="list-unstyled relationships-list">
|
|
194
|
+
<li>
|
|
195
|
+
<code>EuiService<T | LocaleState></code>
|
|
196
|
+
</li>
|
|
197
|
+
</ul>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
</section>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
<div class="tab-pane fade " id="api">
|
|
158
204
|
<section data-compodoc="block-index">
|
|
159
205
|
<h3 id="index">Index</h3>
|
|
160
|
-
<table class="table table-sm table-bordered index-table">
|
|
161
|
-
<tbody>
|
|
162
206
|
|
|
207
|
+
<table class="table table-sm table-bordered index-table">
|
|
208
|
+
<tbody>
|
|
163
209
|
<tr>
|
|
164
|
-
<td class="col-md-
|
|
210
|
+
<td class="col-md-3">
|
|
165
211
|
<h6><b>Methods</b></h6>
|
|
166
212
|
</td>
|
|
167
|
-
|
|
168
|
-
<tr>
|
|
169
|
-
<td class="col-md-4">
|
|
213
|
+
<td class="col-md-9">
|
|
170
214
|
<ul class="index-list">
|
|
171
215
|
<li>
|
|
216
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
172
217
|
<a href="#getSignal" >getSignal</a>
|
|
173
218
|
</li>
|
|
174
219
|
<li>
|
|
220
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
175
221
|
<a href="#getState" >getState</a>
|
|
176
222
|
</li>
|
|
177
223
|
<li>
|
|
224
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
178
225
|
<a href="#getState" >getState</a>
|
|
179
226
|
</li>
|
|
180
227
|
<li>
|
|
228
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
181
229
|
<a href="#getState" >getState</a>
|
|
182
230
|
</li>
|
|
183
231
|
<li>
|
|
232
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
184
233
|
<a href="#getState" >getState</a>
|
|
185
234
|
</li>
|
|
186
235
|
<li>
|
|
236
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
187
237
|
<a href="#init" >init</a>
|
|
188
238
|
</li>
|
|
189
239
|
<li>
|
|
240
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
190
241
|
<a href="#updateState" >updateState</a>
|
|
191
242
|
</li>
|
|
192
243
|
<li>
|
|
244
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
193
245
|
<a href="#updateState" >updateState</a>
|
|
194
246
|
</li>
|
|
195
247
|
</ul>
|
|
196
248
|
</td>
|
|
197
249
|
</tr>
|
|
250
|
+
</tbody>
|
|
251
|
+
</table>
|
|
198
252
|
|
|
199
253
|
|
|
200
254
|
|
|
201
255
|
|
|
202
256
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
</
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
</
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
257
|
+
<table class="table table-sm table-bordered index-table">
|
|
258
|
+
<tbody>
|
|
259
|
+
<tr>
|
|
260
|
+
<td class="col-md-3">
|
|
261
|
+
<h6><b>Accessors</b></h6>
|
|
262
|
+
</td>
|
|
263
|
+
<td class="col-md-9">
|
|
264
|
+
<ul class="index-list">
|
|
265
|
+
<li>
|
|
266
|
+
<span class="reference-badge reference-badge--accessor" aria-hidden="true">A</span>
|
|
267
|
+
<a href="#previousLocale" >previousLocale</a>
|
|
268
|
+
</li>
|
|
269
|
+
<li>
|
|
270
|
+
<span class="reference-badge reference-badge--accessor" aria-hidden="true">A</span>
|
|
271
|
+
<a href="#currentLocale" >currentLocale</a>
|
|
272
|
+
</li>
|
|
273
|
+
</ul>
|
|
274
|
+
</td>
|
|
275
|
+
</tr>
|
|
276
|
+
</tbody>
|
|
277
|
+
</table>
|
|
222
278
|
</section>
|
|
223
279
|
|
|
224
280
|
<section data-compodoc="block-constructor">
|
|
@@ -317,7 +373,7 @@ for dynamic loading of locales upon request and updates the state of the EUI app
|
|
|
317
373
|
</tr>
|
|
318
374
|
<tr>
|
|
319
375
|
<td class="col-md-4">
|
|
320
|
-
<code>getState(mapFn?: (state?: T) => void)</code>
|
|
376
|
+
<code>getState<K>(mapFn?: (state?: T) => void)</code>
|
|
321
377
|
</td>
|
|
322
378
|
</tr>
|
|
323
379
|
|
|
@@ -335,7 +391,8 @@ for dynamic loading of locales upon request and updates the state of the EUI app
|
|
|
335
391
|
<tr>
|
|
336
392
|
<td class="col-md-4">
|
|
337
393
|
<div class="io-description"><p>Retrieves the state of the locale service. This method is overloaded to allow different ways of accessing the state.</p>
|
|
338
|
-
<b>Example :</b><div><pre class="line-numbers"><code class="language-none"> Takes the current state as an argument and returns the transformed state
|
|
394
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-none"> Takes the current state as an argument and returns the transformed state.
|
|
395
|
+
</code></pre></div></div>
|
|
339
396
|
|
|
340
397
|
<div class="io-description">
|
|
341
398
|
<b>Parameters :</b>
|
|
@@ -399,7 +456,7 @@ for dynamic loading of locales upon request and updates the state of the EUI app
|
|
|
399
456
|
</tr>
|
|
400
457
|
<tr>
|
|
401
458
|
<td class="col-md-4">
|
|
402
|
-
<code>getState(key?: a)</code>
|
|
459
|
+
<code>getState<a>(key?: a)</code>
|
|
403
460
|
</td>
|
|
404
461
|
</tr>
|
|
405
462
|
|
|
@@ -416,7 +473,8 @@ for dynamic loading of locales upon request and updates the state of the EUI app
|
|
|
416
473
|
|
|
417
474
|
<tr>
|
|
418
475
|
<td class="col-md-4">
|
|
419
|
-
<div class="io-description"><b>Example :</b><div><pre class="line-numbers"><code class="language-none"> The key should be a property name of the state object
|
|
476
|
+
<div class="io-description"><b>Example :</b><div><pre class="line-numbers"><code class="language-none"> The key should be a property name of the state object.
|
|
477
|
+
</code></pre></div></div>
|
|
420
478
|
|
|
421
479
|
<div class="io-description">
|
|
422
480
|
<b>Parameters :</b>
|
|
@@ -480,7 +538,7 @@ for dynamic loading of locales upon request and updates the state of the EUI app
|
|
|
480
538
|
</tr>
|
|
481
539
|
<tr>
|
|
482
540
|
<td class="col-md-4">
|
|
483
|
-
<code>getState(keyOrMapFn?: unknown | string)</code>
|
|
541
|
+
<code>getState<K>(keyOrMapFn?: unknown | string)</code>
|
|
484
542
|
</td>
|
|
485
543
|
</tr>
|
|
486
544
|
|
|
@@ -700,7 +758,7 @@ Binds language changes to the state and dynamically loads the appropriate locale
|
|
|
700
758
|
</tr>
|
|
701
759
|
<tr>
|
|
702
760
|
<td class="col-md-4">
|
|
703
|
-
<code>updateState(state: DeepPartial<K>)</code>
|
|
761
|
+
<code>updateState<K>(state: DeepPartial<K>)</code>
|
|
704
762
|
</td>
|
|
705
763
|
</tr>
|
|
706
764
|
|
|
@@ -762,12 +820,20 @@ it throws an error. Also updates the global LOCALE_ID token if configured to do
|
|
|
762
820
|
<div class="io-description">
|
|
763
821
|
|
|
764
822
|
</div>
|
|
823
|
+
<div class="io-description">
|
|
824
|
+
<b>Throws :</b>
|
|
825
|
+
<ul>
|
|
826
|
+
<li><p>Will throw an error if the locale for the given state id is not available.</p>
|
|
827
|
+
</li>
|
|
828
|
+
</ul>
|
|
829
|
+
</div>
|
|
765
830
|
</td>
|
|
766
831
|
</tr>
|
|
767
832
|
</tbody>
|
|
768
833
|
</table>
|
|
769
834
|
</section>
|
|
770
835
|
|
|
836
|
+
|
|
771
837
|
<section data-compodoc="block-accessors">
|
|
772
838
|
<h3 id="accessors">
|
|
773
839
|
Accessors
|
|
@@ -883,6 +949,24 @@ it throws an error. Also updates the global LOCALE_ID token if configured to do
|
|
|
883
949
|
|
|
884
950
|
<script>
|
|
885
951
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
952
|
+
var updateDarkModeSwitchOffset = function () {
|
|
953
|
+
var content = document.querySelector('.content');
|
|
954
|
+
var scrollbarWidth = 0;
|
|
955
|
+
|
|
956
|
+
if (content) {
|
|
957
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
document.documentElement.style.setProperty(
|
|
961
|
+
'--content-scrollbar-width',
|
|
962
|
+
scrollbarWidth + 'px'
|
|
963
|
+
);
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
updateDarkModeSwitchOffset();
|
|
967
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
968
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
969
|
+
|
|
886
970
|
checkToggle(darkModeState);
|
|
887
971
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
888
972
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -898,7 +982,6 @@ it throws an error. Also updates the global LOCALE_ID token if configured to do
|
|
|
898
982
|
<script src="../js/libs/lit-html.js"></script>
|
|
899
983
|
|
|
900
984
|
<script src="../js/menu-wc.js" defer></script>
|
|
901
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
902
985
|
|
|
903
986
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
904
987
|
|
|
@@ -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" >LocaleServiceMock</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/locale/locale.service.mock.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,65 +132,89 @@
|
|
|
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/locale/locale.service.mock.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><a href="../injectables/LocaleService.html" target="_self" >LocaleService
|
|
151
|
+
<code><a href="../injectables/LocaleService.html" target="_self" >LocaleService<T></a></code>
|
|
141
152
|
</p>
|
|
142
153
|
|
|
143
154
|
|
|
155
|
+
|
|
156
|
+
<section data-compodoc="block-relationships">
|
|
157
|
+
<h3>Relationships</h3>
|
|
158
|
+
|
|
159
|
+
<div class="row pt-3">
|
|
160
|
+
<div class="col-sm-6">
|
|
161
|
+
<h4>Used by</h4>
|
|
162
|
+
<p class="comment"><i>No results matching.</i></p>
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
<div class="col-sm-6">
|
|
166
|
+
<h4>Depends on</h4>
|
|
167
|
+
<ul class="list-unstyled relationships-list">
|
|
168
|
+
<li>
|
|
169
|
+
<code><a href="../injectables/LocaleService.html" target="_self" >LocaleService<T></a></code>
|
|
170
|
+
</li>
|
|
171
|
+
</ul>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
</section>
|
|
175
|
+
</div>
|
|
176
|
+
|
|
177
|
+
<div class="tab-pane fade " id="api">
|
|
144
178
|
<section data-compodoc="block-index">
|
|
145
179
|
<h3 id="index">Index</h3>
|
|
146
|
-
<table class="table table-sm table-bordered index-table">
|
|
147
|
-
<tbody>
|
|
148
180
|
|
|
181
|
+
<table class="table table-sm table-bordered index-table">
|
|
182
|
+
<tbody>
|
|
149
183
|
<tr>
|
|
150
|
-
<td class="col-md-
|
|
184
|
+
<td class="col-md-3">
|
|
151
185
|
<h6><b>Methods</b></h6>
|
|
152
186
|
</td>
|
|
153
|
-
|
|
154
|
-
<tr>
|
|
155
|
-
<td class="col-md-4">
|
|
187
|
+
<td class="col-md-9">
|
|
156
188
|
<ul class="index-list">
|
|
157
189
|
<li>
|
|
190
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
158
191
|
<span class="modifier"></span>
|
|
159
192
|
<a href="#getState" >getState</a>
|
|
160
193
|
</li>
|
|
161
194
|
<li>
|
|
195
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
162
196
|
<span class="modifier"></span>
|
|
163
197
|
<a href="#init" >init</a>
|
|
164
198
|
</li>
|
|
165
199
|
<li>
|
|
200
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
166
201
|
<span class="modifier"></span>
|
|
167
202
|
<a href="#updateState" >updateState</a>
|
|
168
203
|
</li>
|
|
169
204
|
<li>
|
|
205
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
170
206
|
<a href="#getSignal" >getSignal</a>
|
|
171
207
|
</li>
|
|
172
208
|
</ul>
|
|
173
209
|
</td>
|
|
174
210
|
</tr>
|
|
211
|
+
</tbody>
|
|
212
|
+
</table>
|
|
175
213
|
|
|
176
214
|
|
|
177
215
|
|
|
178
216
|
|
|
179
217
|
|
|
180
|
-
</tbody>
|
|
181
|
-
</table>
|
|
182
218
|
</section>
|
|
183
219
|
|
|
184
220
|
<section data-compodoc="block-constructor">
|
|
@@ -394,6 +430,7 @@
|
|
|
394
430
|
</table>
|
|
395
431
|
</section>
|
|
396
432
|
|
|
433
|
+
|
|
397
434
|
</div>
|
|
398
435
|
|
|
399
436
|
|
|
@@ -444,6 +481,24 @@
|
|
|
444
481
|
|
|
445
482
|
<script>
|
|
446
483
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
484
|
+
var updateDarkModeSwitchOffset = function () {
|
|
485
|
+
var content = document.querySelector('.content');
|
|
486
|
+
var scrollbarWidth = 0;
|
|
487
|
+
|
|
488
|
+
if (content) {
|
|
489
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
document.documentElement.style.setProperty(
|
|
493
|
+
'--content-scrollbar-width',
|
|
494
|
+
scrollbarWidth + 'px'
|
|
495
|
+
);
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
updateDarkModeSwitchOffset();
|
|
499
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
500
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
501
|
+
|
|
447
502
|
checkToggle(darkModeState);
|
|
448
503
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
449
504
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -459,7 +514,6 @@
|
|
|
459
514
|
<script src="../js/libs/lit-html.js"></script>
|
|
460
515
|
|
|
461
516
|
<script src="../js/menu-wc.js" defer></script>
|
|
462
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
463
517
|
|
|
464
518
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
465
519
|
|
|
@@ -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" >LogService</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/log/log.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,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/log/log.service.ts</code>
|
|
132
|
-
</p>
|
|
133
|
-
|
|
134
145
|
|
|
135
146
|
<p class="comment">
|
|
136
147
|
<h3>Description</h3>
|
|
@@ -148,32 +159,54 @@
|
|
|
148
159
|
</p>
|
|
149
160
|
|
|
150
161
|
|
|
162
|
+
|
|
163
|
+
<section data-compodoc="block-relationships">
|
|
164
|
+
<h3>Relationships</h3>
|
|
165
|
+
|
|
166
|
+
<div class="row pt-3">
|
|
167
|
+
<div class="col-sm-6">
|
|
168
|
+
<h4>Used by</h4>
|
|
169
|
+
<p class="comment"><i>No results matching.</i></p>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<div class="col-sm-6">
|
|
173
|
+
<h4>Depends on</h4>
|
|
174
|
+
<ul class="list-unstyled relationships-list">
|
|
175
|
+
<li>
|
|
176
|
+
<code>Logger</code>
|
|
177
|
+
</li>
|
|
178
|
+
</ul>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</section>
|
|
182
|
+
</div>
|
|
183
|
+
|
|
184
|
+
<div class="tab-pane fade " id="api">
|
|
151
185
|
<section data-compodoc="block-index">
|
|
152
186
|
<h3 id="index">Index</h3>
|
|
153
|
-
<table class="table table-sm table-bordered index-table">
|
|
154
|
-
<tbody>
|
|
155
187
|
|
|
188
|
+
<table class="table table-sm table-bordered index-table">
|
|
189
|
+
<tbody>
|
|
156
190
|
<tr>
|
|
157
|
-
<td class="col-md-
|
|
191
|
+
<td class="col-md-3">
|
|
158
192
|
<h6><b>Methods</b></h6>
|
|
159
193
|
</td>
|
|
160
|
-
|
|
161
|
-
<tr>
|
|
162
|
-
<td class="col-md-4">
|
|
194
|
+
<td class="col-md-9">
|
|
163
195
|
<ul class="index-list">
|
|
164
196
|
<li>
|
|
197
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
165
198
|
<a href="#getLogger" >getLogger</a>
|
|
166
199
|
</li>
|
|
167
200
|
</ul>
|
|
168
201
|
</td>
|
|
169
202
|
</tr>
|
|
203
|
+
</tbody>
|
|
204
|
+
</table>
|
|
170
205
|
|
|
171
206
|
|
|
172
207
|
|
|
173
208
|
|
|
174
209
|
|
|
175
|
-
</tbody>
|
|
176
|
-
</table>
|
|
177
210
|
</section>
|
|
178
211
|
|
|
179
212
|
<section data-compodoc="block-constructor">
|
|
@@ -288,6 +321,7 @@
|
|
|
288
321
|
</table>
|
|
289
322
|
</section>
|
|
290
323
|
|
|
324
|
+
|
|
291
325
|
</div>
|
|
292
326
|
|
|
293
327
|
|
|
@@ -338,6 +372,24 @@
|
|
|
338
372
|
|
|
339
373
|
<script>
|
|
340
374
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
375
|
+
var updateDarkModeSwitchOffset = function () {
|
|
376
|
+
var content = document.querySelector('.content');
|
|
377
|
+
var scrollbarWidth = 0;
|
|
378
|
+
|
|
379
|
+
if (content) {
|
|
380
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
document.documentElement.style.setProperty(
|
|
384
|
+
'--content-scrollbar-width',
|
|
385
|
+
scrollbarWidth + 'px'
|
|
386
|
+
);
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
updateDarkModeSwitchOffset();
|
|
390
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
391
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
392
|
+
|
|
341
393
|
checkToggle(darkModeState);
|
|
342
394
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
343
395
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -353,7 +405,6 @@
|
|
|
353
405
|
<script src="../js/libs/lit-html.js"></script>
|
|
354
406
|
|
|
355
407
|
<script src="../js/menu-wc.js" defer></script>
|
|
356
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
357
408
|
|
|
358
409
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
359
410
|
|