fomantic-ui 2.9.3-beta.14 → 2.9.3-beta.16

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 (160) 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 +12 -9
  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/emoji.css +1 -1
  42. package/dist/components/emoji.min.css +1 -1
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +1 -1
  48. package/dist/components/flyout.js +1 -1
  49. package/dist/components/flyout.min.css +1 -1
  50. package/dist/components/flyout.min.js +1 -1
  51. package/dist/components/form.css +1 -1
  52. package/dist/components/form.js +1 -1
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +1 -1
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +1 -1
  64. package/dist/components/input.min.css +1 -1
  65. package/dist/components/item.css +1 -1
  66. package/dist/components/item.min.css +1 -1
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +1 -1
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/menu.css +1 -1
  74. package/dist/components/menu.min.css +1 -1
  75. package/dist/components/message.css +1 -1
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +1 -1
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +1 -1
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +1 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +1 -1
  88. package/dist/components/popup.js +1 -1
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +1 -1
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +1 -1
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +1 -1
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +1 -1
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +1 -1
  109. package/dist/components/segment.css +1 -1
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +1 -1
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +1 -1
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +1 -1
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +1 -1
  124. package/dist/components/slider.js +1 -1
  125. package/dist/components/slider.min.css +1 -1
  126. package/dist/components/slider.min.js +1 -1
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +1 -1
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +1 -1
  132. package/dist/components/step.min.css +1 -1
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +1 -1
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +1 -1
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +1 -1
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +1 -1
  141. package/dist/components/table.css +1 -1
  142. package/dist/components/table.min.css +1 -1
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +1 -1
  146. package/dist/components/toast.js +1 -1
  147. package/dist/components/toast.min.css +1 -1
  148. package/dist/components/toast.min.js +1 -1
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +1 -1
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +1 -1
  153. package/dist/components/visibility.js +1 -1
  154. package/dist/components/visibility.min.js +1 -1
  155. package/dist/semantic.css +53 -53
  156. package/dist/semantic.js +37 -34
  157. package/dist/semantic.min.css +1 -1
  158. package/dist/semantic.min.js +2 -2
  159. package/package.json +1 -1
  160. package/src/definitions/modules/dropdown.js +11 -8
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.3-beta.14+c7d794b
2
+ * # Fomantic UI - 2.9.3-beta.16+7986b3f
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.3-beta.14+c7d794b - Site
12
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - 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.3-beta.14+c7d794b - Form Validation
466
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Form Validation
467
467
  * https://github.com/fomantic/Fomantic-UI/
468
468
  *
469
469
  *
@@ -2577,7 +2577,7 @@
2577
2577
  })(jQuery, window, document);
2578
2578
 
