@eui/core 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.
- package/CHANGELOG.md +31 -0
- package/docs/architecture.html +223 -0
- package/docs/changelog.html +87 -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 +7181 -1557
- 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" >EuiPermissionService</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/permission/permission.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/permission/permission.service.ts</code>
|
|
132
|
-
</p>
|
|
133
|
-
|
|
134
145
|
|
|
135
146
|
<p class="comment">
|
|
136
147
|
<h3>Description</h3>
|
|
@@ -140,7 +151,8 @@
|
|
|
140
151
|
This class extends <code>EuiService</code> and is responsible for handling user rights and permissions.
|
|
141
152
|
It provides methods to initialize the service with user rights, check specific rights and permissions,
|
|
142
153
|
and subscribe to changes in the user rights state.</p>
|
|
143
|
-
<p>
|
|
154
|
+
<p>{EuiService<EuiUserRight[]>}
|
|
155
|
+
See EuiService</p>
|
|
144
156
|
<b>Example :</b><div><pre class="line-numbers"><code class="language-html">// Example of using the EuiPermissionService in an application
|
|
145
157
|
const permissionService = new EuiPermissionService();
|
|
146
158
|
permissionService.init([{ id: 'ADMIN', permissions: ['CREATE', 'READ', 'UPDATE', 'DELETE'] }]);
|
|
@@ -153,51 +165,89 @@ if (permissionService.checkRight('ADMIN')) {
|
|
|
153
165
|
<h3>Extends</h3>
|
|
154
166
|
</p>
|
|
155
167
|
<p class="comment">
|
|
156
|
-
<code>EuiService
|
|
168
|
+
<code>EuiService<EuiUserRight[]></code>
|
|
157
169
|
</p>
|
|
158
170
|
|
|
171
|
+
<section data-compodoc="block-metadata">
|
|
172
|
+
<h3>Metadata</h3>
|
|
173
|
+
<table class="table table-sm table-hover metadata">
|
|
174
|
+
<tbody>
|
|
175
|
+
<tr>
|
|
176
|
+
<td class="col-md-3">providedIn</td>
|
|
177
|
+
<td class="col-md-9"><code>root</code></td>
|
|
178
|
+
</tr>
|
|
179
|
+
</tbody>
|
|
180
|
+
</table>
|
|
181
|
+
</section>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
<section data-compodoc="block-relationships">
|
|
185
|
+
<h3>Relationships</h3>
|
|
186
|
+
|
|
187
|
+
<div class="row pt-3">
|
|
188
|
+
<div class="col-sm-6">
|
|
189
|
+
<h4>Used by</h4>
|
|
190
|
+
<p class="comment"><i>No results matching.</i></p>
|
|
191
|
+
</div>
|
|
192
|
+
|
|
193
|
+
<div class="col-sm-6">
|
|
194
|
+
<h4>Depends on</h4>
|
|
195
|
+
<ul class="list-unstyled relationships-list">
|
|
196
|
+
<li>
|
|
197
|
+
<code>EuiService<EuiUserRight[]></code>
|
|
198
|
+
</li>
|
|
199
|
+
</ul>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
</section>
|
|
203
|
+
</div>
|
|
159
204
|
|
|
205
|
+
<div class="tab-pane fade " id="api">
|
|
160
206
|
<section data-compodoc="block-index">
|
|
161
207
|
<h3 id="index">Index</h3>
|
|
162
|
-
<table class="table table-sm table-bordered index-table">
|
|
163
|
-
<tbody>
|
|
164
208
|
|
|
209
|
+
<table class="table table-sm table-bordered index-table">
|
|
210
|
+
<tbody>
|
|
165
211
|
<tr>
|
|
166
|
-
<td class="col-md-
|
|
212
|
+
<td class="col-md-3">
|
|
167
213
|
<h6><b>Methods</b></h6>
|
|
168
214
|
</td>
|
|
169
|
-
|
|
170
|
-
<tr>
|
|
171
|
-
<td class="col-md-4">
|
|
215
|
+
<td class="col-md-9">
|
|
172
216
|
<ul class="index-list">
|
|
173
217
|
<li>
|
|
218
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
174
219
|
<a href="#checkAttributePermission" >checkAttributePermission</a>
|
|
175
220
|
</li>
|
|
176
221
|
<li>
|
|
222
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
177
223
|
<a href="#checkPermission" >checkPermission</a>
|
|
178
224
|
</li>
|
|
179
225
|
<li>
|
|
226
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
180
227
|
<a href="#checkRight" >checkRight</a>
|
|
181
228
|
</li>
|
|
182
229
|
<li>
|
|
230
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
183
231
|
<a href="#getState" >getState</a>
|
|
184
232
|
</li>
|
|
185
233
|
<li>
|
|
234
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
186
235
|
<a href="#init" >init</a>
|
|
187
236
|
</li>
|
|
188
237
|
<li>
|
|
238
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
189
239
|
<a href="#updateState" >updateState</a>
|
|
190
240
|
</li>
|
|
191
241
|
</ul>
|
|
192
242
|
</td>
|
|
193
243
|
</tr>
|
|
244
|
+
</tbody>
|
|
245
|
+
</table>
|
|
194
246
|
|
|
195
247
|
|
|
196
248
|
|
|
197
249
|
|
|
198
250
|
|
|
199
|
-
</tbody>
|
|
200
|
-
</table>
|
|
201
251
|
</section>
|
|
202
252
|
|
|
203
253
|
<section data-compodoc="block-constructor">
|
|
@@ -476,7 +526,7 @@ const isAdmin = permissionService.checkRight('ADMIN');</code></pre></div
|
|
|
476
526
|
</tr>
|
|
477
527
|
<tr>
|
|
478
528
|
<td class="col-md-4">
|
|
479
|
-
<code>getState()</code>
|
|
529
|
+
<code>getState<K>()</code>
|
|
480
530
|
</td>
|
|
481
531
|
</tr>
|
|
482
532
|
|
|
@@ -609,6 +659,13 @@ whether the initialization was successful, and an <code>error</code> property
|
|
|
609
659
|
with a message in case of failure.</p>
|
|
610
660
|
|
|
611
661
|
</div>
|
|
662
|
+
<div class="io-description">
|
|
663
|
+
<b>Throws :</b>
|
|
664
|
+
<ul>
|
|
665
|
+
<li><p>Throws an error if the <code>rights</code> parameter is not an array of <code>EuiUserRight</code> objects.</p>
|
|
666
|
+
</li>
|
|
667
|
+
</ul>
|
|
668
|
+
</div>
|
|
612
669
|
</td>
|
|
613
670
|
</tr>
|
|
614
671
|
</tbody>
|
|
@@ -695,6 +752,7 @@ and optionally a <code>permissions</code> property which is an array of strings.
|
|
|
695
752
|
</table>
|
|
696
753
|
</section>
|
|
697
754
|
|
|
755
|
+
|
|
698
756
|
</div>
|
|
699
757
|
|
|
700
758
|
|
|
@@ -745,6 +803,24 @@ and optionally a <code>permissions</code> property which is an array of strings.
|
|
|
745
803
|
|
|
746
804
|
<script>
|
|
747
805
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
806
|
+
var updateDarkModeSwitchOffset = function () {
|
|
807
|
+
var content = document.querySelector('.content');
|
|
808
|
+
var scrollbarWidth = 0;
|
|
809
|
+
|
|
810
|
+
if (content) {
|
|
811
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
document.documentElement.style.setProperty(
|
|
815
|
+
'--content-scrollbar-width',
|
|
816
|
+
scrollbarWidth + 'px'
|
|
817
|
+
);
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
updateDarkModeSwitchOffset();
|
|
821
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
822
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
823
|
+
|
|
748
824
|
checkToggle(darkModeState);
|
|
749
825
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
750
826
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -760,7 +836,6 @@ and optionally a <code>permissions</code> property which is an array of strings.
|
|
|
760
836
|
<script src="../js/libs/lit-html.js"></script>
|
|
761
837
|
|
|
762
838
|
<script src="../js/menu-wc.js" defer></script>
|
|
763
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
764
839
|
|
|
765
840
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
766
841
|
|
|
@@ -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" >EuiThemeService</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/eui-theme.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,88 +132,113 @@
|
|
|
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/eui-theme.service.ts</code>
|
|
132
|
-
</p>
|
|
133
145
|
|
|
134
146
|
|
|
135
147
|
|
|
148
|
+
<section data-compodoc="block-metadata">
|
|
149
|
+
<h3>Metadata</h3>
|
|
150
|
+
<table class="table table-sm table-hover metadata">
|
|
151
|
+
<tbody>
|
|
152
|
+
<tr>
|
|
153
|
+
<td class="col-md-3">providedIn</td>
|
|
154
|
+
<td class="col-md-9"><code>root</code></td>
|
|
155
|
+
</tr>
|
|
156
|
+
</tbody>
|
|
157
|
+
</table>
|
|
158
|
+
</section>
|
|
159
|
+
|
|
136
160
|
|
|
161
|
+
</div>
|
|
137
162
|
|
|
163
|
+
<div class="tab-pane fade " id="api">
|
|
138
164
|
<section data-compodoc="block-index">
|
|
139
165
|
<h3 id="index">Index</h3>
|
|
140
|
-
<table class="table table-sm table-bordered index-table">
|
|
141
|
-
<tbody>
|
|
142
166
|
|
|
167
|
+
<table class="table table-sm table-bordered index-table">
|
|
168
|
+
<tbody>
|
|
143
169
|
<tr>
|
|
144
|
-
<td class="col-md-
|
|
170
|
+
<td class="col-md-3">
|
|
145
171
|
<h6><b>Methods</b></h6>
|
|
146
172
|
</td>
|
|
147
|
-
|
|
148
|
-
<tr>
|
|
149
|
-
<td class="col-md-4">
|
|
173
|
+
<td class="col-md-9">
|
|
150
174
|
<ul class="index-list">
|
|
151
175
|
<li>
|
|
176
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
152
177
|
<a href="#isCompact" >isCompact</a>
|
|
153
178
|
</li>
|
|
154
179
|
<li>
|
|
180
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
155
181
|
<a href="#isDark" >isDark</a>
|
|
156
182
|
</li>
|
|
157
183
|
<li>
|
|
184
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
158
185
|
<a href="#isDefault" >isDefault</a>
|
|
159
186
|
</li>
|
|
160
187
|
<li>
|
|
188
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
161
189
|
<a href="#isEclEc" >isEclEc</a>
|
|
162
190
|
</li>
|
|
163
191
|
<li>
|
|
192
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
164
193
|
<a href="#isEclEcRtl" >isEclEcRtl</a>
|
|
165
194
|
</li>
|
|
166
195
|
<li>
|
|
196
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
167
197
|
<a href="#isEclEu" >isEclEu</a>
|
|
168
198
|
</li>
|
|
169
199
|
<li>
|
|
200
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
170
201
|
<a href="#isEclEuRtl" >isEclEuRtl</a>
|
|
171
202
|
</li>
|
|
172
203
|
<li>
|
|
204
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
173
205
|
<a href="#isHighContrast" >isHighContrast</a>
|
|
174
206
|
</li>
|
|
175
207
|
<li>
|
|
208
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
176
209
|
<a href="#setActiveTheme" >setActiveTheme</a>
|
|
177
210
|
</li>
|
|
178
211
|
</ul>
|
|
179
212
|
</td>
|
|
180
213
|
</tr>
|
|
214
|
+
</tbody>
|
|
215
|
+
</table>
|
|
181
216
|
|
|
182
217
|
|
|
183
218
|
|
|
184
219
|
|
|
185
220
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
</
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
221
|
+
<table class="table table-sm table-bordered index-table">
|
|
222
|
+
<tbody>
|
|
223
|
+
<tr>
|
|
224
|
+
<td class="col-md-3">
|
|
225
|
+
<h6><b>Accessors</b></h6>
|
|
226
|
+
</td>
|
|
227
|
+
<td class="col-md-9">
|
|
228
|
+
<ul class="index-list">
|
|
229
|
+
<li>
|
|
230
|
+
<span class="reference-badge reference-badge--accessor" aria-hidden="true">A</span>
|
|
231
|
+
<a href="#state$" >state$</a>
|
|
232
|
+
</li>
|
|
233
|
+
<li>
|
|
234
|
+
<span class="reference-badge reference-badge--accessor" aria-hidden="true">A</span>
|
|
235
|
+
<a href="#state" >state</a>
|
|
236
|
+
</li>
|
|
237
|
+
</ul>
|
|
238
|
+
</td>
|
|
239
|
+
</tr>
|
|
240
|
+
</tbody>
|
|
241
|
+
</table>
|
|
205
242
|
</section>
|
|
206
243
|
|
|
207
244
|
<section data-compodoc="block-constructor">
|
|
@@ -484,7 +521,7 @@
|
|
|
484
521
|
</tr>
|
|
485
522
|
<tr>
|
|
486
523
|
<td class="col-md-4">
|
|
487
|
-
<code>setActiveTheme(theme: <a href="../
|
|
524
|
+
<code>setActiveTheme(theme: <a href="../miscellaneous/enumerations.html#EuiTheme" target="_self">EuiTheme</a>, isActive: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank">boolean</a>)</code>
|
|
488
525
|
</td>
|
|
489
526
|
</tr>
|
|
490
527
|
|
|
@@ -546,6 +583,7 @@
|
|
|
546
583
|
</table>
|
|
547
584
|
</section>
|
|
548
585
|
|
|
586
|
+
|
|
549
587
|
<section data-compodoc="block-accessors">
|
|
550
588
|
<h3 id="accessors">
|
|
551
589
|
Accessors
|
|
@@ -635,6 +673,24 @@
|
|
|
635
673
|
|
|
636
674
|
<script>
|
|
637
675
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
676
|
+
var updateDarkModeSwitchOffset = function () {
|
|
677
|
+
var content = document.querySelector('.content');
|
|
678
|
+
var scrollbarWidth = 0;
|
|
679
|
+
|
|
680
|
+
if (content) {
|
|
681
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
document.documentElement.style.setProperty(
|
|
685
|
+
'--content-scrollbar-width',
|
|
686
|
+
scrollbarWidth + 'px'
|
|
687
|
+
);
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
updateDarkModeSwitchOffset();
|
|
691
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
692
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
693
|
+
|
|
638
694
|
checkToggle(darkModeState);
|
|
639
695
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
640
696
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -650,7 +706,6 @@
|
|
|
650
706
|
<script src="../js/libs/lit-html.js"></script>
|
|
651
707
|
|
|
652
708
|
<script src="../js/menu-wc.js" defer></script>
|
|
653
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
654
709
|
|
|
655
710
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
656
711
|
|
|
@@ -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" >EuiTimezoneService</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/eui-timezone.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,56 +132,61 @@
|
|
|
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/eui-timezone.service.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
|
<a href="#getCountries" >getCountries</a>
|
|
153
167
|
</li>
|
|
154
168
|
<li>
|
|
169
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
155
170
|
<a href="#getTimezone" >getTimezone</a>
|
|
156
171
|
</li>
|
|
157
172
|
<li>
|
|
173
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
158
174
|
<a href="#getTimezones" >getTimezones</a>
|
|
159
175
|
</li>
|
|
160
176
|
<li>
|
|
177
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
161
178
|
<a href="#iso2country" >iso2country</a>
|
|
162
179
|
</li>
|
|
163
180
|
</ul>
|
|
164
181
|
</td>
|
|
165
182
|
</tr>
|
|
183
|
+
</tbody>
|
|
184
|
+
</table>
|
|
166
185
|
|
|
167
186
|
|
|
168
187
|
|
|
169
188
|
|
|
170
189
|
|
|
171
|
-
</tbody>
|
|
172
|
-
</table>
|
|
173
190
|
</section>
|
|
174
191
|
|
|
175
192
|
|
|
@@ -368,6 +385,7 @@
|
|
|
368
385
|
</table>
|
|
369
386
|
</section>
|
|
370
387
|
|
|
388
|
+
|
|
371
389
|
</div>
|
|
372
390
|
|
|
373
391
|
|
|
@@ -418,6 +436,24 @@
|
|
|
418
436
|
|
|
419
437
|
<script>
|
|
420
438
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
439
|
+
var updateDarkModeSwitchOffset = function () {
|
|
440
|
+
var content = document.querySelector('.content');
|
|
441
|
+
var scrollbarWidth = 0;
|
|
442
|
+
|
|
443
|
+
if (content) {
|
|
444
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
document.documentElement.style.setProperty(
|
|
448
|
+
'--content-scrollbar-width',
|
|
449
|
+
scrollbarWidth + 'px'
|
|
450
|
+
);
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
updateDarkModeSwitchOffset();
|
|
454
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
455
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
456
|
+
|
|
421
457
|
checkToggle(darkModeState);
|
|
422
458
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
423
459
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -433,7 +469,6 @@
|
|
|
433
469
|
<script src="../js/libs/lit-html.js"></script>
|
|
434
470
|
|
|
435
471
|
<script src="../js/menu-wc.js" defer></script>
|
|
436
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
437
472
|
|
|
438
473
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
439
474
|
|