fomantic-ui 2.9.1-beta.32 → 2.9.1-beta.34

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 (155) 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 +3 -3
  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 +1 -1
  46. package/dist/components/flyout.js +1 -1
  47. package/dist/components/flyout.min.css +1 -1
  48. package/dist/components/flyout.min.js +1 -1
  49. package/dist/components/form.css +1 -1
  50. package/dist/components/form.js +19 -2
  51. package/dist/components/form.min.css +1 -1
  52. package/dist/components/form.min.js +2 -2
  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 +1 -1
  103. package/dist/components/search.min.css +1 -1
  104. package/dist/components/search.min.js +1 -1
  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 +50 -50
  150. package/dist/semantic.js +46 -29
  151. package/dist/semantic.min.css +1 -1
  152. package/dist/semantic.min.js +2 -2
  153. package/package.json +1 -1
  154. package/src/definitions/behaviors/form.js +18 -1
  155. package/src/definitions/modules/dropdown.js +2 -2
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.32+1124496
2
+ * # Fomantic UI - 2.9.1-beta.34+d493189
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.32+1124496 - Site
12
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - 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.32+1124496 - Form Validation
466
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Form Validation
467
467
  * https://github.com/fomantic/Fomantic-UI/
468
468
  *
469
469
  *
@@ -1398,7 +1398,11 @@
1398
1398
  }
1399
1399
  if (rule === undefined) {
1400
1400
  module.debug('Removed all rules');
1401
- validation[field].rules = [];
1401
+ if (module.has.field(field)) {
1402
+ validation[field].rules = [];
1403
+ } else {
1404
+ delete validation[field];
1405
+ }
1402
1406
 
1403
1407
  return;
1404
1408
  }
@@ -1588,6 +1592,14 @@
1588
1592
  },
1589
1593
  autoCheck: function () {
1590
1594
  module.debug('Enabling auto check on required fields');
1595
+ if (validation) {
1596
+ $.each(validation, function (fieldName) {
1597
+ if (!module.has.field(fieldName)) {
1598
+ module.verbose('Field not found, removing from validation', fieldName);
1599
+ module.remove.field(fieldName);
1600
+ }
1601
+ });
1602
+ }
1591
1603
  $field.each(function (_index, el) {
1592
1604
  var
1593
1605
  $el = $(el),
@@ -1693,6 +1705,11 @@
1693
1705
  fieldName = field;
1694
1706
  field = validation[field];
1695
1707
  }
1708
+ if (!field) {
1709
+ module.debug('Unable to find field validation. Skipping', fieldName);
1710
+
1711
+ return true;
1712
+ }
1696
1713
  var
1697
1714
  identifier = field.identifier || fieldName,
1698
1715
  $field = module.get.field(identifier),
@@ -2540,7 +2557,7 @@
2540
2557
  })(jQuery, window, document);
2541
2558
 