2579
2579
  /*!
2580
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Accordion
2580
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Accordion
2581
2581
  * https://github.com/fomantic/Fomantic-UI/
2582
2582
  *
2583
2583
  *
@@ -3171,7 +3171,7 @@
3171
3171
  })(jQuery, window, document);
3172
3172
 
3173
3173
  /*!
3174
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Calendar
3174
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Calendar
3175
3175
  * https://github.com/fomantic/Fomantic-UI/
3176
3176
  *
3177
3177
  *
@@ -5182,7 +5182,7 @@
5182
5182
  })(jQuery, window, document);
5183
5183
 
5184
5184
  /*!
5185
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Checkbox
5185
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Checkbox
5186
5186
  * https://github.com/fomantic/Fomantic-UI/
5187
5187
  *
5188
5188
  *
@@ -6063,7 +6063,7 @@
6063
6063
  })(jQuery, window, document);
6064
6064
 
6065
6065
  /*!
6066
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Dimmer
6066
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Dimmer
6067
6067
  * https://github.com/fomantic/Fomantic-UI/
6068
6068
  *
6069
6069
  *
@@ -6794,7 +6794,7 @@
6794
6794
  })(jQuery, window, document);
6795
6795
 
6796
6796
  /*!
6797
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Dropdown
6797
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Dropdown
6798
6798
  * https://github.com/fomantic/Fomantic-UI/
6799
6799
  *
6800
6800
  *
@@ -8202,11 +8202,13 @@
8202
8202
  if (settings.allowAdditions) {
8203
8203
  module.remove.userAddition();
8204
8204
  }
8205
- module.remove.filteredItem();
8205
+ if (!settings.keepSearchTerm) {
8206
+ module.remove.filteredItem();
8207
+ module.remove.searchTerm();
8208
+ }
8206
8209
  if (!module.is.visible() && $target.length > 0) {
8207
8210
  module.show();
8208
8211
  }
8209
- module.remove.searchTerm();
8210
8212
  if (!module.is.focusedOnSearch() && skipRefocus !== true) {
8211
8213
  module.focusSearch(true);
8212
8214
  }
@@ -8392,7 +8394,9 @@
8392
8394
  module.verbose('Selecting item from keyboard shortcut', $selectedItem);
8393
8395
  module.event.item.click.call($selectedItem, event);
8394
8396
  if (module.is.searchSelection()) {
8395
- module.remove.searchTerm();
8397
+ if (!settings.keepSearchTerm) {
8398
+ module.remove.searchTerm();
8399
+ }
8396
8400
  if (module.is.multiple()) {
8397
8401
  $search.trigger('focus');
8398
8402
  }
@@ -8609,7 +8613,7 @@
8609
8613
  ? value
8610
8614
  : text;
8611
8615
  if (module.can.activate($(element))) {
8612
- module.set.selected(value, $(element));
8616
+ module.set.selected(value, $(element), false, settings.keepSearchTerm);
8613
8617
  if (!module.is.multiple() && !(!settings.collapseOnActionable && $(element).hasClass(className.actionable))) {
8614
8618
  module.hideAndClear();
8615
8619
  }
@@ -9259,7 +9263,7 @@
9259
9263
  valueIsSet = searchValue !== ''
9260
9264
  ;
9261
9265
  if (isMultiple && hasSearchValue) {
9262
- module.verbose('Adjusting input width', searchWidth, settings.glyphWidth);
9266
+ module.verbose('Adjusting input width', searchWidth);
9263
9267
  $search.css('width', searchWidth + 'px');
9264
9268
  }
9265
9269
  if (hasSearchValue || (isSearchMultiple && valueIsSet)) {
@@ -9558,7 +9562,7 @@
9558
9562
  return false;
9559
9563
  }
9560
9564
  module.debug('Setting selected menu item to', $selectedItem);
9561
- if (module.is.multiple()) {
9565
+ if (module.is.multiple() && !keepSearchTerm) {
9562
9566
  module.remove.searchWidth();
9563
9567
  }
9564
9568
  if (module.is.single()) {
@@ -10801,6 +10805,7 @@
10801
10805
  forceSelection: false, // force a choice on blur with search selection
10802
10806
 
10803
10807
  allowAdditions: false, // whether multiple select should allow user added values
10808
+ keepSearchTerm: false, // whether the search value should be kept and menu stays filtered on item selection
10804
10809
  ignoreCase: false, // whether to consider case sensitivity when creating labels
10805
10810
  ignoreSearchCase: true, // whether to consider case sensitivity when filtering items
10806
10811
  hideAdditions: true, // whether or not to hide special message prompting a user they can enter a value
@@ -10820,8 +10825,6 @@
10820
10825
  duration: 200, // duration of transition
10821
10826
  displayType: false, // displayType of transition
10822
10827
 
10823
- glyphWidth: 1.037, // widest glyph width in em (W is 1.037 em) used to calculate multiselect input width
10824
-
10825
10828
  headerDivider: true, // whether option headers should have an additional divider line underneath when converted from <select> <optgroup>
10826
10829
 
10827
10830
  collapseOnActionable: true, // whether the dropdown should collapse upon selection of an actionable item
@@ -11144,7 +11147,7 @@
11144
11147
  })(jQuery, window, document);
11145
11148
 
11146
11149
  /*!
11147
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Embed
11150
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Embed
11148
11151
  * https://github.com/fomantic/Fomantic-UI/
11149
11152
  *
11150
11153
  *
@@ -11823,7 +11826,7 @@
11823
11826
  })(jQuery, window, document);
11824
11827
 
11825
11828
  /*!
11826
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Flyout
11829
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Flyout
11827
11830
  * https://github.com/fomantic/Fomantic-UI/
11828
11831
  *
11829
11832
  *
@@ -13404,7 +13407,7 @@
13404
13407
  })(jQuery, window, document);
13405
13408
 
13406
13409
  /*!
13407
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Modal
13410
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Modal
13408
13411
  * https://github.com/fomantic/Fomantic-UI/
13409
13412
  *
13410
13413
  *
@@ -15038,7 +15041,7 @@
15038
15041
  })(jQuery, window, document);
15039
15042
 
15040
15043
  /*!
15041
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Nag
15044
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Nag
15042
15045
  * https://github.com/fomantic/Fomantic-UI/
15043
15046
  *
15044
15047
  *
@@ -15599,7 +15602,7 @@
15599
15602
  })(jQuery, window, document);
15600
15603
 
15601
15604
  /*!
15602
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Popup
15605
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Popup
15603
15606
  * https://github.com/fomantic/Fomantic-UI/
15604
15607
  *
15605
15608
  *
@@ -17155,7 +17158,7 @@
17155
17158
  })(jQuery, window, document);
17156
17159
 
17157
17160
  /*!
17158
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Progress
17161
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Progress
17159
17162
  * https://github.com/fomantic/Fomantic-UI/
17160
17163
  *
17161
17164
  *
@@ -18133,7 +18136,7 @@
18133
18136
  })(jQuery, window, document);
18134
18137
 
18135
18138
  /*!
18136
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Slider
18139
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Slider
18137
18140
  * https://github.com/fomantic/Fomantic-UI/
18138
18141
  *
18139
18142
  *
@@ -19577,7 +19580,7 @@
19577
19580
  })(jQuery, window, document);
19578
19581
 
19579
19582
  /*!
19580
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Rating
19583
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Rating
19581
19584
  * https://github.com/fomantic/Fomantic-UI/
19582
19585
  *
19583
19586
  *
@@ -20116,7 +20119,7 @@
20116
20119
  })(jQuery, window, document);
20117
20120
 
20118
20121
  /*!
20119
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Search
20122
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Search
20120
20123
  * https://github.com/fomantic/Fomantic-UI/
20121
20124
  *
20122
20125
  *
@@ -21694,7 +21697,7 @@
21694
21697
  })(jQuery, window, document);
21695
21698
 
21696
21699
  /*!
21697
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Shape
21700
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Shape
21698
21701
  * https://github.com/fomantic/Fomantic-UI/
21699
21702
  *
21700
21703
  *
@@ -22490,7 +22493,7 @@
22490
22493
  })(jQuery, window, document);
22491
22494
 
22492
22495
  /*!
22493
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Sidebar
22496
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Sidebar
22494
22497
  * https://github.com/fomantic/Fomantic-UI/
22495
22498
  *
22496
22499
  *
@@ -23573,7 +23576,7 @@
23573
23576
  })(jQuery, window, document);
23574
23577
 
23575
23578
  /*!
23576
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Sticky
23579
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Sticky
23577
23580
  * https://github.com/fomantic/Fomantic-UI/
23578
23581
  *
23579
23582
  *
@@ -24489,7 +24492,7 @@
24489
24492
  })(jQuery, window, document);
24490
24493
 
24491
24494
  /*!
24492
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Tab
24495
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Tab
24493
24496
  * https://github.com/fomantic/Fomantic-UI/
24494
24497
  *
24495
24498
  *
@@ -25453,7 +25456,7 @@
25453
25456
  })(jQuery, window, document);
25454
25457
 
25455
25458
  /*!
25456
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Toast
25459
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Toast
25457
25460
  * https://github.com/fomantic/Fomantic-UI/
25458
25461
  *
25459
25462
  *
@@ -26414,7 +26417,7 @@
26414
26417
  })(jQuery, window, document);
26415
26418
 
26416
26419
  /*!
26417
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Transition
26420
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Transition
26418
26421
  * https://github.com/fomantic/Fomantic-UI/
26419
26422
  *
26420
26423
  *
@@ -27445,7 +27448,7 @@
27445
27448
  })(jQuery, window, document);
27446
27449
 
27447
27450
  /*!
27448
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - API
27451
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - API
27449
27452
  * https://github.com/fomantic/Fomantic-UI/
27450
27453
  *
27451
27454
  *
@@ -28666,7 +28669,7 @@
28666
28669
  })(jQuery, window, document);
28667
28670
 
28668
28671
  /*!
28669
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - State
28672
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - State
28670
28673
  * https://github.com/fomantic/Fomantic-UI/
28671
28674
  *
28672
28675
  *
@@ -29362,7 +29365,7 @@
29362
29365
  })(jQuery, window, document);
29363
29366
 
29364
29367
  /*!
29365
- * # Fomantic-UI 2.9.3-beta.14+c7d794b - Visibility
29368
+ * # Fomantic-UI 2.9.3-beta.16+7986b3f - Visibility
29366
29369
  * https://github.com/fomantic/Fomantic-UI/
29367
29370
  *
29368
29371
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.3-beta.14+c7d794b
2
+ * # Fomantic UI - 2.9.3-beta.16+7986b3f
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *