@eui/core 19.0.0-rc.6 → 19.0.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/docs/classes/ActivatedRouteAction.html +7 -6
  2. package/docs/classes/AddApiQueueItemAction.html +7 -6
  3. package/docs/classes/AddAppLoadedConfigModulesAction.html +7 -6
  4. package/docs/classes/ApiQueueServiceMock.html +7 -6
  5. package/docs/classes/AsyncStorageService.html +7 -6
  6. package/docs/classes/AsyncStorageServiceMock.html +7 -6
  7. package/docs/classes/CssUtils.html +7 -6
  8. package/docs/classes/EmptyApiQueueAction.html +7 -6
  9. package/docs/classes/ErrorSubClass.html +7 -6
  10. package/docs/classes/EuiCoreRootGuardClass.html +7 -6
  11. package/docs/classes/EuiError.html +7 -6
  12. package/docs/classes/I18nResourceImpl.html +7 -6
  13. package/docs/classes/InitStoreAction.html +7 -6
  14. package/docs/classes/LogServiceMock.html +7 -6
  15. package/docs/classes/RemoveApiQueueItemAction.html +7 -6
  16. package/docs/classes/StorageService.html +7 -6
  17. package/docs/classes/StorageServiceMock.html +7 -6
  18. package/docs/classes/TranslateServiceMock.html +7 -6
  19. package/docs/classes/UpdateAppConnectionAction.html +7 -6
  20. package/docs/classes/UpdateAppStatusAction.html +7 -6
  21. package/docs/classes/UpdateAppVersionAction.html +7 -6
  22. package/docs/classes/UpdateCurrentModuleAction.html +7 -6
  23. package/docs/classes/UpdateI18nStateAction.html +7 -6
  24. package/docs/classes/UpdateLocaleStateAction.html +7 -6
  25. package/docs/classes/UpdateNotificationsListAction.html +7 -6
  26. package/docs/classes/UpdateUserDashboardAction.html +7 -6
  27. package/docs/classes/UpdateUserDetailsAction.html +7 -6
  28. package/docs/classes/UpdateUserPreferencesAction.html +7 -6
  29. package/docs/classes/UpdateUserRightsAction.html +7 -6
  30. package/docs/classes/UpdateUserStateAction.html +7 -6
  31. package/docs/dependencies.html +45 -44
  32. package/docs/directives/TranslateMockDirective.html +7 -6
  33. package/docs/index.html +7 -6
  34. package/docs/injectables/ApiQueueService.html +7 -6
  35. package/docs/injectables/EuiAppShellService.html +7 -6
  36. package/docs/injectables/EuiDynamicComponentService.html +7 -6
  37. package/docs/injectables/EuiDynamicMenuService.html +7 -6
  38. package/docs/injectables/EuiGrowlService.html +7 -6
  39. package/docs/injectables/EuiLoaderService.html +7 -6
  40. package/docs/injectables/EuiPermissionService.html +7 -6
  41. package/docs/injectables/EuiThemeService.html +7 -6
  42. package/docs/injectables/EuiTimezoneService.html +7 -6
  43. package/docs/injectables/GlobalErrorHandler.html +7 -6
  44. package/docs/injectables/I18nLoader.html +7 -6
  45. package/docs/injectables/I18nService.html +7 -6
  46. package/docs/injectables/I18nServiceMock.html +7 -6
  47. package/docs/injectables/LocalForageService.html +7 -6
  48. package/docs/injectables/LocalStorageService.html +7 -6
  49. package/docs/injectables/LocaleService.html +7 -6
  50. package/docs/injectables/LocaleServiceMock.html +7 -6
  51. package/docs/injectables/LogService.html +7 -6
  52. package/docs/injectables/SessionStorageService.html +7 -6
  53. package/docs/injectables/StoreService.html +7 -6
  54. package/docs/injectables/StoreServiceMock.html +7 -6
  55. package/docs/injectables/UserService.html +7 -6
  56. package/docs/injectables/UserServiceMock.html +9 -7
  57. package/docs/interceptors/AddLangParamInterceptor.html +7 -6
  58. package/docs/interceptors/CachePreventionInterceptor.html +7 -6
  59. package/docs/interceptors/CorsSecurityInterceptor.html +7 -6
  60. package/docs/interceptors/CsrfPreventionInterceptor.html +7 -6
  61. package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +7 -6
  62. package/docs/interceptors/HttpErrorHandlerInterceptor.html +7 -6
  63. package/docs/interceptors/UxRequestErrorModelInterceptor.html +7 -6
  64. package/docs/interfaces/Action.html +7 -6
  65. package/docs/interfaces/ActionReducer.html +7 -6
  66. package/docs/interfaces/Dependency.html +7 -6
  67. package/docs/interfaces/EuiTimeZone.html +7 -6
  68. package/docs/interfaces/IEuiTheme.html +7 -6
  69. package/docs/interfaces/Library.html +7 -6
  70. package/docs/interfaces/LoadedResources.html +7 -6
  71. package/docs/interfaces/LoadedResourcesError.html +7 -6
  72. package/docs/interfaces/MemoizedSelector.html +7 -6
  73. package/docs/interfaces/MemoizedSelectorWithProps.html +7 -6
  74. package/docs/interfaces/ModuleLoadEvent.html +7 -6
  75. package/docs/interfaces/Policy.html +7 -6
  76. package/docs/interfaces/ResourceError.html +7 -6
  77. package/docs/interfaces/ThemeState.html +7 -6
  78. package/docs/interfaces/TranslationKeys.html +7 -6
  79. package/docs/interfaces/UIState.html +7 -6
  80. package/docs/interfaces/body.html +7 -6
  81. package/docs/js/libs/bootstrap-native.js +1 -1
  82. package/docs/js/menu.js +10 -11
  83. package/docs/js/search/search-lunr.js +6 -8
  84. package/docs/js/search/search.js +107 -102
  85. package/docs/js/search/search_index.js +2 -2
  86. package/docs/license.html +7 -6
  87. package/docs/miscellaneous/enumerations.html +7 -6
  88. package/docs/miscellaneous/functions.html +7 -6
  89. package/docs/miscellaneous/typealiases.html +7 -6
  90. package/docs/miscellaneous/variables.html +7 -6
  91. package/docs/modules/CoreModule.html +7 -6
  92. package/docs/modules/I18nModule.html +7 -6
  93. package/docs/modules/LogModule.html +7 -6
  94. package/docs/modules/TranslateMockModule.html +7 -6
  95. package/docs/modules.html +7 -6
  96. package/docs/pipes/TranslateMockPipe.html +7 -6
  97. package/docs/properties.html +7 -6
  98. package/docs/styles/compodoc.css +11 -8
  99. package/fesm2022/eui-core.mjs +95 -95
  100. package/package.json +2 -2