2542
2559
  /*!
2543
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Accordion
2560
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Accordion
2544
2561
  * https://github.com/fomantic/Fomantic-UI/
2545
2562
  *
2546
2563
  *
@@ -3138,7 +3155,7 @@
3138
3155
  })(jQuery, window, document);
3139
3156
 
3140
3157
  /*!
3141
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Calendar
3158
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Calendar
3142
3159
  * https://github.com/fomantic/Fomantic-UI/
3143
3160
  *
3144
3161
  *
@@ -5154,7 +5171,7 @@
5154
5171
  })(jQuery, window, document);
5155
5172
 
5156
5173
  /*!
5157
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Checkbox
5174
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Checkbox
5158
5175
  * https://github.com/fomantic/Fomantic-UI/
5159
5176
  *
5160
5177
  *
@@ -6039,7 +6056,7 @@
6039
6056
  })(jQuery, window, document);
6040
6057
 
6041
6058
  /*!
6042
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Dimmer
6059
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Dimmer
6043
6060
  * https://github.com/fomantic/Fomantic-UI/
6044
6061
  *
6045
6062
  *
@@ -6774,7 +6791,7 @@
6774
6791
  })(jQuery, window, document);
6775
6792
 
6776
6793
  /*!
6777
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Dropdown
6794
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Dropdown
6778
6795
  * https://github.com/fomantic/Fomantic-UI/
6779
6796
  *
6780
6797
  *
@@ -8136,7 +8153,7 @@
8136
8153
  var
8137
8154
  $choice = $(this),
8138
8155
  $target = event
8139
- ? $(event.target)
8156
+ ? $(event.target || '')
8140
8157
  : $(''),
8141
8158
  $subMenu = $choice.find(selector.menu),
8142
8159
  text = module.get.choiceText($choice),
@@ -8154,7 +8171,7 @@
8154
8171
  module.remove.userAddition();
8155
8172
  }
8156
8173
  module.remove.filteredItem();
8157
- if (!module.is.visible()) {
8174
+ if (!module.is.visible() && $target.length > 0) {
8158
8175
  module.show();
8159
8176
  }
8160
8177
  module.remove.searchTerm();
@@ -11093,7 +11110,7 @@
11093
11110
  })(jQuery, window, document);
11094
11111
 
11095
11112
  /*!
11096
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Embed
11113
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Embed
11097
11114
  * https://github.com/fomantic/Fomantic-UI/
11098
11115
  *
11099
11116
  *
@@ -11777,7 +11794,7 @@
11777
11794
  })(jQuery, window, document);
11778
11795
 
11779
11796
  /*!
11780
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Flyout
11797
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Flyout
11781
11798
  * https://github.com/fomantic/Fomantic-UI/
11782
11799
  *
11783
11800
  *
@@ -13300,7 +13317,7 @@
13300
13317
  })(jQuery, window, document);
13301
13318
 
13302
13319
  /*!
13303
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Modal
13320
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Modal
13304
13321
  * https://github.com/fomantic/Fomantic-UI/
13305
13322
  *
13306
13323
  *
@@ -14859,7 +14876,7 @@
14859
14876
  })(jQuery, window, document);
14860
14877
 
14861
14878
  /*!
14862
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Nag
14879
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Nag
14863
14880
  * https://github.com/fomantic/Fomantic-UI/
14864
14881
  *
14865
14882
  *
@@ -15412,7 +15429,7 @@
15412
15429
  })(jQuery, window, document);
15413
15430
 
15414
15431
  /*!
15415
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Popup
15432
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Popup
15416
15433
  * https://github.com/fomantic/Fomantic-UI/
15417
15434
  *
15418
15435
  *
@@ -16946,7 +16963,7 @@
16946
16963
  })(jQuery, window, document);
16947
16964
 
16948
16965
  /*!
16949
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Progress
16966
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Progress
16950
16967
  * https://github.com/fomantic/Fomantic-UI/
16951
16968
  *
16952
16969
  *
@@ -17955,7 +17972,7 @@
17955
17972
  })(jQuery, window, document);
17956
17973
 
17957
17974
  /*!
17958
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Slider
17975
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Slider
17959
17976
  * https://github.com/fomantic/Fomantic-UI/
17960
17977
  *
17961
17978
  *
@@ -19308,7 +19325,7 @@
19308
19325
  })(jQuery, window, document);
19309
19326
 
19310
19327
  /*!
19311
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Rating
19328
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Rating
19312
19329
  * https://github.com/fomantic/Fomantic-UI/
19313
19330
  *
19314
19331
  *
@@ -19849,7 +19866,7 @@
19849
19866
  })(jQuery, window, document);
19850
19867
 
19851
19868
  /*!
19852
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Search
19869
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Search
19853
19870
  * https://github.com/fomantic/Fomantic-UI/
19854
19871
  *
19855
19872
  *
@@ -21403,7 +21420,7 @@
21403
21420
  })(jQuery, window, document);
21404
21421
 
21405
21422
  /*!
21406
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Shape
21423
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Shape
21407
21424
  * https://github.com/fomantic/Fomantic-UI/
21408
21425
  *
21409
21426
  *
@@ -22223,7 +22240,7 @@
22223
22240
  })(jQuery, window, document);
22224
22241
 
22225
22242
  /*!
22226
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Sidebar
22243
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Sidebar
22227
22244
  * https://github.com/fomantic/Fomantic-UI/
22228
22245
  *
22229
22246
  *
@@ -23319,7 +23336,7 @@
23319
23336
  })(jQuery, window, document);
23320
23337
 
23321
23338
  /*!
23322
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Sticky
23339
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Sticky
23323
23340
  * https://github.com/fomantic/Fomantic-UI/
23324
23341
  *
23325
23342
  *
@@ -24235,7 +24252,7 @@
24235
24252
  })(jQuery, window, document);
24236
24253
 
24237
24254
  /*!
24238
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Tab
24255
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Tab
24239
24256
  * https://github.com/fomantic/Fomantic-UI/
24240
24257
  *
24241
24258
  *
@@ -25191,7 +25208,7 @@
25191
25208
  })(jQuery, window, document);
25192
25209
 
25193
25210
  /*!
25194
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Toast
25211
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Toast
25195
25212
  * https://github.com/fomantic/Fomantic-UI/
25196
25213
  *
25197
25214
  *
@@ -26144,7 +26161,7 @@
26144
26161
  })(jQuery, window, document);
26145
26162
 
26146
26163
  /*!
26147
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Transition
26164
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Transition
26148
26165
  * https://github.com/fomantic/Fomantic-UI/
26149
26166
  *
26150
26167
  *
@@ -27229,7 +27246,7 @@
27229
27246
  })(jQuery, window, document);
27230
27247
 
27231
27248
  /*!
27232
- * # Fomantic-UI 2.9.1-beta.32+1124496 - API
27249
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - API
27233
27250
  * https://github.com/fomantic/Fomantic-UI/
27234
27251
  *
27235
27252
  *
@@ -28444,7 +28461,7 @@
28444
28461
  })(jQuery, window, document);
28445
28462
 
28446
28463
  /*!
28447
- * # Fomantic-UI 2.9.1-beta.32+1124496 - State
28464
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - State
28448
28465
  * https://github.com/fomantic/Fomantic-UI/
28449
28466
  *
28450
28467
  *
@@ -29138,7 +29155,7 @@
29138
29155
  })(jQuery, window, document);
29139
29156
 
29140
29157
  /*!
29141
- * # Fomantic-UI 2.9.1-beta.32+1124496 - Visibility
29158
+ * # Fomantic-UI 2.9.1-beta.34+d493189 - Visibility
29142
29159
  * https://github.com/fomantic/Fomantic-UI/
29143
29160
  *
29144
29161
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.1-beta.32+1124496
2
+ * # Fomantic UI - 2.9.1-beta.34+d493189
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *