less-rails-semantic_ui 2.1.8.2 → 2.2.1.0
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.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE.md +15 -0
- data/assets/fonts/semantic_ui/themes/default/assets/fonts/icons.eot +0 -0
- data/assets/fonts/semantic_ui/themes/default/assets/fonts/icons.svg +146 -26
- data/assets/fonts/semantic_ui/themes/default/assets/fonts/icons.ttf +0 -0
- data/assets/fonts/semantic_ui/themes/default/assets/fonts/icons.woff +0 -0
- data/assets/fonts/semantic_ui/themes/default/assets/fonts/icons.woff2 +0 -0
- data/assets/javascripts/semantic_ui/definitions/behaviors/api.js +41 -16
- data/assets/javascripts/semantic_ui/definitions/behaviors/colorize.js +233 -227
- data/assets/javascripts/semantic_ui/definitions/behaviors/form.js +58 -23
- data/assets/javascripts/semantic_ui/definitions/behaviors/state.js +20 -7
- data/assets/javascripts/semantic_ui/definitions/behaviors/visibility.js +89 -22
- data/assets/javascripts/semantic_ui/definitions/behaviors/visit.js +13 -5
- data/assets/javascripts/semantic_ui/definitions/globals/site.js +2 -2
- data/assets/javascripts/semantic_ui/definitions/modules/accordion.js +20 -6
- data/assets/javascripts/semantic_ui/definitions/modules/checkbox.js +31 -9
- data/assets/javascripts/semantic_ui/definitions/modules/dimmer.js +27 -9
- data/assets/javascripts/semantic_ui/definitions/modules/dropdown.js +482 -207
- data/assets/javascripts/semantic_ui/definitions/modules/embed.js +50 -13
- data/assets/javascripts/semantic_ui/definitions/modules/modal.js +28 -13
- data/assets/javascripts/semantic_ui/definitions/modules/nag.js +28 -7
- data/assets/javascripts/semantic_ui/definitions/modules/popup.js +136 -76
- data/assets/javascripts/semantic_ui/definitions/modules/progress.js +177 -62
- data/assets/javascripts/semantic_ui/definitions/modules/rating.js +41 -8
- data/assets/javascripts/semantic_ui/definitions/modules/search.js +109 -56
- data/assets/javascripts/semantic_ui/definitions/modules/shape.js +52 -19
- data/assets/javascripts/semantic_ui/definitions/modules/sidebar.js +21 -7
- data/assets/javascripts/semantic_ui/definitions/modules/sticky.js +48 -19
- data/assets/javascripts/semantic_ui/definitions/modules/tab.js +57 -27
- data/assets/javascripts/semantic_ui/definitions/modules/transition.js +24 -8
- data/assets/stylesheets/semantic_ui/definitions/collections/breadcrumb.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/collections/form.less +42 -36
- data/assets/stylesheets/semantic_ui/definitions/collections/grid.less +12 -5
- data/assets/stylesheets/semantic_ui/definitions/collections/menu.less +50 -6
- data/assets/stylesheets/semantic_ui/definitions/collections/message.less +20 -1
- data/assets/stylesheets/semantic_ui/definitions/collections/table.less +16 -3
- data/assets/stylesheets/semantic_ui/definitions/elements/button.less +184 -40
- data/assets/stylesheets/semantic_ui/definitions/elements/container.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/elements/divider.less +1 -3
- data/assets/stylesheets/semantic_ui/definitions/elements/flag.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/elements/header.less +2 -2
- data/assets/stylesheets/semantic_ui/definitions/elements/icon.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/elements/image.less +6 -1
- data/assets/stylesheets/semantic_ui/definitions/elements/input.less +14 -14
- data/assets/stylesheets/semantic_ui/definitions/elements/label.less +3 -3
- data/assets/stylesheets/semantic_ui/definitions/elements/list.less +29 -16
- data/assets/stylesheets/semantic_ui/definitions/elements/loader.less +72 -9
- data/assets/stylesheets/semantic_ui/definitions/elements/rail.less +21 -2
- data/assets/stylesheets/semantic_ui/definitions/elements/reveal.less +2 -3
- data/assets/stylesheets/semantic_ui/definitions/elements/segment.less +44 -3
- data/assets/stylesheets/semantic_ui/definitions/elements/step.less +28 -8
- data/assets/stylesheets/semantic_ui/definitions/globals/reset.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/globals/site.less +0 -1
- data/assets/stylesheets/semantic_ui/definitions/modules/accordion.less +0 -1
- data/assets/stylesheets/semantic_ui/definitions/modules/checkbox.less +9 -10
- data/assets/stylesheets/semantic_ui/definitions/modules/dimmer.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/modules/dropdown.less +39 -21
- data/assets/stylesheets/semantic_ui/definitions/modules/embed.less +0 -1
- data/assets/stylesheets/semantic_ui/definitions/modules/modal.less +0 -1
- data/assets/stylesheets/semantic_ui/definitions/modules/nag.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/modules/popup.less +344 -2
- data/assets/stylesheets/semantic_ui/definitions/modules/progress.less +0 -1
- data/assets/stylesheets/semantic_ui/definitions/modules/rating.less +0 -1
- data/assets/stylesheets/semantic_ui/definitions/modules/search.less +1 -1
- data/assets/stylesheets/semantic_ui/definitions/modules/shape.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/modules/sidebar.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/modules/sticky.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/modules/tab.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/modules/transition.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/views/card.less +20 -2
- data/assets/stylesheets/semantic_ui/definitions/views/comment.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/views/feed.less +0 -1
- data/assets/stylesheets/semantic_ui/definitions/views/item.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/views/statistic.less +18 -19
- data/assets/stylesheets/semantic_ui/themes/basic/globals/reset.overrides +1 -1
- data/assets/stylesheets/semantic_ui/themes/default/collections/form.variables +4 -5
- data/assets/stylesheets/semantic_ui/themes/default/collections/menu.variables +13 -0
- data/assets/stylesheets/semantic_ui/themes/default/collections/message.variables +47 -1
- data/assets/stylesheets/semantic_ui/themes/default/collections/table.variables +7 -2
- data/assets/stylesheets/semantic_ui/themes/default/elements/button.variables +14 -0
- data/assets/stylesheets/semantic_ui/themes/default/elements/icon.overrides +263 -76
- data/assets/stylesheets/semantic_ui/themes/default/elements/icon.variables +3 -1
- data/assets/stylesheets/semantic_ui/themes/default/elements/input.variables +2 -4
- data/assets/stylesheets/semantic_ui/themes/default/elements/list.variables +2 -1
- data/assets/stylesheets/semantic_ui/themes/default/elements/loader.variables +17 -5
- data/assets/stylesheets/semantic_ui/themes/default/elements/rail.variables +2 -2
- data/assets/stylesheets/semantic_ui/themes/default/elements/step.variables +1 -1
- data/assets/stylesheets/semantic_ui/themes/default/globals/reset.overrides +1 -6
- data/assets/stylesheets/semantic_ui/themes/default/globals/site.variables +170 -46
- data/assets/stylesheets/semantic_ui/themes/default/modules/dropdown.variables +15 -12
- data/assets/stylesheets/semantic_ui/themes/default/modules/popup.variables +41 -3
- data/assets/stylesheets/semantic_ui/themes/default/modules/rating.overrides +2 -2
- data/assets/stylesheets/semantic_ui/themes/default/modules/sticky.variables +1 -1
- data/assets/stylesheets/semantic_ui/themes/default/views/card.variables +11 -0
- data/assets/stylesheets/semantic_ui/themes/material/collections/menu.variables +1 -1
- data/lib/less/rails/semantic_ui/version.rb +1 -1
- metadata +4 -3
@@ -3,7 +3,6 @@
|
|
3
3
|
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
6
|
-
* Copyright 2015 Contributors
|
7
6
|
* Released under the MIT license
|
8
7
|
* http://opensource.org/licenses/MIT
|
9
8
|
*
|
@@ -13,6 +12,13 @@
|
|
13
12
|
|
14
13
|
"use strict";
|
15
14
|
|
15
|
+
window = (typeof window != 'undefined' && window.Math == Math)
|
16
|
+
? window
|
17
|
+
: (typeof self != 'undefined' && self.Math == Math)
|
18
|
+
? self
|
19
|
+
: Function('return this')()
|
20
|
+
;
|
21
|
+
|
16
22
|
$.fn.rating = function(parameters) {
|
17
23
|
var
|
18
24
|
$allModules = $(this),
|
@@ -48,6 +54,7 @@ $.fn.rating = function(parameters) {
|
|
48
54
|
$module = $(this),
|
49
55
|
$icon = $module.find(selector.icon),
|
50
56
|
|
57
|
+
initialLoad,
|
51
58
|
module
|
52
59
|
;
|
53
60
|
|
@@ -66,7 +73,9 @@ $.fn.rating = function(parameters) {
|
|
66
73
|
else {
|
67
74
|
module.disable();
|
68
75
|
}
|
76
|
+
module.set.initialLoad();
|
69
77
|
module.set.rating( module.get.initialRating() );
|
78
|
+
module.remove.initialLoad();
|
70
79
|
module.instantiate();
|
71
80
|
},
|
72
81
|
|
@@ -170,6 +179,9 @@ $.fn.rating = function(parameters) {
|
|
170
179
|
$module
|
171
180
|
.off(eventNamespace)
|
172
181
|
;
|
182
|
+
},
|
183
|
+
initialLoad: function() {
|
184
|
+
initialLoad = false;
|
173
185
|
}
|
174
186
|
},
|
175
187
|
|
@@ -189,6 +201,12 @@ $.fn.rating = function(parameters) {
|
|
189
201
|
;
|
190
202
|
},
|
191
203
|
|
204
|
+
is: {
|
205
|
+
initialLoad: function() {
|
206
|
+
return initialLoad;
|
207
|
+
}
|
208
|
+
},
|
209
|
+
|
192
210
|
get: {
|
193
211
|
initialRating: function() {
|
194
212
|
if($module.data(metadata.rating) !== undefined) {
|
@@ -232,11 +250,16 @@ $.fn.rating = function(parameters) {
|
|
232
250
|
module.verbose('Setting current rating to', rating);
|
233
251
|
$activeIcon
|
234
252
|
.prevAll()
|
235
|
-
.
|
253
|
+
.addBack()
|
236
254
|
.addClass(className.active)
|
237
255
|
;
|
238
256
|
}
|
239
|
-
|
257
|
+
if(!module.is.initialLoad()) {
|
258
|
+
settings.onRate.call(element, rating);
|
259
|
+
}
|
260
|
+
},
|
261
|
+
initialLoad: function() {
|
262
|
+
initialLoad = true;
|
240
263
|
}
|
241
264
|
},
|
242
265
|
|
@@ -246,7 +269,12 @@ $.fn.rating = function(parameters) {
|
|
246
269
|
$.extend(true, settings, name);
|
247
270
|
}
|
248
271
|
else if(value !== undefined) {
|
249
|
-
settings[name]
|
272
|
+
if($.isPlainObject(settings[name])) {
|
273
|
+
$.extend(true, settings[name], value);
|
274
|
+
}
|
275
|
+
else {
|
276
|
+
settings[name] = value;
|
277
|
+
}
|
250
278
|
}
|
251
279
|
else {
|
252
280
|
return settings[name];
|
@@ -264,7 +292,7 @@ $.fn.rating = function(parameters) {
|
|
264
292
|
}
|
265
293
|
},
|
266
294
|
debug: function() {
|
267
|
-
if(settings.debug) {
|
295
|
+
if(!settings.silent && settings.debug) {
|
268
296
|
if(settings.performance) {
|
269
297
|
module.performance.log(arguments);
|
270
298
|
}
|
@@ -275,7 +303,7 @@ $.fn.rating = function(parameters) {
|
|
275
303
|
}
|
276
304
|
},
|
277
305
|
verbose: function() {
|
278
|
-
if(settings.verbose && settings.debug) {
|
306
|
+
if(!settings.silent && settings.verbose && settings.debug) {
|
279
307
|
if(settings.performance) {
|
280
308
|
module.performance.log(arguments);
|
281
309
|
}
|
@@ -286,8 +314,10 @@ $.fn.rating = function(parameters) {
|
|
286
314
|
}
|
287
315
|
},
|
288
316
|
error: function() {
|
289
|
-
|
290
|
-
|
317
|
+
if(!settings.silent) {
|
318
|
+
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
|
319
|
+
module.error.apply(console, arguments);
|
320
|
+
}
|
291
321
|
},
|
292
322
|
performance: {
|
293
323
|
log: function(message) {
|
@@ -423,6 +453,7 @@ $.fn.rating.settings = {
|
|
423
453
|
name : 'Rating',
|
424
454
|
namespace : 'rating',
|
425
455
|
|
456
|
+
slent : false,
|
426
457
|
debug : false,
|
427
458
|
verbose : false,
|
428
459
|
performance : true,
|
@@ -432,6 +463,8 @@ $.fn.rating.settings = {
|
|
432
463
|
maxRating : 4,
|
433
464
|
clearable : 'auto',
|
434
465
|
|
466
|
+
fireOnInit : false,
|
467
|
+
|
435
468
|
onRate : function(rating){},
|
436
469
|
|
437
470
|
error : {
|
@@ -3,7 +3,6 @@
|
|
3
3
|
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
6
|
-
* Copyright 2015 Contributors
|
7
6
|
* Released under the MIT license
|
8
7
|
* http://opensource.org/licenses/MIT
|
9
8
|
*
|
@@ -13,6 +12,13 @@
|
|
13
12
|
|
14
13
|
"use strict";
|
15
14
|
|
15
|
+
window = (typeof window != 'undefined' && window.Math == Math)
|
16
|
+
? window
|
17
|
+
: (typeof self != 'undefined' && self.Math == Math)
|
18
|
+
? self
|
19
|
+
: Function('return this')()
|
20
|
+
;
|
21
|
+
|
16
22
|
$.fn.search = function(parameters) {
|
17
23
|
var
|
18
24
|
$allModules = $(this),
|
@@ -54,6 +60,8 @@ $.fn.search = function(parameters) {
|
|
54
60
|
element = this,
|
55
61
|
instance = $module.data(moduleNamespace),
|
56
62
|
|
63
|
+
disabledBubbled = false,
|
64
|
+
|
57
65
|
module
|
58
66
|
;
|
59
67
|
|
@@ -82,6 +90,20 @@ $.fn.search = function(parameters) {
|
|
82
90
|
;
|
83
91
|
},
|
84
92
|
|
93
|
+
refresh: function() {
|
94
|
+
module.debug('Refreshing selector cache');
|
95
|
+
$prompt = $module.find(selector.prompt);
|
96
|
+
$searchButton = $module.find(selector.searchButton);
|
97
|
+
$category = $module.find(selector.category);
|
98
|
+
$results = $module.find(selector.results);
|
99
|
+
$result = $module.find(selector.result);
|
100
|
+
},
|
101
|
+
|
102
|
+
refreshResults: function() {
|
103
|
+
$results = $module.find(selector.results);
|
104
|
+
$result = $module.find(selector.result);
|
105
|
+
},
|
106
|
+
|
85
107
|
bind: {
|
86
108
|
events: function() {
|
87
109
|
module.verbose('Binding events to search');
|
@@ -147,8 +169,13 @@ $.fn.search = function(parameters) {
|
|
147
169
|
if(module.resultsClicked) {
|
148
170
|
module.debug('Determining if user action caused search to close');
|
149
171
|
$module
|
150
|
-
.one('click', selector.results, function(event) {
|
151
|
-
if(
|
172
|
+
.one('click.close' + eventNamespace, selector.results, function(event) {
|
173
|
+
if(module.is.inMessage(event) || disabledBubbled) {
|
174
|
+
$prompt.focus();
|
175
|
+
return;
|
176
|
+
}
|
177
|
+
disabledBubbled = false;
|
178
|
+
if( !module.is.animating() && !module.is.hidden()) {
|
152
179
|
callback();
|
153
180
|
}
|
154
181
|
})
|
@@ -171,7 +198,9 @@ $.fn.search = function(parameters) {
|
|
171
198
|
var
|
172
199
|
$result = $(this),
|
173
200
|
$title = $result.find(selector.title).eq(0),
|
174
|
-
$link = $result.
|
201
|
+
$link = $result.is('a[href]')
|
202
|
+
? $result
|
203
|
+
: $result.find('a[href]').eq(0),
|
175
204
|
href = $link.attr('href') || false,
|
176
205
|
target = $link.attr('target') || false,
|
177
206
|
title = $title.html(),
|
@@ -186,6 +215,7 @@ $.fn.search = function(parameters) {
|
|
186
215
|
if( $.isFunction(settings.onSelect) ) {
|
187
216
|
if(settings.onSelect.call(element, result, results) === false) {
|
188
217
|
module.debug('Custom onSelect callback cancelled default select action');
|
218
|
+
disabledBubbled = true;
|
189
219
|
return;
|
190
220
|
}
|
191
221
|
}
|
@@ -286,18 +316,30 @@ $.fn.search = function(parameters) {
|
|
286
316
|
},
|
287
317
|
|
288
318
|
setup: {
|
289
|
-
api: function() {
|
319
|
+
api: function(searchTerm) {
|
290
320
|
var
|
291
321
|
apiSettings = {
|
292
|
-
debug
|
293
|
-
on
|
294
|
-
cache
|
295
|
-
action
|
296
|
-
|
322
|
+
debug : settings.debug,
|
323
|
+
on : false,
|
324
|
+
cache : true,
|
325
|
+
action : 'search',
|
326
|
+
urlData : {
|
327
|
+
query : searchTerm
|
328
|
+
},
|
329
|
+
onSuccess : function(response) {
|
330
|
+
module.parse.response.call(element, response, searchTerm);
|
331
|
+
},
|
332
|
+
onAbort : function(response) {
|
333
|
+
},
|
334
|
+
onFailure : function() {
|
335
|
+
module.displayMessage(error.serverError);
|
336
|
+
},
|
337
|
+
onError : module.error
|
297
338
|
},
|
298
339
|
searchHTML
|
299
340
|
;
|
300
|
-
|
341
|
+
$.extend(true, apiSettings, settings.apiSettings);
|
342
|
+
module.verbose('Setting up API request', apiSettings);
|
301
343
|
$module.api(apiSettings);
|
302
344
|
}
|
303
345
|
},
|
@@ -321,6 +363,9 @@ $.fn.search = function(parameters) {
|
|
321
363
|
hidden: function() {
|
322
364
|
return $results.hasClass(className.hidden);
|
323
365
|
},
|
366
|
+
inMessage: function(event) {
|
367
|
+
return (event.target && $(event.target).closest(selector.message).length > 0);
|
368
|
+
},
|
324
369
|
empty: function() {
|
325
370
|
return ($results.html() === '');
|
326
371
|
},
|
@@ -400,6 +445,13 @@ $.fn.search = function(parameters) {
|
|
400
445
|
},
|
401
446
|
},
|
402
447
|
|
448
|
+
select: {
|
449
|
+
firstResult: function() {
|
450
|
+
module.verbose('Selecting first result');
|
451
|
+
$result.first().addClass(className.active);
|
452
|
+
}
|
453
|
+
},
|
454
|
+
|
403
455
|
set: {
|
404
456
|
focus: function() {
|
405
457
|
$module.addClass(className.focus);
|
@@ -489,27 +541,11 @@ $.fn.search = function(parameters) {
|
|
489
541
|
});
|
490
542
|
},
|
491
543
|
remote: function(searchTerm) {
|
492
|
-
|
493
|
-
|
494
|
-
onSuccess : function(response) {
|
495
|
-
module.parse.response.call(element, response, searchTerm);
|
496
|
-
},
|
497
|
-
onFailure: function() {
|
498
|
-
module.displayMessage(error.serverError);
|
499
|
-
},
|
500
|
-
urlData: {
|
501
|
-
query: searchTerm
|
502
|
-
}
|
503
|
-
}
|
504
|
-
;
|
505
|
-
if( !$module.api('get request') ) {
|
506
|
-
module.setup.api();
|
544
|
+
if($module.api('is loading')) {
|
545
|
+
$module.api('abort');
|
507
546
|
}
|
508
|
-
|
509
|
-
module.debug('Executing search', apiSettings);
|
510
|
-
module.cancel.query();
|
547
|
+
module.setup.api(searchTerm);
|
511
548
|
$module
|
512
|
-
.api('setting', apiSettings)
|
513
549
|
.api('query')
|
514
550
|
;
|
515
551
|
},
|
@@ -790,12 +826,19 @@ $.fn.search = function(parameters) {
|
|
790
826
|
return false;
|
791
827
|
}
|
792
828
|
}
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
829
|
+
if(html) {
|
830
|
+
$results
|
831
|
+
.html(html)
|
832
|
+
;
|
833
|
+
module.refreshResults();
|
834
|
+
if(settings.selectFirstResult) {
|
835
|
+
module.select.firstResult();
|
836
|
+
}
|
797
837
|
module.showResults();
|
798
838
|
}
|
839
|
+
else {
|
840
|
+
module.hideResults();
|
841
|
+
}
|
799
842
|
},
|
800
843
|
|
801
844
|
showResults: function() {
|
@@ -873,7 +916,7 @@ $.fn.search = function(parameters) {
|
|
873
916
|
module.error(error.noTemplate, false);
|
874
917
|
}
|
875
918
|
}
|
876
|
-
else {
|
919
|
+
else if(settings.showNoResults) {
|
877
920
|
html = module.displayMessage(error.noResults, 'empty');
|
878
921
|
}
|
879
922
|
settings.onResults.call(element, response);
|
@@ -910,7 +953,7 @@ $.fn.search = function(parameters) {
|
|
910
953
|
}
|
911
954
|
},
|
912
955
|
debug: function() {
|
913
|
-
if(settings.debug) {
|
956
|
+
if(!settings.silent && settings.debug) {
|
914
957
|
if(settings.performance) {
|
915
958
|
module.performance.log(arguments);
|
916
959
|
}
|
@@ -921,7 +964,7 @@ $.fn.search = function(parameters) {
|
|
921
964
|
}
|
922
965
|
},
|
923
966
|
verbose: function() {
|
924
|
-
if(settings.verbose && settings.debug) {
|
967
|
+
if(!settings.silent && settings.verbose && settings.debug) {
|
925
968
|
if(settings.performance) {
|
926
969
|
module.performance.log(arguments);
|
927
970
|
}
|
@@ -932,8 +975,10 @@ $.fn.search = function(parameters) {
|
|
932
975
|
}
|
933
976
|
},
|
934
977
|
error: function() {
|
935
|
-
|
936
|
-
|
978
|
+
if(!settings.silent) {
|
979
|
+
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
|
980
|
+
module.error.apply(console, arguments);
|
981
|
+
}
|
937
982
|
},
|
938
983
|
performance: {
|
939
984
|
log: function(message) {
|
@@ -1067,51 +1112,58 @@ $.fn.search = function(parameters) {
|
|
1067
1112
|
|
1068
1113
|
$.fn.search.settings = {
|
1069
1114
|
|
1070
|
-
name
|
1071
|
-
namespace
|
1115
|
+
name : 'Search',
|
1116
|
+
namespace : 'search',
|
1072
1117
|
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1118
|
+
silent : false,
|
1119
|
+
debug : false,
|
1120
|
+
verbose : false,
|
1121
|
+
performance : true,
|
1076
1122
|
|
1077
|
-
type : 'standard',
|
1078
1123
|
// template to use (specified in settings.templates)
|
1124
|
+
type : 'standard',
|
1079
1125
|
|
1080
|
-
minCharacters : 1,
|
1081
1126
|
// minimum characters required to search
|
1127
|
+
minCharacters : 1,
|
1128
|
+
|
1129
|
+
// whether to select first result after searching automatically
|
1130
|
+
selectFirstResult : false,
|
1082
1131
|
|
1083
|
-
apiSettings : false,
|
1084
1132
|
// API config
|
1133
|
+
apiSettings : false,
|
1085
1134
|
|
1086
|
-
source : false,
|
1087
1135
|
// object to search
|
1136
|
+
source : false,
|
1088
1137
|
|
1138
|
+
// fields to search
|
1089
1139
|
searchFields : [
|
1090
1140
|
'title',
|
1091
1141
|
'description'
|
1092
1142
|
],
|
1093
|
-
// fields to search
|
1094
1143
|
|
1095
|
-
displayField : '',
|
1096
1144
|
// field to display in standard results template
|
1145
|
+
displayField : '',
|
1097
1146
|
|
1098
|
-
searchFullText : true,
|
1099
1147
|
// whether to include fuzzy results in local search
|
1148
|
+
searchFullText : true,
|
1100
1149
|
|
1101
|
-
automatic : true,
|
1102
1150
|
// whether to add events to prompt automatically
|
1151
|
+
automatic : true,
|
1103
1152
|
|
1104
|
-
hideDelay : 0,
|
1105
1153
|
// delay before hiding menu after blur
|
1154
|
+
hideDelay : 0,
|
1106
1155
|
|
1107
|
-
searchDelay : 200,
|
1108
1156
|
// delay before searching
|
1157
|
+
searchDelay : 200,
|
1109
1158
|
|
1110
|
-
maxResults : 7,
|
1111
1159
|
// maximum results returned from local
|
1160
|
+
maxResults : 7,
|
1112
1161
|
|
1113
|
-
cache : true,
|
1114
1162
|
// whether to store lookups in local cache
|
1163
|
+
cache : true,
|
1164
|
+
|
1165
|
+
// whether no results errors should be shown
|
1166
|
+
showNoResults : true,
|
1115
1167
|
|
1116
1168
|
// transition settings
|
1117
1169
|
transition : 'scale',
|
@@ -1181,6 +1233,7 @@ $.fn.search.settings = {
|
|
1181
1233
|
prompt : '.prompt',
|
1182
1234
|
searchButton : '.search.button',
|
1183
1235
|
results : '.results',
|
1236
|
+
message : '.results > .message',
|
1184
1237
|
category : '.category',
|
1185
1238
|
result : '.result',
|
1186
1239
|
title : '.title, .name'
|