@fluxhub/fluxhub-lib 1.0.6 → 1.0.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.
Files changed (169) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +12 -12
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/docs/classes/FHUtility.html +3176 -0
  6. package/docs/classes/dati_aggiuntivi.html +6654 -0
  7. package/docs/classes/dt.html +1091 -0
  8. package/docs/classes/wkfapp.html +3007 -0
  9. package/docs/components/ApprovaGridComponent.html +1433 -0
  10. package/docs/components/ComboBoxEditor.html +1704 -0
  11. package/docs/components/CurrencyComponent.html +1148 -0
  12. package/docs/components/DateComponent.html +1611 -0
  13. package/docs/components/DtPick.html +1793 -0
  14. package/docs/components/FHAutoCompleteComponent.html +2601 -0
  15. package/docs/components/FHComboboxComponent.html +2390 -0
  16. package/docs/components/FHConfirmComponent.html +1354 -0
  17. package/docs/components/FHCurrencyFieldComponent.html +2021 -0
  18. package/docs/components/FHDatePickerComponent.html +2033 -0
  19. package/docs/components/FHGridComponent.html +5734 -0
  20. package/docs/components/FHListComponent.html +2300 -0
  21. package/docs/components/FHListPick.html +1422 -0
  22. package/docs/components/FHLogPanelComponent.html +978 -0
  23. package/docs/components/FHMdReader.html +1130 -0
  24. package/docs/components/FHNumericFieldComponent.html +2025 -0
  25. package/docs/components/FHPickListComponent.html +2321 -0
  26. package/docs/components/FHRichText.html +1689 -0
  27. package/docs/components/FHTimePickerComponent.html +2395 -0
  28. package/docs/components/FHUploadComponent.html +2161 -0
  29. package/docs/components/FHUploadPanelComponent.html +1844 -0
  30. package/docs/components/FHUserFieldComponent.html +1832 -0
  31. package/docs/components/FHUserPickerComponent.html +2065 -0
  32. package/docs/components/FHWinComboSelect.html +1352 -0
  33. package/docs/components/FSInput.html +1097 -0
  34. package/docs/components/FSResult.html +1087 -0
  35. package/docs/components/NumericEditorComponent.html +1396 -0
  36. package/docs/components/QGParam.html +1262 -0
  37. package/docs/components/QGResult.html +1116 -0
  38. package/docs/components/QParam.html +1131 -0
  39. package/docs/components/QResult.html +1087 -0
  40. package/docs/components/TextAreaEditor.html +1584 -0
  41. package/docs/components/WinAskNumberComponent.html +1462 -0
  42. package/docs/components/WinAskTextBigComponent.html +1383 -0
  43. package/docs/components/WinAskTextComponent.html +1424 -0
  44. package/docs/components/WinOutputComponent.html +1388 -0
  45. package/docs/components/WinWait.html +1338 -0
  46. package/docs/components/win_assegna.html +1473 -0
  47. package/docs/components/win_commenti.html +2221 -0
  48. package/docs/components/win_commento_sel_notif.html +1361 -0
  49. package/docs/components/win_conferma.html +1479 -0
  50. package/docs/components/win_grid_help.html +1213 -0
  51. package/docs/components/win_info_doc.html +1458 -0
  52. package/docs/components/win_log.html +2232 -0
  53. package/docs/components/win_mappa.html +1670 -0
  54. package/docs/components/win_recupera_doc.html +1470 -0
  55. package/docs/components/win_riassegna_select_level.html +1519 -0
  56. package/docs/components/win_riassegna_select_user.html +1477 -0
  57. package/docs/components/win_salva_annulla.html +1224 -0
  58. package/docs/components/win_select_canale.html +1341 -0
  59. package/docs/components/win_select_level.html +1504 -0
  60. package/docs/components/win_time_slider.html +1374 -0
  61. package/docs/components/win_uploads.html +2132 -0
  62. package/docs/coverage.html +2177 -0
  63. package/docs/dependencies.html +989 -0
  64. package/docs/directives/DecimalMask.html +1102 -0
  65. package/docs/directives/FHCurrencyFormatterDirective.html +1110 -0
  66. package/docs/fonts/FontAwesome.otf +0 -0
  67. package/docs/fonts/fontawesome-webfont.eot +0 -0
  68. package/docs/fonts/fontawesome-webfont.svg +685 -0
  69. package/docs/fonts/fontawesome-webfont.ttf +0 -0
  70. package/docs/fonts/fontawesome-webfont.woff +0 -0
  71. package/docs/fonts/fontawesome-webfont.woff2 +0 -0
  72. package/docs/fonts/roboto-v15-latin-300.eot +0 -0
  73. package/docs/fonts/roboto-v15-latin-300.svg +314 -0
  74. package/docs/fonts/roboto-v15-latin-300.ttf +0 -0
  75. package/docs/fonts/roboto-v15-latin-300.woff +0 -0
  76. package/docs/fonts/roboto-v15-latin-300.woff2 +0 -0
  77. package/docs/fonts/roboto-v15-latin-700.eot +0 -0
  78. package/docs/fonts/roboto-v15-latin-700.svg +310 -0
  79. package/docs/fonts/roboto-v15-latin-700.ttf +0 -0
  80. package/docs/fonts/roboto-v15-latin-700.woff +0 -0
  81. package/docs/fonts/roboto-v15-latin-700.woff2 +0 -0
  82. package/docs/fonts/roboto-v15-latin-regular.eot +0 -0
  83. package/docs/fonts/roboto-v15-latin-regular.svg +308 -0
  84. package/docs/fonts/roboto-v15-latin-regular.ttf +0 -0
  85. package/docs/fonts/roboto-v15-latin-regular.woff +0 -0
  86. package/docs/fonts/roboto-v15-latin-regular.woff2 +0 -0
  87. package/docs/graph/dependencies.svg +1294 -0
  88. package/docs/images/compodoc-vectorise-inverted.svg +201 -0
  89. package/docs/images/compodoc-vectorise.svg +201 -0
  90. package/docs/images/coverage-badge.svg +9 -0
  91. package/docs/images/favicon.ico +0 -0
  92. package/docs/index.html +870 -0
  93. package/docs/injectables/AppMakerService.html +1187 -0
  94. package/docs/injectables/AppService.html +1981 -0
  95. package/docs/injectables/AuthenticationService.html +1659 -0
  96. package/docs/injectables/FHGuard.html +1382 -0
  97. package/docs/injectables/FileService.html +1154 -0
  98. package/docs/injectables/GridService.html +1187 -0
  99. package/docs/injectables/OdbcService.html +1187 -0
  100. package/docs/injectables/QueryService.html +1279 -0
  101. package/docs/injectables/UtilityService.html +3170 -0
  102. package/docs/injectables/WkfService.html +1187 -0
  103. package/docs/js/compodoc.js +14 -0
  104. package/docs/js/libs/EventDispatcher.js +5 -0
  105. package/docs/js/libs/bootstrap-native.js +2 -0
  106. package/docs/js/libs/d3.v3.min.js +2 -0
  107. package/docs/js/libs/deep-iterator.js +2 -0
  108. package/docs/js/libs/es6-shim.min.js +12 -0
  109. package/docs/js/libs/htmlparser.js +23 -0
  110. package/docs/js/libs/innersvg.js +9 -0
  111. package/docs/js/libs/prism.js +14 -0
  112. package/docs/js/libs/promise.min.js +6 -0
  113. package/docs/js/libs/svg-pan-zoom.min.js +3 -0
  114. package/docs/js/libs/tablesort.min.js +5 -0
  115. package/docs/js/libs/tablesort.number.min.js +5 -0
  116. package/docs/js/libs/vis.min.js +46 -0
  117. package/docs/js/libs/zepto.min.js +2 -0
  118. package/docs/js/menu.js +222 -0
  119. package/docs/js/routes.js +280 -0
  120. package/docs/js/search/lunr.min.js +1 -0
  121. package/docs/js/search/search-lunr.js +67 -0
  122. package/docs/js/search/search.js +271 -0
  123. package/docs/js/search/search_index.js +4 -0
  124. package/docs/js/sourceCode.js +58 -0
  125. package/docs/js/svg-pan-zoom.controls.js +50 -0
  126. package/docs/js/tabs.js +21 -0
  127. package/docs/js/tree.js +147 -0
  128. package/docs/miscellaneous/typealiases.html +903 -0
  129. package/docs/miscellaneous/variables.html +1226 -0
  130. package/docs/modules/FluxhubLibModule/dependencies.svg +1294 -0
  131. package/docs/modules/FluxhubLibModule.html +2614 -0
  132. package/docs/modules/MaterialModule.html +888 -0
  133. package/docs/modules.html +894 -0
  134. package/docs/overview.html +2219 -0
  135. package/docs/pipes/EscapeHtmlPipe.html +963 -0
  136. package/docs/pipes/FHCurrencyPipe.html +1067 -0
  137. package/docs/pipes/ReplaceLineBreaks.html +967 -0
  138. package/docs/styles/bootstrap-card.css +219 -0
  139. package/docs/styles/bootstrap.min.css +6 -0
  140. package/docs/styles/compodoc.css +896 -0
  141. package/docs/styles/font-awesome.min.css +4 -0
  142. package/docs/styles/laravel.css +69 -0
  143. package/docs/styles/material.css +109 -0
  144. package/docs/styles/original.css +47 -0
  145. package/docs/styles/postmark.css +210 -0
  146. package/docs/styles/prism.css +268 -0
  147. package/docs/styles/readthedocs.css +98 -0
  148. package/docs/styles/reset.css +48 -0
  149. package/docs/styles/stripe.css +65 -0
  150. package/docs/styles/style.css +7 -0
  151. package/docs/styles/tablesort.css +33 -0
  152. package/docs/styles/vagrant.css +96 -0
  153. package/esm2015/lib/controls/fhuploadpanel.js +62 -48
  154. package/esm2015/lib/fluxhub-lib.module.js +1 -1
  155. package/esm2015/lib/services/app_maker.service.js +1 -2
  156. package/esm2015/lib/services/dofile.service.js +1 -2
  157. package/esm2015/lib/services/doquery.service.js +2 -2
  158. package/esm5/lib/controls/fhuploadpanel.js +11 -11
  159. package/esm5/lib/fluxhub-lib.module.js +1 -1
  160. package/esm5/lib/services/app_maker.service.js +1 -2
  161. package/esm5/lib/services/dofile.service.js +1 -2
  162. package/esm5/lib/services/doquery.service.js +2 -2
  163. package/fesm2015/fluxhub-fluxhub-lib.js +65 -51
  164. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  165. package/fesm5/fluxhub-fluxhub-lib.js +12 -12
  166. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  167. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  168. package/lib/controls/fhuploadpanel.d.ts +1 -2
  169. package/package.json +1 -1
@@ -0,0 +1,67 @@
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);
@@ -0,0 +1,271 @@
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);