@eui/core 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/ActivatedRouteAction.html +17 -8
- package/docs/classes/AddApiQueueItemAction.html +17 -8
- package/docs/classes/AddAppLoadedConfigModulesAction.html +17 -8
- package/docs/classes/ApiQueueServiceMock.html +34 -9
- 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 +17 -8
- 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 +17 -8
- package/docs/classes/LogServiceMock.html +7 -6
- package/docs/classes/RemoveApiQueueItemAction.html +17 -8
- 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 +17 -8
- package/docs/classes/UpdateAppStatusAction.html +17 -8
- package/docs/classes/UpdateAppVersionAction.html +17 -8
- package/docs/classes/UpdateCurrentModuleAction.html +17 -8
- package/docs/classes/UpdateI18nStateAction.html +17 -8
- package/docs/classes/UpdateLocaleStateAction.html +17 -8
- package/docs/classes/UpdateNotificationsListAction.html +17 -8
- package/docs/classes/UpdateUserDashboardAction.html +17 -8
- package/docs/classes/UpdateUserDetailsAction.html +17 -8
- package/docs/classes/UpdateUserPreferencesAction.html +17 -8
- package/docs/classes/UpdateUserRightsAction.html +17 -8
- package/docs/classes/UpdateUserStateAction.html +17 -8
- package/docs/dependencies.html +47 -66
- package/docs/directives/TranslateMockDirective.html +7 -6
- package/docs/index.html +9 -8
- package/docs/injectables/ApiQueueService.html +25 -8
- package/docs/injectables/EuiAppShellService.html +16 -7
- 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 +8 -7
- package/docs/injectables/I18nLoader.html +7 -6
- package/docs/injectables/I18nService.html +200 -23
- package/docs/injectables/I18nServiceMock.html +44 -7
- package/docs/injectables/LocalForageService.html +7 -6
- package/docs/injectables/LocalStorageService.html +7 -6
- package/docs/injectables/LocaleService.html +126 -50
- package/docs/injectables/LocaleServiceMock.html +15 -47
- package/docs/injectables/LogService.html +7 -6
- package/docs/injectables/SessionStorageService.html +7 -6
- package/docs/injectables/StoreService.html +280 -71
- package/docs/injectables/StoreServiceMock.html +15 -36
- package/docs/injectables/UserService.html +104 -27
- package/docs/injectables/UserServiceMock.html +45 -7
- package/docs/interceptors/AddLangParamInterceptor.html +9 -8
- package/docs/interceptors/CachePreventionInterceptor.html +9 -8
- package/docs/interceptors/CorsSecurityInterceptor.html +9 -8
- package/docs/interceptors/CsrfPreventionInterceptor.html +9 -8
- package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +9 -8
- package/docs/interceptors/HttpErrorHandlerInterceptor.html +11 -10
- package/docs/interceptors/UxRequestErrorModelInterceptor.html +11 -10
- package/docs/interfaces/Action.html +271 -0
- package/docs/interfaces/ActionReducer.html +270 -0
- 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 +408 -0
- package/docs/interfaces/MemoizedSelectorWithProps.html +415 -0
- 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 +224 -0
- 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-wc.js +33 -21
- package/docs/js/menu-wc_es5.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 +42 -16
- package/docs/miscellaneous/functions.html +944 -66
- package/docs/miscellaneous/typealiases.html +239 -19
- package/docs/miscellaneous/variables.html +290 -169
- 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 +663 -488
- package/fesm2022/eui-core.mjs.map +1 -1
- package/lib/eui-core.module.d.ts.map +1 -1
- package/lib/services/app/eui-init-app.d.ts +10 -1
- package/lib/services/app/eui-init-app.d.ts.map +1 -1
- package/lib/services/app/eui-pre-init-app.d.ts.map +1 -1
- package/lib/services/app/eui-startup.d.ts.map +1 -1
- package/lib/services/app/index.d.ts +1 -0
- package/lib/services/app/index.d.ts.map +1 -1
- package/lib/services/config/defaults.d.ts.map +1 -1
- package/lib/services/eui-app-shell.service.d.ts +1 -1
- package/lib/services/eui-app-shell.service.d.ts.map +1 -1
- package/lib/services/i18n/i18n.loader.d.ts +10 -1
- package/lib/services/i18n/i18n.loader.d.ts.map +1 -1
- package/lib/services/i18n/i18n.service.d.ts +32 -8
- package/lib/services/i18n/i18n.service.d.ts.map +1 -1
- package/lib/services/locale/locale.service.d.ts +18 -32
- package/lib/services/locale/locale.service.d.ts.map +1 -1
- package/lib/services/locale/locale.service.mock.d.ts +1 -1
- package/lib/services/locale/locale.service.mock.d.ts.map +1 -1
- package/lib/services/permission/permission.service.d.ts.map +1 -1
- package/lib/services/queue/api-queue.service.d.ts +18 -3
- package/lib/services/queue/api-queue.service.d.ts.map +1 -1
- package/lib/services/queue/api-queue.service.mock.d.ts +2 -2
- package/lib/services/queue/api-queue.service.mock.d.ts.map +1 -1
- package/lib/services/store/actions/app.actions.d.ts +37 -1
- package/lib/services/store/actions/app.actions.d.ts.map +1 -1
- package/lib/services/store/actions/i18n.actions.d.ts +10 -1
- package/lib/services/store/actions/i18n.actions.d.ts.map +1 -1
- package/lib/services/store/actions/locale.actions.d.ts +10 -1
- package/lib/services/store/actions/locale.actions.d.ts.map +1 -1
- package/lib/services/store/actions/notifications.actions.d.ts +10 -1
- package/lib/services/store/actions/notifications.actions.d.ts.map +1 -1
- package/lib/services/store/actions/user.actions.d.ts +22 -1
- package/lib/services/store/actions/user.actions.d.ts.map +1 -1
- package/lib/services/store/index.d.ts +0 -1
- package/lib/services/store/index.d.ts.map +1 -1
- package/lib/services/store/ngrx_kit.d.ts +54 -0
- package/lib/services/store/ngrx_kit.d.ts.map +1 -0
- package/lib/services/store/reducers/app.reducers.d.ts +4 -1
- package/lib/services/store/reducers/app.reducers.d.ts.map +1 -1
- package/lib/services/store/reducers/core.reducers.d.ts +4 -1
- package/lib/services/store/reducers/core.reducers.d.ts.map +1 -1
- package/lib/services/store/reducers/i18n.reducers.d.ts +4 -1
- package/lib/services/store/reducers/i18n.reducers.d.ts.map +1 -1
- package/lib/services/store/reducers/locale.reducers.d.ts +4 -1
- package/lib/services/store/reducers/locale.reducers.d.ts.map +1 -1
- package/lib/services/store/reducers/meta.reducers.d.ts +5 -1
- package/lib/services/store/reducers/meta.reducers.d.ts.map +1 -1
- package/lib/services/store/reducers/notifications.reducers.d.ts +4 -1
- package/lib/services/store/reducers/notifications.reducers.d.ts.map +1 -1
- package/lib/services/store/reducers/user.reducers.d.ts +4 -1
- package/lib/services/store/reducers/user.reducers.d.ts.map +1 -1
- package/lib/services/store/store.service.d.ts +40 -12
- package/lib/services/store/store.service.d.ts.map +1 -1
- package/lib/services/user/user.service.d.ts +32 -6
- package/lib/services/user/user.service.d.ts.map +1 -1
- package/package.json +2 -2
- package/docs/injectables/CoreAppEffects.html +0 -468
- package/lib/services/store/effects/app.effects.d.ts +0 -21
- package/lib/services/store/effects/app.effects.d.ts.map +0 -1
- package/lib/services/store/effects/index.d.ts +0 -4
- package/lib/services/store/effects/index.d.ts.map +0 -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);
|