@eui/base 19.0.0-next.9 → 19.0.0-rc.10
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/docs/classes/ConsoleAppender.html +7 -6
- package/docs/classes/EuiEuLanguages.html +225 -6
- package/docs/classes/EuiLazyService.html +11 -10
- package/docs/classes/EuiPagination.html +7 -6
- package/docs/classes/EuiService.html +9 -8
- package/docs/classes/LogAppender.html +7 -6
- package/docs/classes/Logger.html +7 -6
- package/docs/classes/LoggerMock.html +7 -6
- package/docs/classes/UrlAppender.html +7 -6
- package/docs/classes/UxBadgeLegacy.html +7 -6
- package/docs/classes/UxClearErrorFeedbackEvent.html +7 -6
- package/docs/classes/UxErrorGroupOnClickEvent.html +7 -6
- package/docs/classes/UxErrorOutput.html +7 -6
- package/docs/classes/UxLinkLegacy.html +7 -6
- package/docs/classes/UxPublishErrorFeedbackEvent.html +7 -6
- package/docs/classes/UxValidationErrorClass.html +7 -6
- package/docs/dependencies.html +47 -66
- package/docs/index.html +7 -6
- package/docs/interfaces/ApiQueue.html +7 -6
- package/docs/interfaces/ApiQueueItem.html +7 -6
- package/docs/interfaces/AppState.html +7 -6
- package/docs/interfaces/ConnectionStatus.html +7 -6
- package/docs/interfaces/ConsoleAppenderConfig.html +7 -6
- package/docs/interfaces/ConsoleAppenderTypeConfig.html +7 -6
- package/docs/interfaces/CoreState.html +7 -6
- package/docs/interfaces/EnvDynamicConfig.html +7 -6
- package/docs/interfaces/EuiAppHandlersConfig.html +7 -6
- package/docs/interfaces/EuiAppJsonConfig.html +7 -6
- package/docs/interfaces/EuiAuthConfig.html +7 -6
- package/docs/interfaces/EuiConfig.html +7 -6
- package/docs/interfaces/EuiEnvConfig.html +7 -6
- package/docs/interfaces/EuiGlobalConfig.html +7 -6
- package/docs/interfaces/EuiGrowlMessage.html +7 -6
- package/docs/interfaces/EuiLanguage.html +58 -6
- package/docs/interfaces/EuiMenuItem.html +7 -6
- package/docs/interfaces/EuiPaginationConfig.html +7 -6
- package/docs/interfaces/EuiServiceModel.html +7 -6
- package/docs/interfaces/EuiServiceStatus.html +7 -6
- package/docs/interfaces/EuiStoreServiceModel.html +9 -9
- package/docs/interfaces/EuiUserRight.html +7 -6
- package/docs/interfaces/GlobalConfig.html +7 -6
- package/docs/interfaces/HttpErrorHandlerConfig.html +7 -6
- package/docs/interfaces/HttpErrorRouteConfig.html +7 -6
- package/docs/interfaces/I18nConfig.html +7 -6
- package/docs/interfaces/I18nLoaderConfig.html +7 -6
- package/docs/interfaces/I18nResource.html +7 -6
- package/docs/interfaces/I18nServiceConfig.html +7 -6
- package/docs/interfaces/I18nState.html +7 -6
- package/docs/interfaces/LoadedConfigModules.html +7 -6
- package/docs/interfaces/LocaleServiceConfig.html +7 -240
- package/docs/interfaces/LocaleState.html +7 -64
- package/docs/interfaces/LogAppenderConfig.html +7 -6
- package/docs/interfaces/LogAppenderTypeConfig.html +7 -6
- package/docs/interfaces/LogConfig.html +7 -6
- package/docs/interfaces/LogEvent.html +7 -6
- package/docs/interfaces/LogPosition.html +7 -6
- package/docs/interfaces/ModuleConfig.html +7 -6
- package/docs/interfaces/ModulesConfig.html +7 -6
- package/docs/interfaces/NotificationsState.html +7 -6
- package/docs/interfaces/UrlAppenderConfig.html +7 -6
- package/docs/interfaces/UrlAppenderTypeConfig.html +7 -6
- package/docs/interfaces/UrlLogEvent.html +7 -6
- package/docs/interfaces/UserConfig.html +7 -6
- package/docs/interfaces/UserDetails.html +7 -6
- package/docs/interfaces/UserPreferences.html +7 -6
- package/docs/interfaces/UserState.html +7 -6
- package/docs/interfaces/UxErrorFeedback.html +7 -6
- package/docs/interfaces/UxErrorFollowMap.html +7 -6
- package/docs/interfaces/UxErrorInfo.html +7 -6
- package/docs/interfaces/UxErrorMessage.html +7 -6
- package/docs/interfaces/UxFormValidationError.html +7 -6
- package/docs/interfaces/UxHttpErrorInfo.html +7 -6
- package/docs/interfaces/UxHttpErrorResponse.html +7 -6
- package/docs/interfaces/UxModalLegacy.html +7 -6
- package/docs/interfaces/UxValidationErrorAttribute.html +7 -6
- package/docs/interfaces/UxValidationErrorFeedback.html +7 -6
- package/docs/interfaces/UxValidationErrorI18nMessage.html +7 -6
- package/docs/interfaces/VersionsConfig.html +7 -6
- package/docs/interfaces/XHRConfig.html +7 -6
- package/docs/js/libs/bootstrap-native.js +1 -1
- package/docs/js/menu.js +10 -11
- package/docs/js/search/search-lunr.js +6 -8
- package/docs/js/search/search.js +107 -102
- package/docs/js/search/search_index.js +2 -2
- package/docs/license.html +7 -6
- package/docs/miscellaneous/enumerations.html +7 -6
- package/docs/miscellaneous/functions.html +7 -6
- package/docs/miscellaneous/typealiases.html +28 -6
- package/docs/miscellaneous/variables.html +67 -12
- package/docs/modules.html +7 -6
- package/docs/properties.html +7 -6
- package/docs/styles/compodoc.css +11 -8
- package/fesm2022/eui-base.mjs +278 -48
- package/fesm2022/eui-base.mjs.map +1 -1
- package/lib/eui-models/eui-config/locale.config.d.ts +0 -24
- package/lib/eui-models/eui-config/locale.config.d.ts.map +1 -1
- package/lib/eui-models/eui-language/eui-eu-languages.model.d.ts +14 -0
- package/lib/eui-models/eui-language/eui-eu-languages.model.d.ts.map +1 -1
- package/lib/eui-models/eui-language/eui-language.model.d.ts +2 -0
- package/lib/eui-models/eui-language/eui-language.model.d.ts.map +1 -1
- package/lib/eui-models/eui-service.model.d.ts +16 -2
- package/lib/eui-models/eui-service.model.d.ts.map +1 -1
- package/lib/eui-models/eui-store/eui-store-service.model.d.ts +2 -2
- package/lib/eui-models/eui-store/eui-store-service.model.d.ts.map +1 -1
- package/lib/eui-models/eui-store/selectors/app.selectors.d.ts +8 -0
- package/lib/eui-models/eui-store/selectors/app.selectors.d.ts.map +1 -1
- package/lib/eui-models/eui-store/state/locale.state.d.ts +0 -6
- package/lib/eui-models/eui-store/state/locale.state.d.ts.map +1 -1
- package/package.json +1 -1
package/docs/js/search/search.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
(function(compodoc) {
|
|
2
|
-
var usePushState =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
$body = $('body'),
|
|
1
|
+
(function (compodoc) {
|
|
2
|
+
var usePushState = typeof history.pushState !== 'undefined',
|
|
3
|
+
// DOM Elements
|
|
4
|
+
$body = document.querySelector('body'),
|
|
6
5
|
$searchResults,
|
|
7
6
|
$searchInput,
|
|
8
7
|
$searchList,
|
|
@@ -16,10 +15,11 @@
|
|
|
16
15
|
function throttle(fn, wait) {
|
|
17
16
|
var timeout;
|
|
18
17
|
|
|
19
|
-
return function() {
|
|
20
|
-
var ctx = this,
|
|
18
|
+
return function () {
|
|
19
|
+
var ctx = this,
|
|
20
|
+
args = arguments;
|
|
21
21
|
if (!timeout) {
|
|
22
|
-
timeout = setTimeout(function() {
|
|
22
|
+
timeout = setTimeout(function () {
|
|
23
23
|
timeout = undefined;
|
|
24
24
|
fn.apply(ctx, args);
|
|
25
25
|
}, wait);
|
|
@@ -30,24 +30,28 @@
|
|
|
30
30
|
function displayResults(res) {
|
|
31
31
|
var noResults = res.count == 0;
|
|
32
32
|
var groups = {};
|
|
33
|
-
|
|
33
|
+
if (noResults) {
|
|
34
|
+
$searchResults.classList.add('no-results');
|
|
35
|
+
} else {
|
|
36
|
+
$searchResults.classList.remove('no-results');
|
|
37
|
+
}
|
|
34
38
|
|
|
35
39
|
// Clear old results
|
|
36
|
-
$searchList.
|
|
40
|
+
$searchList.innerText = '';
|
|
37
41
|
|
|
38
42
|
// Display title for research
|
|
39
|
-
$searchResultsCount.
|
|
40
|
-
$searchQuery.
|
|
43
|
+
$searchResultsCount.innerText = res.count;
|
|
44
|
+
$searchQuery.innerText = res.query;
|
|
41
45
|
|
|
42
46
|
// Group result by context
|
|
43
|
-
res.results.forEach(function(res) {
|
|
47
|
+
res.results.forEach(function (res) {
|
|
44
48
|
var context = res.title.split(' - ')[0];
|
|
45
49
|
if (typeof groups[context] === 'undefined') {
|
|
46
50
|
groups[context] = {
|
|
47
51
|
results: [res]
|
|
48
|
-
}
|
|
52
|
+
};
|
|
49
53
|
} else {
|
|
50
|
-
groups[context].results.push(res)
|
|
54
|
+
groups[context].results.push(res);
|
|
51
55
|
}
|
|
52
56
|
});
|
|
53
57
|
|
|
@@ -55,34 +59,48 @@
|
|
|
55
59
|
|
|
56
60
|
for (var i = 0; i < sortedGroups.length; i++) {
|
|
57
61
|
var property = sortedGroups[i];
|
|
58
|
-
|
|
59
|
-
var $li =
|
|
60
|
-
|
|
61
|
-
});
|
|
62
|
+
|
|
63
|
+
var $li = document.createElement('li');
|
|
64
|
+
$li.classList.add('search-results-group');
|
|
62
65
|
var finalPropertyLabel = '';
|
|
63
66
|
var propertyLabels = property.split('-');
|
|
64
|
-
|
|
65
|
-
if (
|
|
66
|
-
|
|
67
|
+
|
|
68
|
+
if (
|
|
69
|
+
propertyLabels.length === 2 &&
|
|
70
|
+
propertyLabels[0] !== 'miscellaneous' &&
|
|
71
|
+
propertyLabels[0] !== 'additional'
|
|
72
|
+
) {
|
|
73
|
+
finalPropertyLabel =
|
|
74
|
+
propertyLabels[0].charAt(0).toUpperCase() +
|
|
75
|
+
propertyLabels[0].substring(1) +
|
|
76
|
+
' - ' +
|
|
77
|
+
propertyLabels[1].charAt(0).toUpperCase() +
|
|
78
|
+
propertyLabels[1].substring(1) +
|
|
79
|
+
' (' +
|
|
80
|
+
groups[property].results.length +
|
|
81
|
+
')';
|
|
67
82
|
} else if (propertyLabels[0] === 'additional') {
|
|
68
|
-
finalPropertyLabel =
|
|
83
|
+
finalPropertyLabel =
|
|
84
|
+
'Additional pages' + ' (' + groups[property].results.length + ')';
|
|
69
85
|
} else {
|
|
70
|
-
finalPropertyLabel =
|
|
86
|
+
finalPropertyLabel =
|
|
87
|
+
propertyLabels[0].charAt(0).toUpperCase() +
|
|
88
|
+
propertyLabels[0].substring(1) +
|
|
89
|
+
' (' +
|
|
90
|
+
groups[property].results.length +
|
|
91
|
+
')';
|
|
71
92
|
}
|
|
72
|
-
var $groupTitle =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
$groupTitle.appendTo($li);
|
|
93
|
+
var $groupTitle = document.createElement('h3');
|
|
94
|
+
$groupTitle.innerText = finalPropertyLabel;
|
|
95
|
+
$li.appendChild($groupTitle);
|
|
76
96
|
|
|
77
|
-
var $ulResults =
|
|
78
|
-
|
|
79
|
-
})
|
|
97
|
+
var $ulResults = document.createElement('ul');
|
|
98
|
+
$ulResults.classList.add('search-results-list');
|
|
80
99
|
|
|
81
|
-
groups[property].results.forEach(function(res) {
|
|
100
|
+
groups[property].results.forEach(function (res) {
|
|
82
101
|
var link = '';
|
|
83
|
-
var $liResult =
|
|
84
|
-
|
|
85
|
-
});
|
|
102
|
+
var $liResult = document.createElement('li');
|
|
103
|
+
$liResult.classList.add('search-results-item');
|
|
86
104
|
switch (COMPODOC_CURRENT_PAGE_DEPTH) {
|
|
87
105
|
case 0:
|
|
88
106
|
link = './';
|
|
@@ -94,72 +112,72 @@
|
|
|
94
112
|
case 5:
|
|
95
113
|
link = '../'.repeat(COMPODOC_CURRENT_PAGE_DEPTH);
|
|
96
114
|
break;
|
|
97
|
-
}
|
|
98
|
-
var finalResLabel =
|
|
99
|
-
|
|
100
|
-
'
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
$link.
|
|
104
|
-
$liResult.
|
|
115
|
+
}
|
|
116
|
+
var finalResLabel =
|
|
117
|
+
res.title.split(' - ')[1].charAt(0).toUpperCase() +
|
|
118
|
+
res.title.split(' - ')[1].substring(1);
|
|
119
|
+
var $link = document.createElement('a');
|
|
120
|
+
$link.innerText = finalResLabel;
|
|
121
|
+
$link.href = link + res.url;
|
|
122
|
+
$liResult.appendChild($link);
|
|
123
|
+
$ulResults.appendChild($liResult);
|
|
105
124
|
});
|
|
106
|
-
$
|
|
125
|
+
$li.appendChild($ulResults);
|
|
107
126
|
|
|
108
|
-
$
|
|
127
|
+
$searchList.appendChild($li);
|
|
109
128
|
}
|
|
110
129
|
}
|
|
111
130
|
|
|
112
131
|
function launchSearch(q) {
|
|
113
|
-
$body.
|
|
132
|
+
$body.classList.add('with-search');
|
|
114
133
|
|
|
115
|
-
if ($xsMenu.
|
|
116
|
-
$mainContainer.
|
|
117
|
-
$mainContainer.
|
|
134
|
+
if ($xsMenu.style.display === 'block') {
|
|
135
|
+
$mainContainer.style.height = 'calc(100% - 100px)';
|
|
136
|
+
$mainContainer.style.marginTop = '100px';
|
|
118
137
|
}
|
|
119
138
|
|
|
120
|
-
throttle(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
139
|
+
throttle(
|
|
140
|
+
compodoc.search.query(q, 0, MAX_SEARCH_RESULTS).then(function (results) {
|
|
141
|
+
displayResults(results);
|
|
142
|
+
}),
|
|
143
|
+
1000
|
|
144
|
+
);
|
|
124
145
|
}
|
|
125
146
|
|
|
126
147
|
function closeSearch() {
|
|
127
|
-
$body.
|
|
128
|
-
if ($xsMenu.
|
|
129
|
-
$mainContainer.
|
|
130
|
-
$mainContainer.css('margin-top', '50px');
|
|
148
|
+
$body.classList.remove('with-search');
|
|
149
|
+
if ($xsMenu.style.display === 'block') {
|
|
150
|
+
$mainContainer.style.height = 'calc(100% - 50px)';
|
|
131
151
|
}
|
|
132
152
|
}
|
|
133
153
|
|
|
134
154
|
function bindMenuButton() {
|
|
135
|
-
document.getElementById('btn-menu').addEventListener('click', function() {
|
|
136
|
-
if ($xsMenu.
|
|
137
|
-
$body.
|
|
138
|
-
$mainContainer.
|
|
139
|
-
$mainContainer.css('margin-top', '50px');
|
|
155
|
+
document.getElementById('btn-menu').addEventListener('click', function () {
|
|
156
|
+
if ($xsMenu.style.display === 'none') {
|
|
157
|
+
$body.classList.remove('with-search');
|
|
158
|
+
$mainContainer.style.height = 'calc(100% - 50px)';
|
|
140
159
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
item.val('');
|
|
160
|
+
$searchInputs.forEach((item, index) => {
|
|
161
|
+
item.value = '';
|
|
144
162
|
});
|
|
145
163
|
});
|
|
146
164
|
}
|
|
147
165
|
|
|
148
166
|
function bindSearch() {
|
|
149
167
|
// Bind DOM
|
|
150
|
-
$searchInputs
|
|
168
|
+
$searchInputs = document.querySelectorAll('#book-search-input input');
|
|
151
169
|
|
|
152
|
-
$searchResults =
|
|
153
|
-
$searchList
|
|
154
|
-
$searchTitle
|
|
155
|
-
$searchResultsCount = $searchTitle.
|
|
156
|
-
$searchQuery
|
|
157
|
-
$mainContainer
|
|
158
|
-
$xsMenu
|
|
170
|
+
$searchResults = document.querySelector('.search-results');
|
|
171
|
+
$searchList = $searchResults.querySelector('.search-results-list');
|
|
172
|
+
$searchTitle = $searchResults.querySelector('.search-results-title');
|
|
173
|
+
$searchResultsCount = $searchTitle.querySelector('.search-results-count');
|
|
174
|
+
$searchQuery = $searchTitle.querySelector('.search-query');
|
|
175
|
+
$mainContainer = document.querySelector('.container-fluid');
|
|
176
|
+
$xsMenu = document.querySelector('.xs-menu');
|
|
159
177
|
|
|
160
178
|
// Launch query based on input content
|
|
161
179
|
function handleUpdate(item) {
|
|
162
|
-
var q = item.
|
|
180
|
+
var q = item.value;
|
|
163
181
|
|
|
164
182
|
if (q.length == 0) {
|
|
165
183
|
closeSearch();
|
|
@@ -172,30 +190,23 @@
|
|
|
172
190
|
// Detect true content change in search input
|
|
173
191
|
var propertyChangeUnbound = false;
|
|
174
192
|
|
|
175
|
-
|
|
176
|
-
var item = $(item);
|
|
193
|
+
$searchInputs.forEach((item, index) => {
|
|
177
194
|
// HTML5 (IE9 & others)
|
|
178
|
-
item.
|
|
179
|
-
|
|
180
|
-
if (!propertyChangeUnbound) {
|
|
181
|
-
$(this).unbind('propertychange');
|
|
182
|
-
propertyChangeUnbound = true;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
handleUpdate($(this));
|
|
195
|
+
item.addEventListener('input', function (e) {
|
|
196
|
+
handleUpdate(this);
|
|
186
197
|
});
|
|
187
198
|
// Workaround for IE < 9
|
|
188
|
-
item.
|
|
199
|
+
item.addEventListener('propertychange', function (e) {
|
|
189
200
|
if (e.originalEvent.propertyName == 'value') {
|
|
190
|
-
handleUpdate(
|
|
201
|
+
handleUpdate(this);
|
|
191
202
|
}
|
|
192
203
|
});
|
|
193
204
|
// Push to history on blur
|
|
194
|
-
item.
|
|
205
|
+
item.addEventListener('blur', function (e) {
|
|
195
206
|
// Update history state
|
|
196
207
|
if (usePushState) {
|
|
197
|
-
var uri = updateQueryString('q',
|
|
198
|
-
if (
|
|
208
|
+
var uri = updateQueryString('q', this.value);
|
|
209
|
+
if (this.value !== '') {
|
|
199
210
|
history.pushState({ path: uri }, null, uri);
|
|
200
211
|
}
|
|
201
212
|
}
|
|
@@ -207,16 +218,15 @@
|
|
|
207
218
|
var q = getParameterByName('q');
|
|
208
219
|
if (q && q.length > 0) {
|
|
209
220
|
// Update search inputs
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
item.val(q)
|
|
221
|
+
$searchInputs.forEach((item, index) => {
|
|
222
|
+
item.value = q;
|
|
213
223
|
});
|
|
214
224
|
// Launch search
|
|
215
225
|
launchSearch(q);
|
|
216
226
|
}
|
|
217
227
|
}
|
|
218
228
|
|
|
219
|
-
compodoc.addEventListener(compodoc.EVENTS.SEARCH_READY, function(event) {
|
|
229
|
+
compodoc.addEventListener(compodoc.EVENTS.SEARCH_READY, function (event) {
|
|
220
230
|
bindSearch();
|
|
221
231
|
|
|
222
232
|
bindMenuButton();
|
|
@@ -247,22 +257,17 @@
|
|
|
247
257
|
else {
|
|
248
258
|
hash = url.split('#');
|
|
249
259
|
url = hash[0].replace(re, '$1$3').replace(/(&|\?)$/, '');
|
|
250
|
-
if (typeof hash[1] !== 'undefined' && hash[1] !== null)
|
|
251
|
-
url += '#' + hash[1];
|
|
260
|
+
if (typeof hash[1] !== 'undefined' && hash[1] !== null) url += '#' + hash[1];
|
|
252
261
|
return url;
|
|
253
262
|
}
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
263
|
+
} else {
|
|
256
264
|
if (typeof value !== 'undefined' && value !== null) {
|
|
257
265
|
var separator = url.indexOf('?') !== -1 ? '&' : '?';
|
|
258
266
|
hash = url.split('#');
|
|
259
267
|
url = hash[0] + separator + key + '=' + value;
|
|
260
|
-
if (typeof hash[1] !== 'undefined' && hash[1] !== null)
|
|
261
|
-
url += '#' + hash[1];
|
|
262
|
-
return url;
|
|
263
|
-
}
|
|
264
|
-
else
|
|
268
|
+
if (typeof hash[1] !== 'undefined' && hash[1] !== null) url += '#' + hash[1];
|
|
265
269
|
return url;
|
|
270
|
+
} else return url;
|
|
266
271
|
}
|
|
267
272
|
}
|
|
268
273
|
})(compodoc);
|