package/docs/js/menu.js CHANGED
@@ -150,17 +150,17 @@ document.addEventListener('DOMContentLoaded', function () {
150
150
  faAngleUpClass = 'ion-ios-arrow-up',
151
151
  faAngleDownClass = 'ion-ios-arrow-down',
152
152
  toggleItemMenu = function (e) {
153
- var element = $(e.target),
154
- parent = element[0].parentNode,
153
+ var element = e.target,
154
+ parent = element.parentNode,
155
155
  parentLink,
156
156
  elementIconChild;
157
157
  if (parent) {
158
- if (!$(parent).hasClass('linked')) {
158
+ if (!parent.classList.contains('linked')) {
159
159
  e.preventDefault();
160
160
  } else {
161
161
  parentLink = parent.parentNode;
162
- if (parentLink && element.hasClass('link-name')) {
163
- $(parentLink).trigger('click');
162
+ if (parentLink && element.classList.contains('link-name')) {
163
+ parentLink.trigger('click');
164
164
  }
165
165
  }
166
166
  elementIconChild = parent.getElementsByClassName(faAngleUpClass)[0];
@@ -168,13 +168,12 @@ document.addEventListener('DOMContentLoaded', function () {
168
168
  elementIconChild = parent.getElementsByClassName(faAngleDownClass)[0];
169
169
  }
170
170
  if (elementIconChild) {
171
- elementIconChild = $(elementIconChild);
172
- if (elementIconChild.hasClass(faAngleUpClass)) {
173
- elementIconChild.addClass(faAngleDownClass);
174
- elementIconChild.removeClass(faAngleUpClass);
171
+ if (elementIconChild.classList.contains(faAngleUpClass)) {
172
+ elementIconChild.classList.add(faAngleDownClass);
173
+ elementIconChild.classList.remove(faAngleUpClass);
175
174
  } else {
176
- elementIconChild.addClass(faAngleUpClass);
177
- elementIconChild.removeClass(faAngleDownClass);
175
+ elementIconChild.classList.add(faAngleUpClass);
176
+ elementIconChild.classList.remove(faAngleDownClass);
178
177
  }
179
178
  }
180
179
  }
@@ -1,12 +1,11 @@
1
- (function(compodoc) {
2
-
1
+ (function (compodoc) {
3
2
  function LunrSearchEngine() {
4
3
  this.index = undefined;
5
4
  this.store = {};
6
5
  this.name = 'LunrSearchEngine';
7
6
  }
8
7
 
9
- LunrSearchEngine.prototype.init = function() {
8
+ LunrSearchEngine.prototype.init = function () {
10
9
  var that = this,
11
10
  d = new promise.Promise();
12
11
 
@@ -17,13 +16,13 @@
17
16
  return d;
18
17
  };
19
18
 
20
- LunrSearchEngine.prototype.search = function(q, offset, length) {
19
+ LunrSearchEngine.prototype.search = function (q, offset, length) {
21
20
  var that = this,
22
21
  results = [],
23
22
  d = new promise.Promise();
24
23
 
25
24
  if (this.index) {
26
- results = $.map(this.index.search('*' + q + '*'), function(result) {
25
+ results = this.index.search('*' + q + '*').map(function (result) {
27
26
  var doc = that.store[result.ref];
28
27
 
29
28
  return {
@@ -43,7 +42,7 @@
43
42
  return d;
44
43
  };
45
44
 
46
- compodoc.addEventListener(compodoc.EVENTS.READY, function(event) {
45
+ compodoc.addEventListener(compodoc.EVENTS.READY, function (event) {
47
46
  var engine = new LunrSearchEngine(),
48
47
  initialized = false;
49
48
 
@@ -56,8 +55,7 @@
56
55
  query: query
57
56
  };
58
57
 
59
- engine.init()
60
- .then(function() {
58
+ engine.init().then(function () {
61
59
  initialized = true;
62
60
  compodoc.dispatchEvent({
63
61
  type: compodoc.EVENTS.SEARCH_READY
@@ -1,8 +1,7 @@
1
- (function(compodoc) {
2
- var usePushState = (typeof history.pushState !== 'undefined'),
3
-
4
- // DOM Elements
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, args = arguments;
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
- $searchResults.toggleClass('no-results', noResults);
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.empty();
40
+ $searchList.innerText = '';
37
41
 
38
42
  // Display title for research
39
- $searchResultsCount.text(res.count);
40
- $searchQuery.text(res.query);
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 = $('<li>', {
60
- 'class': 'search-results-group'
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 (propertyLabels.length === 2 && propertyLabels[0] !== 'miscellaneous' && propertyLabels[0] !== 'additional') {
66
- finalPropertyLabel = propertyLabels[0].charAt(0).toUpperCase() + propertyLabels[0].substring(1) + ' - ' + propertyLabels[1].charAt(0).toUpperCase() + propertyLabels[1].substring(1) + ' (' + groups[property].results.length + ')';
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 = 'Additional pages' + ' (' + groups[property].results.length + ')'
83
+ finalPropertyLabel =
84
+ 'Additional pages' + ' (' + groups[property].results.length + ')';
69
85
  } else {
70
- finalPropertyLabel = propertyLabels[0].charAt(0).toUpperCase() + propertyLabels[0].substring(1) + ' (' + groups[property].results.length + ')'
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 = $('<h3>', {
73
- 'text': finalPropertyLabel
74
- });
75
- $groupTitle.appendTo($li);
93
+ var $groupTitle = document.createElement('h3');
94
+ $groupTitle.innerText = finalPropertyLabel;
95
+ $li.appendChild($groupTitle);
76
96
 
77
- var $ulResults = $('<ul>', {
78
- 'class': 'search-results-list'
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 = $('<li>', {
84
- 'class': 'search-results-item'
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 = res.title.split(' - ')[1].charAt(0).toUpperCase() + res.title.split(' - ')[1].substring(1);
99
- var $link = $('<a>', {
100
- 'href': link + res.url,
101
- 'text': finalResLabel
102
- });
103
- $link.appendTo($liResult);
104
- $liResult.appendTo($ulResults);
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
- $ulResults.appendTo($li);
125
+ $li.appendChild($ulResults);
107
126
 
108
- $li.appendTo($searchList);
127
+ $searchList.appendChild($li);
109
128
  }
110
129
  }
111
130
 
112
131
  function launchSearch(q) {
113
- $body.addClass('with-search');
132
+ $body.classList.add('with-search');
114
133
 
115
- if ($xsMenu.css('display') === 'block') {
116
- $mainContainer.css('height', 'calc(100% - 100px)');
117
- $mainContainer.css('margin-top', '100px');
134
+ if ($xsMenu.style.display === 'block') {
135
+ $mainContainer.style.height = 'calc(100% - 100px)';
136
+ $mainContainer.style.marginTop = '100px';
118
137
  }
119
138
 
120
- throttle(compodoc.search.query(q, 0, MAX_SEARCH_RESULTS)
121
- .then(function(results) {
122
- displayResults(results);
123
- }), 1000);
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.removeClass('with-search');
128
- if ($xsMenu.css('display') === 'block') {
129
- $mainContainer.css('height', 'calc(100% - 50px)');
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.css('display') === 'none') {
137
- $body.removeClass('with-search');
138
- $mainContainer.css('height', 'calc(100% - 50px)');
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
- $.each($searchInputs, function(index, item){
142
- var item = $(item);
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 = $('#book-search-input input');
168
+ $searchInputs = document.querySelectorAll('#book-search-input input');
151
169
 
152
- $searchResults = $('.search-results');
153
- $searchList = $searchResults.find('.search-results-list');
154
- $searchTitle = $searchResults.find('.search-results-title');
155
- $searchResultsCount = $searchTitle.find('.search-results-count');
156
- $searchQuery = $searchTitle.find('.search-query');
157
- $mainContainer = $('.container-fluid');
158
- $xsMenu = $('.xs-menu');
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.val();
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
- $.each($searchInputs, function(index, item){
176
- var item = $(item);
193
+ $searchInputs.forEach((item, index) => {
177
194
  // HTML5 (IE9 & others)
178
- item.on('input', function(e) {
179
- // Unbind propertychange event for IE9+
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.on('propertychange', function(e) {
199
+ item.addEventListener('propertychange', function (e) {
189
200
  if (e.originalEvent.propertyName == 'value') {
190
- handleUpdate($(this));
201
+ handleUpdate(this);
191
202
  }
192
203
  });
193
204
  // Push to history on blur
194
- item.on('blur', function(e) {
205
+ item.addEventListener('blur', function (e) {
195
206
  // Update history state
196
207
  if (usePushState) {
197
- var uri = updateQueryString('q', $(this).val());
198
- if ($(this).val() !== '') {
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
- $.each($searchInputs, function(index, item){
211
- var item = $(item);
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);