@fluxhub/fluxhub-lib 1.0.336 → 1.0.338
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/bundles/fluxhub-fluxhub-lib.umd.js +10 -9
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +12 -10
- package/esm5/lib/controls/fhgrid.js +11 -10
- package/fesm2015/fluxhub-fluxhub-lib.js +11 -9
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +10 -9
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid.d.ts +5 -1
- package/package.json +1 -1
- package/docs/classes/CustomEvent.html +0 -264
- package/docs/classes/FHValueAccessor.html +0 -508
- package/docs/classes/MomentDateAdapter.html +0 -1988
- package/docs/classes/OfficeOperation.html +0 -270
- package/docs/classes/OfficeResult.html +0 -216
- package/docs/classes/dati_aggiuntivi.html +0 -5343
- package/docs/classes/dt.html +0 -314
- package/docs/classes/wkfapp.html +0 -2110
- package/docs/components/ApprovaGridComponent.html +0 -699
- package/docs/components/ComboBoxEditor.html +0 -932
- package/docs/components/CurrencyComponent.html +0 -391
- package/docs/components/DateComponent.html +0 -853
- package/docs/components/DtPick.html +0 -1075
- package/docs/components/FHAutoCompleteComponent.html +0 -2485
- package/docs/components/FHComboboxComponent.html +0 -1735
- package/docs/components/FHConfirmComponent.html +0 -591
- package/docs/components/FHCurrencyFieldComponent.html +0 -1434
- package/docs/components/FHDatePickerComponent.html +0 -1558
- package/docs/components/FHFieldPickListComponent.html +0 -1046
- package/docs/components/FHGridComponent.html +0 -4555
- package/docs/components/FHGridJSONComponent.html +0 -4530
- package/docs/components/FHGridToolBarComponent.html +0 -758
- package/docs/components/FHListComponent.html +0 -1589
- package/docs/components/FHListPick.html +0 -731
- package/docs/components/FHLogPanelComponent.html +0 -685
- package/docs/components/FHMdReader.html +0 -462
- package/docs/components/FHNumericFieldComponent.html +0 -1261
- package/docs/components/FHPickListComponent.html +0 -1565
- package/docs/components/FHRichText.html +0 -961
- package/docs/components/FHRoleManager.html +0 -524
- package/docs/components/FHTableManager.html +0 -524
- package/docs/components/FHTimePickerComponent.html +0 -1990
- package/docs/components/FHUploadComponent.html +0 -1376
- package/docs/components/FHUploadPanelComponent.html +0 -1271
- package/docs/components/FHUserFieldComponent.html +0 -1300
- package/docs/components/FHUserPickerComponent.html +0 -1118
- package/docs/components/FHViewerComponent.html +0 -1578
- package/docs/components/FHWinComboSelect.html +0 -701
- package/docs/components/FSInput.html +0 -327
- package/docs/components/FSResult.html +0 -317
- package/docs/components/FormBuilderComponent.html +0 -937
- package/docs/components/FormExecuterComponent.html +0 -692
- package/docs/components/NumericEditorComponent.html +0 -636
- package/docs/components/QGParam.html +0 -457
- package/docs/components/QGResult.html +0 -339
- package/docs/components/QParam.html +0 -354
- package/docs/components/QResult.html +0 -317
- package/docs/components/TextAreaEditor.html +0 -827
- package/docs/components/WinAskButtonsComponent.html +0 -505
- package/docs/components/WinAskNumberComponent.html +0 -679
- package/docs/components/WinAskTextBigComponent.html +0 -682
- package/docs/components/WinAskTextComponent.html +0 -669
- package/docs/components/WinOutputComponent.html +0 -631
- package/docs/components/WinWait.html +0 -564
- package/docs/components/fhimagepreview.html +0 -1151
- package/docs/components/win_assegna.html +0 -675
- package/docs/components/win_commenti.html +0 -1416
- package/docs/components/win_commento_sel_notif.html +0 -598
- package/docs/components/win_conferma.html +0 -677
- package/docs/components/win_grid_help.html +0 -461
- package/docs/components/win_info_doc.html +0 -700
- package/docs/components/win_log.html +0 -1631
- package/docs/components/win_manage_roles.html +0 -936
- package/docs/components/win_manage_values.html +0 -1009
- package/docs/components/win_mappa.html +0 -859
- package/docs/components/win_recupera_doc.html +0 -693
- package/docs/components/win_riassegna_select_level.html +0 -725
- package/docs/components/win_riassegna_select_user.html +0 -684
- package/docs/components/win_salva_annulla.html +0 -467
- package/docs/components/win_select_canale.html +0 -562
- package/docs/components/win_select_level.html +0 -717
- package/docs/components/win_show_image.html +0 -447
- package/docs/components/win_time_slider.html +0 -605
- package/docs/components/win_uploads.html +0 -1276
- package/docs/components/wkf_header_bar.html +0 -764
- package/docs/coverage.html +0 -1432
- package/docs/dependencies.html +0 -265
- package/docs/directives/DecimalMask.html +0 -338
- package/docs/directives/FHCurrencyFormatterDirective.html +0 -352
- package/docs/fonts/ionicons.eot +0 -0
- package/docs/fonts/ionicons.svg +0 -2090
- package/docs/fonts/ionicons.ttf +0 -0
- package/docs/fonts/ionicons.woff +0 -0
- package/docs/fonts/ionicons.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-300.eot +0 -0
- package/docs/fonts/roboto-v15-latin-300.svg +0 -314
- package/docs/fonts/roboto-v15-latin-300.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-300.woff +0 -0
- package/docs/fonts/roboto-v15-latin-300.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-700.eot +0 -0
- package/docs/fonts/roboto-v15-latin-700.svg +0 -310
- package/docs/fonts/roboto-v15-latin-700.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-700.woff +0 -0
- package/docs/fonts/roboto-v15-latin-700.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-regular.eot +0 -0
- package/docs/fonts/roboto-v15-latin-regular.svg +0 -308
- package/docs/fonts/roboto-v15-latin-regular.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-regular.woff +0 -0
- package/docs/fonts/roboto-v15-latin-regular.woff2 +0 -0
- package/docs/graph/dependencies.svg +0 -1594
- package/docs/guards/FHGuard.html +0 -386
- package/docs/images/compodoc-vectorise-inverted.png +0 -0
- package/docs/images/compodoc-vectorise-inverted.svg +0 -201
- package/docs/images/compodoc-vectorise.png +0 -0
- package/docs/images/compodoc-vectorise.svg +0 -201
- package/docs/images/coverage-badge-documentation.svg +0 -9
- package/docs/images/favicon.ico +0 -0
- package/docs/index.html +0 -114
- package/docs/injectables/AppMakerService.html +0 -380
- package/docs/injectables/AppService.html +0 -1592
- package/docs/injectables/AuthenticationService.html +0 -947
- package/docs/injectables/FileService.html +0 -354
- package/docs/injectables/GridService.html +0 -394
- package/docs/injectables/HighlightService.html +0 -239
- package/docs/injectables/LocalDBService.html +0 -513
- package/docs/injectables/OdbcService.html +0 -380
- package/docs/injectables/OfficeAutomatorService.html +0 -496
- package/docs/injectables/QueryService.html +0 -420
- package/docs/injectables/UtilityService.html +0 -2818
- package/docs/injectables/WkfService.html +0 -380
- package/docs/interfaces/FHGridColumn.html +0 -403
- package/docs/interfaces/ImageViewerConfig.html +0 -491
- package/docs/js/compodoc.js +0 -14
- package/docs/js/lazy-load-graphs.js +0 -44
- package/docs/js/libs/EventDispatcher.js +0 -5
- package/docs/js/libs/bootstrap-native.js +0 -2
- package/docs/js/libs/clipboard.min.js +0 -7
- package/docs/js/libs/custom-elements-es5-adapter.js +0 -15
- package/docs/js/libs/custom-elements.min.js +0 -38
- package/docs/js/libs/d3.v3.min.js +0 -2
- package/docs/js/libs/deep-iterator.js +0 -2
- package/docs/js/libs/es6-shim.min.js +0 -11
- package/docs/js/libs/htmlparser.js +0 -23
- package/docs/js/libs/innersvg.js +0 -9
- package/docs/js/libs/lit-html.js +0 -1
- package/docs/js/libs/prism.js +0 -14
- package/docs/js/libs/promise.min.js +0 -6
- package/docs/js/libs/svg-pan-zoom.min.js +0 -3
- package/docs/js/libs/tablesort.min.js +0 -6
- package/docs/js/libs/tablesort.number.min.js +0 -6
- package/docs/js/libs/vis.min.js +0 -46
- package/docs/js/libs/zepto.min.js +0 -2
- package/docs/js/menu-wc.js +0 -528
- package/docs/js/menu.js +0 -261
- package/docs/js/routes.js +0 -280
- package/docs/js/search/lunr.min.js +0 -6
- package/docs/js/search/search-lunr.js +0 -67
- package/docs/js/search/search.js +0 -271
- package/docs/js/search/search_index.js +0 -4
- package/docs/js/sourceCode.js +0 -58
- package/docs/js/svg-pan-zoom.controls.js +0 -53
- package/docs/js/tabs.js +0 -21
- package/docs/js/tree.js +0 -147
- package/docs/miscellaneous/typealiases.html +0 -146
- package/docs/miscellaneous/variables.html +0 -593
- package/docs/modules/FluxhubLibModule/dependencies.svg +0 -1594
- package/docs/modules/FluxhubLibModule.html +0 -2325
- package/docs/modules.html +0 -123
- package/docs/overview.html +0 -1780
- package/docs/pipes/FHCurrencyPipe.html +0 -310
- package/docs/pipes/ReplaceLineBreaks.html +0 -210
- package/docs/pipes/SafePipe.html +0 -224
- package/docs/styles/bootstrap-card.css +0 -219
- package/docs/styles/bootstrap.min.css +0 -5
- package/docs/styles/compodoc.css +0 -985
- package/docs/styles/ionicons.min.css +0 -11
- package/docs/styles/laravel.css +0 -69
- package/docs/styles/material.css +0 -109
- package/docs/styles/original.css +0 -47
- package/docs/styles/postmark.css +0 -210
- package/docs/styles/prism.css +0 -267
- package/docs/styles/readthedocs.css +0 -98
- package/docs/styles/reset.css +0 -48
- package/docs/styles/stripe.css +0 -65
- package/docs/styles/style.css +0 -7
- package/docs/styles/tablesort.css +0 -33
- package/docs/styles/vagrant.css +0 -96
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
(function(compodoc) {
|
|
2
|
-
|
|
3
|
-
function LunrSearchEngine() {
|
|
4
|
-
this.index = undefined;
|
|
5
|
-
this.store = {};
|
|
6
|
-
this.name = 'LunrSearchEngine';
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
LunrSearchEngine.prototype.init = function() {
|
|
10
|
-
var that = this,
|
|
11
|
-
d = new promise.Promise();
|
|
12
|
-
|
|
13
|
-
that.index = lunr.Index.load(COMPODOC_SEARCH_INDEX.index);
|
|
14
|
-
that.store = COMPODOC_SEARCH_INDEX.store;
|
|
15
|
-
d.done();
|
|
16
|
-
|
|
17
|
-
return d;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
LunrSearchEngine.prototype.search = function(q, offset, length) {
|
|
21
|
-
var that = this,
|
|
22
|
-
results = [],
|
|
23
|
-
d = new promise.Promise();
|
|
24
|
-
|
|
25
|
-
if (this.index) {
|
|
26
|
-
results = $.map(this.index.search('*' + q + '*'), function(result) {
|
|
27
|
-
var doc = that.store[result.ref];
|
|
28
|
-
|
|
29
|
-
return {
|
|
30
|
-
title: doc.title,
|
|
31
|
-
url: doc.url,
|
|
32
|
-
body: doc.summary || doc.body
|
|
33
|
-
};
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
d.done({
|
|
38
|
-
query: q,
|
|
39
|
-
results: results.slice(0, length),
|
|
40
|
-
count: results.length
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
return d;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
compodoc.addEventListener(compodoc.EVENTS.READY, function(event) {
|
|
47
|
-
var engine = new LunrSearchEngine(),
|
|
48
|
-
initialized = false;
|
|
49
|
-
|
|
50
|
-
function query(q, offset, length) {
|
|
51
|
-
if (!initialized) throw new Error('Search has not been initialized');
|
|
52
|
-
return engine.search(q, offset, length);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
compodoc.search = {
|
|
56
|
-
query: query
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
engine.init()
|
|
60
|
-
.then(function() {
|
|
61
|
-
initialized = true;
|
|
62
|
-
compodoc.dispatchEvent({
|
|
63
|
-
type: compodoc.EVENTS.SEARCH_READY
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
})(compodoc);
|
package/docs/js/search/search.js
DELETED
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
(function(compodoc) {
|
|
2
|
-
var MAX_RESULTS = 15,
|
|
3
|
-
MAX_DESCRIPTION_SIZE = 500,
|
|
4
|
-
|
|
5
|
-
usePushState = (typeof history.pushState !== 'undefined'),
|
|
6
|
-
|
|
7
|
-
// DOM Elements
|
|
8
|
-
$body = $('body'),
|
|
9
|
-
$searchResults,
|
|
10
|
-
$searchInput,
|
|
11
|
-
$searchList,
|
|
12
|
-
$searchTitle,
|
|
13
|
-
$searchResultsCount,
|
|
14
|
-
$searchQuery,
|
|
15
|
-
$mainContainer,
|
|
16
|
-
$xsMenu;
|
|
17
|
-
|
|
18
|
-
// Throttle search
|
|
19
|
-
function throttle(fn, wait) {
|
|
20
|
-
var timeout;
|
|
21
|
-
|
|
22
|
-
return function() {
|
|
23
|
-
var ctx = this, args = arguments;
|
|
24
|
-
if (!timeout) {
|
|
25
|
-
timeout = setTimeout(function() {
|
|
26
|
-
timeout = undefined;
|
|
27
|
-
fn.apply(ctx, args);
|
|
28
|
-
}, wait);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function displayResults(res) {
|
|
34
|
-
var noResults = res.count == 0;
|
|
35
|
-
var groups = {};
|
|
36
|
-
$searchResults.toggleClass('no-results', noResults);
|
|
37
|
-
|
|
38
|
-
// Clear old results
|
|
39
|
-
$searchList.empty();
|
|
40
|
-
|
|
41
|
-
// Display title for research
|
|
42
|
-
$searchResultsCount.text(res.count);
|
|
43
|
-
$searchQuery.text(res.query);
|
|
44
|
-
|
|
45
|
-
// Group result by context
|
|
46
|
-
res.results.forEach(function(res) {
|
|
47
|
-
var context = res.title.split(' - ')[0];
|
|
48
|
-
if (typeof groups[context] === 'undefined') {
|
|
49
|
-
groups[context] = {
|
|
50
|
-
results: [res]
|
|
51
|
-
}
|
|
52
|
-
} else {
|
|
53
|
-
groups[context].results.push(res)
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
var sortedGroups = Object.keys(groups).sort();
|
|
58
|
-
|
|
59
|
-
for (var i = 0; i < sortedGroups.length; i++) {
|
|
60
|
-
var property = sortedGroups[i];
|
|
61
|
-
|
|
62
|
-
var $li = $('<li>', {
|
|
63
|
-
'class': 'search-results-group'
|
|
64
|
-
});
|
|
65
|
-
var finalPropertyLabel = '';
|
|
66
|
-
var propertyLabels = property.split('-');
|
|
67
|
-
|
|
68
|
-
if (propertyLabels.length === 2 && propertyLabels[0] !== 'miscellaneous' && propertyLabels[0] !== 'additional') {
|
|
69
|
-
finalPropertyLabel = propertyLabels[0].charAt(0).toUpperCase() + propertyLabels[0].substring(1) + ' - ' + propertyLabels[1].charAt(0).toUpperCase() + propertyLabels[1].substring(1) + ' (' + groups[property].results.length + ')';
|
|
70
|
-
} else if (propertyLabels[0] === 'additional') {
|
|
71
|
-
finalPropertyLabel = 'Additional pages' + ' (' + groups[property].results.length + ')'
|
|
72
|
-
} else {
|
|
73
|
-
finalPropertyLabel = propertyLabels[0].charAt(0).toUpperCase() + propertyLabels[0].substring(1) + ' (' + groups[property].results.length + ')'
|
|
74
|
-
}
|
|
75
|
-
var $groupTitle = $('<h3>', {
|
|
76
|
-
'text': finalPropertyLabel
|
|
77
|
-
});
|
|
78
|
-
$groupTitle.appendTo($li);
|
|
79
|
-
|
|
80
|
-
var $ulResults = $('<ul>', {
|
|
81
|
-
'class': 'search-results-list'
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
groups[property].results.forEach(function(res) {
|
|
85
|
-
var link = '';
|
|
86
|
-
var $liResult = $('<li>', {
|
|
87
|
-
'class': 'search-results-item'
|
|
88
|
-
});
|
|
89
|
-
switch (COMPODOC_CURRENT_PAGE_DEPTH) {
|
|
90
|
-
case 0:
|
|
91
|
-
link = './';
|
|
92
|
-
break;
|
|
93
|
-
case 1:
|
|
94
|
-
case 2:
|
|
95
|
-
case 3:
|
|
96
|
-
case 4:
|
|
97
|
-
case 5:
|
|
98
|
-
link = '../'.repeat(COMPODOC_CURRENT_PAGE_DEPTH);
|
|
99
|
-
break;
|
|
100
|
-
};
|
|
101
|
-
var finalResLabel = res.title.split(' - ')[1].charAt(0).toUpperCase() + res.title.split(' - ')[1].substring(1);
|
|
102
|
-
var $link = $('<a>', {
|
|
103
|
-
'href': link + res.url,
|
|
104
|
-
'text': finalResLabel
|
|
105
|
-
});
|
|
106
|
-
$link.appendTo($liResult);
|
|
107
|
-
$liResult.appendTo($ulResults);
|
|
108
|
-
});
|
|
109
|
-
$ulResults.appendTo($li);
|
|
110
|
-
|
|
111
|
-
$li.appendTo($searchList);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function launchSearch(q) {
|
|
116
|
-
$body.addClass('with-search');
|
|
117
|
-
|
|
118
|
-
if ($xsMenu.css('display') === 'block') {
|
|
119
|
-
$mainContainer.css('height', 'calc(100% - 100px)');
|
|
120
|
-
$mainContainer.css('margin-top', '100px');
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
throttle(compodoc.search.query(q, 0, MAX_RESULTS)
|
|
124
|
-
.then(function(results) {
|
|
125
|
-
displayResults(results);
|
|
126
|
-
}), 1000);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
function closeSearch() {
|
|
130
|
-
$body.removeClass('with-search');
|
|
131
|
-
if ($xsMenu.css('display') === 'block') {
|
|
132
|
-
$mainContainer.css('height', 'calc(100% - 50px)');
|
|
133
|
-
$mainContainer.css('margin-top', '50px');
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
function bindMenuButton() {
|
|
138
|
-
document.getElementById('btn-menu').addEventListener('click', function() {
|
|
139
|
-
if ($xsMenu.css('display') === 'none') {
|
|
140
|
-
$body.removeClass('with-search');
|
|
141
|
-
$mainContainer.css('height', 'calc(100% - 50px)');
|
|
142
|
-
$mainContainer.css('margin-top', '50px');
|
|
143
|
-
}
|
|
144
|
-
$.each($searchInputs, function(index, item){
|
|
145
|
-
var item = $(item);
|
|
146
|
-
item.val('');
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function bindSearch() {
|
|
152
|
-
// Bind DOM
|
|
153
|
-
$searchInputs = $('#book-search-input input');
|
|
154
|
-
|
|
155
|
-
$searchResults = $('.search-results');
|
|
156
|
-
$searchList = $searchResults.find('.search-results-list');
|
|
157
|
-
$searchTitle = $searchResults.find('.search-results-title');
|
|
158
|
-
$searchResultsCount = $searchTitle.find('.search-results-count');
|
|
159
|
-
$searchQuery = $searchTitle.find('.search-query');
|
|
160
|
-
$mainContainer = $('.container-fluid');
|
|
161
|
-
$xsMenu = $('.xs-menu');
|
|
162
|
-
|
|
163
|
-
// Launch query based on input content
|
|
164
|
-
function handleUpdate(item) {
|
|
165
|
-
var q = item.val();
|
|
166
|
-
|
|
167
|
-
if (q.length == 0) {
|
|
168
|
-
closeSearch();
|
|
169
|
-
window.location.href = window.location.href.replace(window.location.search, '');
|
|
170
|
-
} else {
|
|
171
|
-
launchSearch(q);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// Detect true content change in search input
|
|
176
|
-
var propertyChangeUnbound = false;
|
|
177
|
-
|
|
178
|
-
$.each($searchInputs, function(index, item){
|
|
179
|
-
var item = $(item);
|
|
180
|
-
// HTML5 (IE9 & others)
|
|
181
|
-
item.on('input', function(e) {
|
|
182
|
-
// Unbind propertychange event for IE9+
|
|
183
|
-
if (!propertyChangeUnbound) {
|
|
184
|
-
$(this).unbind('propertychange');
|
|
185
|
-
propertyChangeUnbound = true;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
handleUpdate($(this));
|
|
189
|
-
});
|
|
190
|
-
// Workaround for IE < 9
|
|
191
|
-
item.on('propertychange', function(e) {
|
|
192
|
-
if (e.originalEvent.propertyName == 'value') {
|
|
193
|
-
handleUpdate($(this));
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
// Push to history on blur
|
|
197
|
-
item.on('blur', function(e) {
|
|
198
|
-
// Update history state
|
|
199
|
-
if (usePushState) {
|
|
200
|
-
var uri = updateQueryString('q', $(this).val());
|
|
201
|
-
if ($(this).val() !== '') {
|
|
202
|
-
history.pushState({ path: uri }, null, uri);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
function launchSearchFromQueryString() {
|
|
210
|
-
var q = getParameterByName('q');
|
|
211
|
-
if (q && q.length > 0) {
|
|
212
|
-
// Update search inputs
|
|
213
|
-
$.each($searchInputs, function(index, item){
|
|
214
|
-
var item = $(item);
|
|
215
|
-
item.val(q)
|
|
216
|
-
});
|
|
217
|
-
// Launch search
|
|
218
|
-
launchSearch(q);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
compodoc.addEventListener(compodoc.EVENTS.SEARCH_READY, function(event) {
|
|
223
|
-
bindSearch();
|
|
224
|
-
|
|
225
|
-
bindMenuButton();
|
|
226
|
-
|
|
227
|
-
launchSearchFromQueryString();
|
|
228
|
-
});
|
|
229
|
-
|
|
230
|
-
function getParameterByName(name) {
|
|
231
|
-
var url = window.location.href;
|
|
232
|
-
name = name.replace(/[\[\]]/g, '\\$&');
|
|
233
|
-
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)', 'i'),
|
|
234
|
-
results = regex.exec(url);
|
|
235
|
-
if (!results) return null;
|
|
236
|
-
if (!results[2]) return '';
|
|
237
|
-
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
function updateQueryString(key, value) {
|
|
241
|
-
value = encodeURIComponent(value);
|
|
242
|
-
|
|
243
|
-
var url = window.location.href;
|
|
244
|
-
var re = new RegExp('([?&])' + key + '=.*?(&|#|$)(.*)', 'gi'),
|
|
245
|
-
hash;
|
|
246
|
-
|
|
247
|
-
if (re.test(url)) {
|
|
248
|
-
if (typeof value !== 'undefined' && value !== null)
|
|
249
|
-
return url.replace(re, '$1' + key + '=' + value + '$2$3');
|
|
250
|
-
else {
|
|
251
|
-
hash = url.split('#');
|
|
252
|
-
url = hash[0].replace(re, '$1$3').replace(/(&|\?)$/, '');
|
|
253
|
-
if (typeof hash[1] !== 'undefined' && hash[1] !== null)
|
|
254
|
-
url += '#' + hash[1];
|
|
255
|
-
return url;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
if (typeof value !== 'undefined' && value !== null) {
|
|
260
|
-
var separator = url.indexOf('?') !== -1 ? '&' : '?';
|
|
261
|
-
hash = url.split('#');
|
|
262
|
-
url = hash[0] + separator + key + '=' + value;
|
|
263
|
-
if (typeof hash[1] !== 'undefined' && hash[1] !== null)
|
|
264
|
-
url += '#' + hash[1];
|
|
265
|
-
return url;
|
|
266
|
-
}
|
|
267
|
-
else
|
|
268
|
-
return url;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
})(compodoc);
|