fomantic-ui 2.9.1-beta.39 → 2.9.1-beta.40

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 (158) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +1 -1
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +1 -1
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +1 -1
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +2 -2
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +2 -2
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +1 -1
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +1 -1
  41. package/dist/components/feed.css +1 -1
  42. package/dist/components/feed.min.css +1 -1
  43. package/dist/components/flag.css +1 -1
  44. package/dist/components/flag.min.css +1 -1
  45. package/dist/components/flyout.css +9 -1
  46. package/dist/components/flyout.js +6 -3
  47. package/dist/components/flyout.min.css +2 -2
  48. package/dist/components/flyout.min.js +2 -2
  49. package/dist/components/form.css +1 -1
  50. package/dist/components/form.js +1 -1
  51. package/dist/components/form.min.css +1 -1
  52. package/dist/components/form.min.js +1 -1
  53. package/dist/components/grid.css +1 -1
  54. package/dist/components/grid.min.css +1 -1
  55. package/dist/components/header.css +1 -1
  56. package/dist/components/header.min.css +1 -1
  57. package/dist/components/icon.css +1 -1
  58. package/dist/components/icon.min.css +1 -1
  59. package/dist/components/image.css +1 -1
  60. package/dist/components/image.min.css +1 -1
  61. package/dist/components/input.css +1 -1
  62. package/dist/components/input.min.css +1 -1
  63. package/dist/components/item.css +1 -1
  64. package/dist/components/item.min.css +1 -1
  65. package/dist/components/label.css +1 -1
  66. package/dist/components/label.min.css +1 -1
  67. package/dist/components/list.css +1 -1
  68. package/dist/components/list.min.css +1 -1
  69. package/dist/components/loader.css +1 -1
  70. package/dist/components/loader.min.css +1 -1
  71. package/dist/components/message.css +1 -1
  72. package/dist/components/message.min.css +1 -1
  73. package/dist/components/modal.css +1 -1
  74. package/dist/components/modal.js +1 -1
  75. package/dist/components/modal.min.css +1 -1
  76. package/dist/components/modal.min.js +1 -1
  77. package/dist/components/nag.css +1 -1
  78. package/dist/components/nag.js +1 -1
  79. package/dist/components/nag.min.css +1 -1
  80. package/dist/components/nag.min.js +1 -1
  81. package/dist/components/placeholder.css +1 -1
  82. package/dist/components/placeholder.min.css +1 -1
  83. package/dist/components/popup.css +1 -1
  84. package/dist/components/popup.js +1 -1
  85. package/dist/components/popup.min.css +1 -1
  86. package/dist/components/popup.min.js +1 -1
  87. package/dist/components/progress.css +1 -1
  88. package/dist/components/progress.js +1 -1
  89. package/dist/components/progress.min.css +1 -1
  90. package/dist/components/progress.min.js +1 -1
  91. package/dist/components/rail.css +1 -1
  92. package/dist/components/rail.min.css +1 -1
  93. package/dist/components/rating.css +1 -1
  94. package/dist/components/rating.js +1 -1
  95. package/dist/components/rating.min.css +1 -1
  96. package/dist/components/rating.min.js +1 -1
  97. package/dist/components/reset.css +1 -1
  98. package/dist/components/reset.min.css +1 -1
  99. package/dist/components/reveal.css +1 -1
  100. package/dist/components/reveal.min.css +1 -1
  101. package/dist/components/search.css +1 -1
  102. package/dist/components/search.js +32 -5
  103. package/dist/components/search.min.css +1 -1
  104. package/dist/components/search.min.js +2 -2
  105. package/dist/components/segment.css +1 -1
  106. package/dist/components/segment.min.css +1 -1
  107. package/dist/components/shape.css +1 -1
  108. package/dist/components/shape.js +1 -1
  109. package/dist/components/shape.min.css +1 -1
  110. package/dist/components/shape.min.js +1 -1
  111. package/dist/components/sidebar.css +1 -1
  112. package/dist/components/sidebar.js +1 -1
  113. package/dist/components/sidebar.min.css +1 -1
  114. package/dist/components/sidebar.min.js +1 -1
  115. package/dist/components/site.css +1 -1
  116. package/dist/components/site.js +1 -1
  117. package/dist/components/site.min.css +1 -1
  118. package/dist/components/site.min.js +1 -1
  119. package/dist/components/slider.js +1 -1
  120. package/dist/components/slider.min.js +1 -1
  121. package/dist/components/state.js +1 -1
  122. package/dist/components/state.min.js +1 -1
  123. package/dist/components/statistic.css +1 -1
  124. package/dist/components/statistic.min.css +1 -1
  125. package/dist/components/step.css +1 -1
  126. package/dist/components/step.min.css +1 -1
  127. package/dist/components/sticky.css +1 -1
  128. package/dist/components/sticky.js +1 -1
  129. package/dist/components/sticky.min.css +1 -1
  130. package/dist/components/sticky.min.js +1 -1
  131. package/dist/components/tab.css +1 -1
  132. package/dist/components/tab.js +1 -1
  133. package/dist/components/tab.min.css +1 -1
  134. package/dist/components/tab.min.js +1 -1
  135. package/dist/components/table.css +1 -1
  136. package/dist/components/table.min.css +1 -1
  137. package/dist/components/text.css +1 -1
  138. package/dist/components/text.min.css +1 -1
  139. package/dist/components/toast.css +1 -1
  140. package/dist/components/toast.js +1 -1
  141. package/dist/components/toast.min.css +1 -1
  142. package/dist/components/toast.min.js +1 -1
  143. package/dist/components/transition.css +1 -1
  144. package/dist/components/transition.js +1 -1
  145. package/dist/components/transition.min.css +1 -1
  146. package/dist/components/transition.min.js +1 -1
  147. package/dist/components/visibility.js +1 -1
  148. package/dist/components/visibility.min.js +1 -1
  149. package/dist/semantic.css +60 -50
  150. package/dist/semantic.js +63 -33
  151. package/dist/semantic.min.css +2 -2
  152. package/dist/semantic.min.js +2 -2
  153. package/package.json +1 -1
  154. package/src/definitions/modules/dropdown.js +1 -1
  155. package/src/definitions/modules/flyout.js +5 -2
  156. package/src/definitions/modules/flyout.less +8 -0
  157. package/src/definitions/modules/search.js +31 -4
  158. package/src/themes/default/modules/flyout.variables +2 -0
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.39+199f841
2
+ * # Fomantic UI - 2.9.1-beta.40+0bffb4a
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Site
12
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Site
13
13
  * https://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -463,7 +463,7 @@
