fomantic-ui 2.9.4-beta.65 → 2.9.4-beta.67

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 (170) 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 +1 -1
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +1 -1
  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 +21 -4
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +2 -2
  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 +4 -4
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +2 -2
  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 +49 -32
  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/behaviors/form.js +20 -3
  161. package/src/definitions/modules/shape.js +3 -3
  162. package/types/fomantic-ui-calendar.d.ts +17 -1
  163. package/types/fomantic-ui-dropdown.d.ts +3 -3
  164. package/types/fomantic-ui-flyout.d.ts +1 -1
  165. package/types/fomantic-ui-form.d.ts +1 -1
  166. package/types/fomantic-ui-modal.d.ts +2 -2
  167. package/types/fomantic-ui-search.d.ts +12 -7
  168. package/types/fomantic-ui-slider.d.ts +1 -1
  169. package/types/fomantic-ui-tab.d.ts +1 -1
  170. package/types/fomantic-ui-transition.d.ts +2 -2
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.4-beta.65+f622ea8
2
+ * # Fomantic UI - 2.9.4-beta.67+eadc3d1
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.4-beta.65+f622ea8 - Site
12
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Site
13
13
  * https://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -465,7 +465,7 @@
465
465
  })(jQuery, window, document);
466
466
 
467
467
  /*!
468
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Form Validation
468
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Form Validation
469
469
  * https://github.com/fomantic/Fomantic-UI/
470
470
  *
471
471
  *
@@ -504,6 +504,7 @@
504
504
  element = this,
505
505
 
506
506
  formErrors = [],
507
+ formErrorsTracker = {},
507
508
  keyHeldDown = false,
508
509
 
509
510
  // set at run-time
@@ -1414,7 +1415,7 @@
1414
1415
  $prompt.css('display', 'none');
1415
1416
  }
1416
1417
  $prompt
1417
- .appendTo($fieldGroup)
1418
+ .appendTo($fieldGroup.filter('.' + className.error))
1418
1419
  ;
1419
1420
  }
1420
1421
  $prompt
@@ -1751,6 +1752,7 @@
1751
1752
  $module.removeClass(className.initial);
1752
1753
  // reset errors
1753
1754
  formErrors = [];
1755
+ formErrorsTracker = {};
1754
1756
  if (module.determine.isValid()) {
1755
1757
  module.debug('Form has no validation errors, submitting');
1756
1758
  module.set.success();
@@ -1854,7 +1856,22 @@
1854
1856
  var invalidFields = module.validate.rule(field, rule, true) || [];
1855
1857
  if (invalidFields.length > 0) {
1856
1858
  module.debug('Field is invalid', identifier, rule.type);
1857
- fieldErrors.push(module.get.prompt(rule, field));
1859
+ var fieldError = module.get.prompt(rule, field);
1860
+ if (!settings.inline) {
1861
+ if (
1862
+ // Always allow the first error prompt for new field identifiers
1863
+ (!(identifier in formErrorsTracker)
1864
+ // Also allow multiple error prompts per field identifier but make sure each prompt is unique
1865
+ || formErrorsTracker[identifier].indexOf(fieldError) === -1)
1866
+ // Limit the number of unique error prompts for every field identifier if specified
1867
+ && (!errorLimit || (formErrorsTracker[identifier] || []).length < errorLimit)
1868
+ ) {
1869
+ fieldErrors.push(fieldError);
1870
+ (formErrorsTracker[identifier] = formErrorsTracker[identifier] || []).push(fieldError);
1871
+ }
1872
+ } else {
1873
+ fieldErrors.push(fieldError);
1874
+ }
1858
1875
  fieldValid = false;
1859
1876
  if (showErrors) {
1860
1877
  $(invalidFields).closest($group).addClass(className.error);
@@ -1869,7 +1886,7 @@
1869
1886
  settings.onValid.call($field);
1870
1887
  }
1871
1888
  } else {
1872
- if (showErrors) {
1889
+ if (showErrors && fieldErrors.length > 0) {
1873
1890
  formErrors = formErrors.concat(fieldErrors);
1874
1891
  module.add.prompt(identifier, fieldErrors, true);
1875
1892
  settings.onInvalid.call($field, fieldErrors);
@@ -2648,7 +2665,7 @@
2648
2665
  })(jQuery, window, document);
2649
2666
 
2650
2667
  /*!
2651
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Accordion
2668
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Accordion
2652
2669
  * https://github.com/fomantic/Fomantic-UI/
2653
2670
  *
2654
2671
  *
@@ -3244,7 +3261,7 @@
3244
3261
  })(jQuery, window, document);
3245
3262
 
3246
3263
  /*!
3247
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Calendar
3264
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Calendar
3248
3265
  * https://github.com/fomantic/Fomantic-UI/
3249
3266
  *
3250
3267
  *
@@ -5267,7 +5284,7 @@
5267
5284
  })(jQuery, window, document);
5268
5285
 
5269
5286
  /*!
5270
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Checkbox
5287
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Checkbox
5271
5288
  * https://github.com/fomantic/Fomantic-UI/
5272
5289
  *
5273
5290
  *
@@ -6156,7 +6173,7 @@
6156
6173
  })(jQuery, window, document);
6157
6174
 
6158
6175
  /*!
6159
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Dimmer
6176
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Dimmer
6160
6177
  * https://github.com/fomantic/Fomantic-UI/
6161
6178
  *
6162
6179
  *
@@ -6889,7 +6906,7 @@
6889
6906
  })(jQuery, window, document);
6890
6907
 
6891
6908
  /*!
6892
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Dropdown
6909
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Dropdown
6893
6910
  * https://github.com/fomantic/Fomantic-UI/
6894
6911
  *
6895
6912
  *
@@ -11318,7 +11335,7 @@
11318
11335
  })(jQuery, window, document);
11319
11336
 
11320
11337
  /*!
11321
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Embed
11338
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Embed
11322
11339
  * https://github.com/fomantic/Fomantic-UI/
11323
11340
  *
11324
11341
  *
@@ -12007,7 +12024,7 @@
12007
12024
  })(jQuery, window, document);
12008
12025
 
12009
12026
  /*!
12010
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Flyout
12027
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Flyout
12011
12028
  * https://github.com/fomantic/Fomantic-UI/
12012
12029
  *
12013
12030
  *
@@ -13559,7 +13576,7 @@
13559
13576
  })(jQuery, window, document);
13560
13577
 
13561
13578
  /*!
13562
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Modal
13579
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Modal
13563
13580
  * https://github.com/fomantic/Fomantic-UI/
13564
13581
  *
13565
13582
  *
@@ -15197,7 +15214,7 @@
15197
15214
  })(jQuery, window, document);
15198
15215
 
15199
15216
  /*!
15200
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Nag
15217
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Nag
15201
15218
  * https://github.com/fomantic/Fomantic-UI/
15202
15219
  *
15203
15220
  *
@@ -15764,7 +15781,7 @@
15764
15781
  })(jQuery, window, document);
15765
15782
 
15766
15783
  /*!
15767
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Popup
15784
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Popup
15768
15785
  * https://github.com/fomantic/Fomantic-UI/
15769
15786
  *
15770
15787
  *
@@ -17326,7 +17343,7 @@
17326
17343
  })(jQuery, window, document);
17327
17344
 
17328
17345
  /*!
17329
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Progress
17346
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Progress
17330
17347
  * https://github.com/fomantic/Fomantic-UI/
17331
17348
  *
17332
17349
  *
@@ -18306,7 +18323,7 @@
18306
18323
  })(jQuery, window, document);
18307
18324
 
18308
18325
  /*!
18309
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Slider
18326
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Slider
18310
18327
  * https://github.com/fomantic/Fomantic-UI/
18311
18328
  *
18312
18329
  *
@@ -19757,7 +19774,7 @@
19757
19774
  })(jQuery, window, document);
19758
19775
 
19759
19776
  /*!
19760
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Rating
19777
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Rating
19761
19778
  * https://github.com/fomantic/Fomantic-UI/
19762
19779
  *
19763
19780
  *
@@ -20298,7 +20315,7 @@
20298
20315
  })(jQuery, window, document);
20299
20316
 
20300
20317
  /*!
20301
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Search
20318
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Search
20302
20319
  * https://github.com/fomantic/Fomantic-UI/
20303
20320
  *
20304
20321
  *
@@ -21929,7 +21946,7 @@
21929
21946
  })(jQuery, window, document);
21930
21947
 
21931
21948
  /*!
21932
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Shape
21949
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Shape
21933
21950
  * https://github.com/fomantic/Fomantic-UI/
21934
21951
  *
21935
21952
  *
@@ -22115,7 +22132,7 @@
22115
22132
  set: {
22116
22133
 
22117
22134
  defaultSide: function () {
22118
- $activeSide = $side.filter('.' + settings.className.active);
22135
+ $activeSide = $side.filter('.' + className.active);
22119
22136
  $nextSide = $activeSide.next(selector.side).length > 0
22120
22137
  ? $activeSide.next(selector.side)
22121
22138
  : $side.first();
@@ -22141,7 +22158,7 @@
22141
22158
 
22142
22159
  currentStageSize: function () {
22143
22160
  var
22144
- $activeSide = $side.filter('.' + settings.className.active),
22161
+ $activeSide = $side.filter('.' + className.active),
22145
22162
  width = $activeSide.outerWidth(true),
22146
22163
  height = $activeSide.outerHeight(true)
22147
22164
  ;
@@ -22157,7 +22174,7 @@
22157
22174
  var
22158
22175
  $clone = $module.clone().addClass(className.loading),
22159
22176
  $side = $clone.find('>' + selector.sides + '>' + selector.side),
22160
- $activeSide = $side.filter('.' + settings.className.active),
22177
+ $activeSide = $side.filter('.' + className.active),
22161
22178
  $nextSide = nextIndex
22162
22179
  ? $side.eq(nextIndex)
22163
22180
  : ($activeSide.next(selector.side).length > 0
@@ -22727,7 +22744,7 @@
22727
22744
  })(jQuery, window, document);
22728
22745
 
22729
22746
  /*!
22730
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Sidebar
22747
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Sidebar
22731
22748
  * https://github.com/fomantic/Fomantic-UI/
22732
22749
  *
22733
22750
  *
@@ -23782,7 +23799,7 @@
23782
23799
  })(jQuery, window, document);
23783
23800
 
23784
23801
  /*!
23785
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Sticky
23802
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Sticky
23786
23803
  * https://github.com/fomantic/Fomantic-UI/
23787
23804
  *
23788
23805
  *
@@ -24700,7 +24717,7 @@
24700
24717
  })(jQuery, window, document);
24701
24718
 
24702
24719
  /*!
24703
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Tab
24720
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Tab
24704
24721
  * https://github.com/fomantic/Fomantic-UI/
24705
24722
  *
24706
24723
  *
@@ -25668,7 +25685,7 @@
25668
25685
  })(jQuery, window, document);
25669
25686
 
25670
25687
  /*!
25671
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Toast
25688
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Toast
25672
25689
  * https://github.com/fomantic/Fomantic-UI/
25673
25690
  *
25674
25691
  *
@@ -26633,7 +26650,7 @@
26633
26650
  })(jQuery, window, document);
26634
26651
 
26635
26652
  /*!
26636
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Transition
26653
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Transition
26637
26654
  * https://github.com/fomantic/Fomantic-UI/
26638
26655
  *
26639
26656
  *
@@ -27668,7 +27685,7 @@
27668
27685
  })(jQuery, window, document);
27669
27686
 
27670
27687
  /*!
27671
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - API
27688
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - API
27672
27689
  * https://github.com/fomantic/Fomantic-UI/
27673
27690
  *
27674
27691
  *
@@ -28894,7 +28911,7 @@
28894
28911
  })(jQuery, window, document);
28895
28912
 
28896
28913
  /*!
28897
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - State
28914
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - State
28898
28915
  * https://github.com/fomantic/Fomantic-UI/
28899
28916
  *
28900
28917
  *
@@ -29592,7 +29609,7 @@
29592
29609
  })(jQuery, window, document);
29593
29610
 
29594
29611
  /*!
29595
- * # Fomantic-UI 2.9.4-beta.65+f622ea8 - Visibility
29612
+ * # Fomantic-UI 2.9.4-beta.67+eadc3d1 - Visibility
29596
29613
  * https://github.com/fomantic/Fomantic-UI/
29597
29614
  *
29598
29615
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.4-beta.65+f622ea8
2
+ * # Fomantic UI - 2.9.4-beta.67+eadc3d1
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *