@eui/core 19.0.0-rc.6 → 19.0.0-rc.7
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/ActivatedRouteAction.html +7 -6
- package/docs/classes/AddApiQueueItemAction.html +7 -6
- package/docs/classes/AddAppLoadedConfigModulesAction.html +7 -6
- package/docs/classes/ApiQueueServiceMock.html +7 -6
- package/docs/classes/AsyncStorageService.html +7 -6
- package/docs/classes/AsyncStorageServiceMock.html +7 -6
- package/docs/classes/CssUtils.html +7 -6
- package/docs/classes/EmptyApiQueueAction.html +7 -6
- package/docs/classes/ErrorSubClass.html +7 -6
- package/docs/classes/EuiCoreRootGuardClass.html +7 -6
- package/docs/classes/EuiError.html +7 -6
- package/docs/classes/I18nResourceImpl.html +7 -6
- package/docs/classes/InitStoreAction.html +7 -6
- package/docs/classes/LogServiceMock.html +7 -6
- package/docs/classes/RemoveApiQueueItemAction.html +7 -6
- package/docs/classes/StorageService.html +7 -6
- package/docs/classes/StorageServiceMock.html +7 -6
- package/docs/classes/TranslateServiceMock.html +7 -6
- package/docs/classes/UpdateAppConnectionAction.html +7 -6
- package/docs/classes/UpdateAppStatusAction.html +7 -6
- package/docs/classes/UpdateAppVersionAction.html +7 -6
- package/docs/classes/UpdateCurrentModuleAction.html +7 -6
- package/docs/classes/UpdateI18nStateAction.html +7 -6
- package/docs/classes/UpdateLocaleStateAction.html +7 -6
- package/docs/classes/UpdateNotificationsListAction.html +7 -6
- package/docs/classes/UpdateUserDashboardAction.html +7 -6
- package/docs/classes/UpdateUserDetailsAction.html +7 -6
- package/docs/classes/UpdateUserPreferencesAction.html +7 -6
- package/docs/classes/UpdateUserRightsAction.html +7 -6
- package/docs/classes/UpdateUserStateAction.html +7 -6
- package/docs/dependencies.html +45 -44
- package/docs/directives/TranslateMockDirective.html +7 -6
- package/docs/index.html +7 -6
- package/docs/injectables/ApiQueueService.html +7 -6
- package/docs/injectables/EuiAppShellService.html +7 -6
- package/docs/injectables/EuiDynamicComponentService.html +7 -6
- package/docs/injectables/EuiDynamicMenuService.html +7 -6
- package/docs/injectables/EuiGrowlService.html +7 -6
- package/docs/injectables/EuiLoaderService.html +7 -6
- package/docs/injectables/EuiPermissionService.html +7 -6
- package/docs/injectables/EuiThemeService.html +7 -6
- package/docs/injectables/EuiTimezoneService.html +7 -6
- package/docs/injectables/GlobalErrorHandler.html +7 -6
- package/docs/injectables/I18nLoader.html +7 -6
- package/docs/injectables/I18nService.html +7 -6
- package/docs/injectables/I18nServiceMock.html +7 -6
- package/docs/injectables/LocalForageService.html +7 -6
- package/docs/injectables/LocalStorageService.html +7 -6
- package/docs/injectables/LocaleService.html +7 -6
- package/docs/injectables/LocaleServiceMock.html +7 -6
- package/docs/injectables/LogService.html +7 -6
- package/docs/injectables/SessionStorageService.html +7 -6
- package/docs/injectables/StoreService.html +7 -6
- package/docs/injectables/StoreServiceMock.html +7 -6
- package/docs/injectables/UserService.html +7 -6
- package/docs/injectables/UserServiceMock.html +9 -7
- package/docs/interceptors/AddLangParamInterceptor.html +7 -6
- package/docs/interceptors/CachePreventionInterceptor.html +7 -6
- package/docs/interceptors/CorsSecurityInterceptor.html +7 -6
- package/docs/interceptors/CsrfPreventionInterceptor.html +7 -6
- package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +7 -6
- package/docs/interceptors/HttpErrorHandlerInterceptor.html +7 -6
- package/docs/interceptors/UxRequestErrorModelInterceptor.html +7 -6
- package/docs/interfaces/Action.html +7 -6
- package/docs/interfaces/ActionReducer.html +7 -6
- package/docs/interfaces/Dependency.html +7 -6
- package/docs/interfaces/EuiTimeZone.html +7 -6
- package/docs/interfaces/IEuiTheme.html +7 -6
- package/docs/interfaces/Library.html +7 -6
- package/docs/interfaces/LoadedResources.html +7 -6
- package/docs/interfaces/LoadedResourcesError.html +7 -6
- package/docs/interfaces/MemoizedSelector.html +7 -6
- package/docs/interfaces/MemoizedSelectorWithProps.html +7 -6
- package/docs/interfaces/ModuleLoadEvent.html +7 -6
- package/docs/interfaces/Policy.html +7 -6
- package/docs/interfaces/ResourceError.html +7 -6
- package/docs/interfaces/ThemeState.html +7 -6
- package/docs/interfaces/TranslationKeys.html +7 -6
- package/docs/interfaces/UIState.html +7 -6
- package/docs/interfaces/body.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 +7 -6
- package/docs/miscellaneous/variables.html +7 -6
- package/docs/modules/CoreModule.html +7 -6
- package/docs/modules/I18nModule.html +7 -6
- package/docs/modules/LogModule.html +7 -6
- package/docs/modules/TranslateMockModule.html +7 -6
- package/docs/modules.html +7 -6
- package/docs/pipes/TranslateMockPipe.html +7 -6
- package/docs/properties.html +7 -6
- package/docs/styles/compodoc.css +11 -8
- package/fesm2022/eui-core.mjs +95 -95
- 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 =
|
|
154
|
-
parent = element
|
|
153
|
+
var element = e.target,
|
|
154
|
+
parent = element.parentNode,
|
|
155
155
|
parentLink,
|
|
156
156
|
elementIconChild;
|
|
157
157
|
if (parent) {
|
|
158
|
-
if (
|
|
158
|
+
if (!parent.classList.contains('linked')) {
|
|
159
159
|
e.preventDefault();
|
|
160
160
|
} else {
|
|
161
161
|
parentLink = parent.parentNode;
|
|
162
|
-
if (parentLink && element.
|
|
163
|
-
|
|
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
|
-
|
|
172
|
-
|
|
173
|
-
elementIconChild.
|
|
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.
|
|
177
|
-
elementIconChild.
|
|
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 =
|
|
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
|
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);
|