463
463
  })(jQuery, window, document);
464
464
 
465
465
  /*!
466
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Form Validation
466
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Form Validation
467
467
  * https://github.com/fomantic/Fomantic-UI/
468
468
  *
469
469
  *
@@ -2557,7 +2557,7 @@
2557
2557
  })(jQuery, window, document);
2558
2558
 
2559
2559
  /*!
2560
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Accordion
2560
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Accordion
2561
2561
  * https://github.com/fomantic/Fomantic-UI/
2562
2562
  *
2563
2563
  *
@@ -3155,7 +3155,7 @@
3155
3155
  })(jQuery, window, document);
3156
3156
 
3157
3157
  /*!
3158
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Calendar
3158
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Calendar
3159
3159
  * https://github.com/fomantic/Fomantic-UI/
3160
3160
  *
3161
3161
  *
@@ -5171,7 +5171,7 @@
5171
5171
  })(jQuery, window, document);
5172
5172
 
5173
5173
  /*!
5174
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Checkbox
5174
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Checkbox
5175
5175
  * https://github.com/fomantic/Fomantic-UI/
5176
5176
  *
5177
5177
  *
@@ -6056,7 +6056,7 @@
6056
6056
  })(jQuery, window, document);
6057
6057
 
6058
6058
  /*!
6059
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Dimmer
6059
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Dimmer
6060
6060
  * https://github.com/fomantic/Fomantic-UI/
6061
6061
  *
6062
6062
  *
@@ -6791,7 +6791,7 @@
6791
6791
  })(jQuery, window, document);
6792
6792
 
6793
6793
  /*!
6794
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Dropdown
6794
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Dropdown
6795
6795
  * https://github.com/fomantic/Fomantic-UI/
6796
6796
  *
6797
6797
  *
@@ -9621,7 +9621,7 @@
9621
9621
  if (settings.label.variation) {
9622
9622
  $label.addClass(settings.label.variation);
9623
9623
  }
9624
- if (shouldAnimate === true) {
9624
+ if (shouldAnimate === true && settings.label.transition) {
9625
9625
  module.debug('Animating in label', $label);
9626
9626
  $label
9627
9627
  .addClass(className.hidden)
@@ -11110,7 +11110,7 @@
11110
11110
  })(jQuery, window, document);
11111
11111
 
11112
11112
  /*!
11113
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Embed
11113
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Embed
11114
11114
  * https://github.com/fomantic/Fomantic-UI/
11115
11115
  *
11116
11116
  *
@@ -11794,7 +11794,7 @@
11794
11794
  })(jQuery, window, document);
11795
11795
 
11796
11796
  /*!
11797
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Flyout
11797
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Flyout
11798
11798
  * https://github.com/fomantic/Fomantic-UI/
11799
11799
  *
11800
11800
  *
@@ -12352,9 +12352,12 @@
12352
12352
  var
12353
12353
  $header = $module.children(selector.header),
12354
12354
  $content = $module.children(selector.content),
12355
- $actions = $module.children(selector.actions)
12355
+ $actions = $module.children(selector.actions),
12356
+ newContentHeight = ($context.height() || 0) - ($header.outerHeight() || 0) - ($actions.outerHeight() || 0)
12356
12357
  ;
12357
- $content.css('min-height', ($context.height() - $header.outerHeight() - $actions.outerHeight()) + 'px');
12358
+ if (newContentHeight > 0) {
12359
+ $content.css('min-height', String(newContentHeight) + 'px');
12360
+ }
12358
12361
  },
12359
12362
  },
12360
12363
 
@@ -13317,7 +13320,7 @@
13317
13320
  })(jQuery, window, document);
13318
13321
 
13319
13322
  /*!
13320
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Modal
13323
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Modal
13321
13324
  * https://github.com/fomantic/Fomantic-UI/
13322
13325
  *
13323
13326
  *
@@ -14876,7 +14879,7 @@
14876
14879
  })(jQuery, window, document);
14877
14880
 
14878
14881
  /*!
14879
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Nag
14882
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Nag
14880
14883
  * https://github.com/fomantic/Fomantic-UI/
14881
14884
  *
14882
14885
  *
@@ -15429,7 +15432,7 @@
15429
15432
  })(jQuery, window, document);
15430
15433
 
15431
15434
  /*!
15432
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Popup
15435
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Popup
15433
15436
  * https://github.com/fomantic/Fomantic-UI/
15434
15437
  *
15435
15438
  *
@@ -16963,7 +16966,7 @@
16963
16966
  })(jQuery, window, document);
16964
16967
 
16965
16968
  /*!
16966
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Progress
16969
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Progress
16967
16970
  * https://github.com/fomantic/Fomantic-UI/
16968
16971
  *
16969
16972
  *
@@ -17972,7 +17975,7 @@
17972
17975
  })(jQuery, window, document);
17973
17976
 
17974
17977
  /*!
17975
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Slider
17978
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Slider
17976
17979
  * https://github.com/fomantic/Fomantic-UI/
17977
17980
  *
17978
17981
  *
@@ -19325,7 +19328,7 @@
19325
19328
  })(jQuery, window, document);
19326
19329
 
19327
19330
  /*!
19328
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Rating
19331
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Rating
19329
19332
  * https://github.com/fomantic/Fomantic-UI/
19330
19333
  *
19331
19334
  *
@@ -19866,7 +19869,7 @@
19866
19869
  })(jQuery, window, document);
19867
19870
 
19868
19871
  /*!
19869
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Search
19872
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Search
19870
19873
  * https://github.com/fomantic/Fomantic-UI/
19871
19874
  *
19872
19875
  *
@@ -20527,8 +20530,10 @@
20527
20530
  return [];
20528
20531
  }
20529
20532
  // iterate through search fields looking for matches
20530
- $.each(searchFields, function (index, field) {
20531
- $.each(source, function (label, content) {
20533
+ var lastSearchFieldIndex = searchFields.length - 1;
20534
+ $.each(source, function (label, content) {
20535
+ var concatenatedContent = [];
20536
+ $.each(searchFields, function (index, field) {
20532
20537
  var
20533
20538
  fieldExists = (typeof content[field] === 'string') || (typeof content[field] === 'number')
20534
20539
  ;
@@ -20537,11 +20542,21 @@
20537
20542
  text = typeof content[field] === 'string'
20538
20543
  ? module.remove.diacritics(content[field])
20539
20544
  : content[field].toString();
20540
- if (text.search(matchRegExp) !== -1) {
20545
+ if (settings.fullTextSearch === 'all') {
20546
+ concatenatedContent.push(text);
20547
+ if (index < lastSearchFieldIndex) {
20548
+ return true;
20549
+ }
20550
+ text = concatenatedContent.join(' ');
20551
+ }
20552
+ if (settings.fullTextSearch !== 'all' && text.search(matchRegExp) !== -1) {
20541
20553
  // content starts with value (first in results)
20542
20554
  addResult(results, content);
20543
20555
  } else if (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, text)) {
20544
- // content fuzzy matches (last in results)
20556
+ addResult(exactResults, content);
20557
+ } else if (settings.fullTextSearch === 'some' && module.wordSearch(searchTerm, text)) {
20558
+ addResult(exactResults, content);
20559
+ } else if (settings.fullTextSearch === 'all' && module.wordSearch(searchTerm, text, true)) {
20545
20560
  addResult(exactResults, content);
20546
20561
  } else if (settings.fullTextSearch === true && module.fuzzySearch(searchTerm, text)) {
20547
20562
  // content fuzzy matches (last in results)
@@ -20562,6 +20577,21 @@
20562
20577
 
20563
20578
  return term.indexOf(query) > -1;
20564
20579
  },
20580
+ wordSearch: function (query, term, matchAll) {
20581
+ var allWords = query.split(/\s+/),
20582
+ w,
20583
+ wL = allWords.length,
20584
+ found = false
20585
+ ;
20586
+ for (w = 0; w < wL; w++) {
20587
+ found = module.exactSearch(allWords[w], term);
20588
+ if ((!found && matchAll) || (found && !matchAll)) {
20589
+ break;
20590
+ }
20591
+ }
20592
+
20593
+ return found;
20594
+ },
20565
20595
  fuzzySearch: function (query, term) {
20566
20596
  var
20567
20597
  termLength = term.length,
@@ -21420,7 +21450,7 @@
21420
21450
  })(jQuery, window, document);
21421
21451
 
21422
21452
  /*!
21423
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Shape
21453
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Shape
21424
21454
  * https://github.com/fomantic/Fomantic-UI/
21425
21455
  *
21426
21456
  *
@@ -22240,7 +22270,7 @@
22240
22270
  })(jQuery, window, document);
22241
22271
 
22242
22272
  /*!
22243
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Sidebar
22273
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Sidebar
22244
22274
  * https://github.com/fomantic/Fomantic-UI/
22245
22275
  *
22246
22276
  *
@@ -23336,7 +23366,7 @@
23336
23366
  })(jQuery, window, document);
23337
23367
 
23338
23368
  /*!
23339
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Sticky
23369
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Sticky
23340
23370
  * https://github.com/fomantic/Fomantic-UI/
23341
23371
  *
23342
23372
  *
@@ -24252,7 +24282,7 @@
24252
24282
  })(jQuery, window, document);
24253
24283
 
24254
24284
  /*!
24255
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Tab
24285
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Tab
24256
24286
  * https://github.com/fomantic/Fomantic-UI/
24257
24287
  *
24258
24288
  *
@@ -25208,7 +25238,7 @@
25208
25238
  })(jQuery, window, document);
25209
25239
 
25210
25240
  /*!
25211
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Toast
25241
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Toast
25212
25242
  * https://github.com/fomantic/Fomantic-UI/
25213
25243
  *
25214
25244
  *
@@ -26161,7 +26191,7 @@
26161
26191
  })(jQuery, window, document);
26162
26192
 
26163
26193
  /*!
26164
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Transition
26194
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Transition
26165
26195
  * https://github.com/fomantic/Fomantic-UI/
26166
26196
  *
26167
26197
  *
@@ -27246,7 +27276,7 @@
27246
27276
  })(jQuery, window, document);
27247
27277
 
27248
27278
  /*!
27249
- * # Fomantic-UI 2.9.1-beta.39+199f841 - API
27279
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - API
27250
27280
  * https://github.com/fomantic/Fomantic-UI/
27251
27281
  *
27252
27282
  *
@@ -28461,7 +28491,7 @@
28461
28491
  })(jQuery, window, document);
28462
28492
 
28463
28493
  /*!
28464
- * # Fomantic-UI 2.9.1-beta.39+199f841 - State
28494
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - State
28465
28495
  * https://github.com/fomantic/Fomantic-UI/
28466
28496
  *
28467
28497
  *
@@ -29155,7 +29185,7 @@
29155
29185
  })(jQuery, window, document);
29156
29186
 
29157
29187
  /*!
29158
- * # Fomantic-UI 2.9.1-beta.39+199f841 - Visibility
29188
+ * # Fomantic-UI 2.9.1-beta.40+0bffb4a - Visibility
29159
29189
  * https://github.com/fomantic/Fomantic-UI/
29160
29190
  *
29161
29191
  *