fomantic-ui 2.9.0-beta.264 → 2.9.0-beta.267

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 (153) hide show
  1. package/.github/workflows/nightly.yml +2 -0
  2. package/dist/components/accordion.css +1 -1
  3. package/dist/components/accordion.js +1 -1
  4. package/dist/components/accordion.min.css +1 -1
  5. package/dist/components/accordion.min.js +1 -1
  6. package/dist/components/ad.css +1 -1
  7. package/dist/components/ad.min.css +1 -1
  8. package/dist/components/api.js +69 -14
  9. package/dist/components/api.min.js +2 -2
  10. package/dist/components/breadcrumb.css +1 -1
  11. package/dist/components/breadcrumb.min.css +1 -1
  12. package/dist/components/button.css +1 -1
  13. package/dist/components/button.min.css +1 -1
  14. package/dist/components/calendar.css +1 -1
  15. package/dist/components/calendar.js +2 -2
  16. package/dist/components/calendar.min.css +1 -1
  17. package/dist/components/calendar.min.js +2 -2
  18. package/dist/components/card.css +1 -1
  19. package/dist/components/card.min.css +1 -1
  20. package/dist/components/checkbox.css +1 -1
  21. package/dist/components/checkbox.js +1 -1
  22. package/dist/components/checkbox.min.css +1 -1
  23. package/dist/components/checkbox.min.js +1 -1
  24. package/dist/components/comment.css +1 -1
  25. package/dist/components/comment.min.css +1 -1
  26. package/dist/components/container.css +1 -1
  27. package/dist/components/container.min.css +1 -1
  28. package/dist/components/dimmer.css +1 -1
  29. package/dist/components/dimmer.js +1 -1
  30. package/dist/components/dimmer.min.css +1 -1
  31. package/dist/components/dimmer.min.js +1 -1
  32. package/dist/components/divider.css +1 -1
  33. package/dist/components/divider.min.css +1 -1
  34. package/dist/components/dropdown.css +1 -1
  35. package/dist/components/dropdown.js +1 -1
  36. package/dist/components/dropdown.min.css +1 -1
  37. package/dist/components/dropdown.min.js +1 -1
  38. package/dist/components/embed.css +1 -1
  39. package/dist/components/embed.js +1 -1
  40. package/dist/components/embed.min.css +1 -1
  41. package/dist/components/embed.min.js +1 -1
  42. package/dist/components/feed.css +1 -1
  43. package/dist/components/feed.min.css +1 -1
  44. package/dist/components/flag.css +1 -1
  45. package/dist/components/flag.min.css +1 -1
  46. package/dist/components/form.css +1 -1
  47. package/dist/components/form.js +1 -1
  48. package/dist/components/form.min.css +1 -1
  49. package/dist/components/form.min.js +1 -1
  50. package/dist/components/grid.css +1 -1
  51. package/dist/components/grid.min.css +1 -1
  52. package/dist/components/header.css +1 -1
  53. package/dist/components/header.min.css +1 -1
  54. package/dist/components/icon.css +1 -1
  55. package/dist/components/icon.min.css +1 -1
  56. package/dist/components/image.css +1 -1
  57. package/dist/components/image.min.css +1 -1
  58. package/dist/components/input.css +1 -1
  59. package/dist/components/input.min.css +1 -1
  60. package/dist/components/item.css +1 -1
  61. package/dist/components/item.min.css +1 -1
  62. package/dist/components/label.css +1 -1
  63. package/dist/components/label.min.css +1 -1
  64. package/dist/components/list.css +1 -1
  65. package/dist/components/list.min.css +1 -1
  66. package/dist/components/loader.css +1 -1
  67. package/dist/components/loader.min.css +1 -1
  68. package/dist/components/message.css +1 -1
  69. package/dist/components/message.min.css +1 -1
  70. package/dist/components/modal.css +1 -1
  71. package/dist/components/modal.js +1 -1
  72. package/dist/components/modal.min.css +1 -1
  73. package/dist/components/modal.min.js +1 -1
  74. package/dist/components/nag.css +1 -1
  75. package/dist/components/nag.js +1 -1
  76. package/dist/components/nag.min.css +1 -1
  77. package/dist/components/nag.min.js +1 -1
  78. package/dist/components/placeholder.css +1 -1
  79. package/dist/components/placeholder.min.css +1 -1
  80. package/dist/components/popup.css +1 -1
  81. package/dist/components/popup.js +1 -1
  82. package/dist/components/popup.min.css +1 -1
  83. package/dist/components/popup.min.js +1 -1
  84. package/dist/components/progress.css +1 -1
  85. package/dist/components/progress.js +1 -1
  86. package/dist/components/progress.min.css +1 -1
  87. package/dist/components/progress.min.js +1 -1
  88. package/dist/components/rail.css +1 -1
  89. package/dist/components/rail.min.css +1 -1
  90. package/dist/components/rating.css +1 -1
  91. package/dist/components/rating.js +1 -1
  92. package/dist/components/rating.min.css +1 -1
  93. package/dist/components/rating.min.js +1 -1
  94. package/dist/components/reset.css +1 -1
  95. package/dist/components/reset.min.css +1 -1
  96. package/dist/components/reveal.css +1 -1
  97. package/dist/components/reveal.min.css +1 -1
  98. package/dist/components/search.css +1 -1
  99. package/dist/components/search.js +1 -1
  100. package/dist/components/search.min.css +1 -1
  101. package/dist/components/search.min.js +1 -1
  102. package/dist/components/segment.css +1 -1
  103. package/dist/components/segment.min.css +1 -1
  104. package/dist/components/shape.css +1 -1
  105. package/dist/components/shape.js +1 -1
  106. package/dist/components/shape.min.css +1 -1
  107. package/dist/components/shape.min.js +1 -1
  108. package/dist/components/sidebar.css +1 -1
  109. package/dist/components/sidebar.js +1 -1
  110. package/dist/components/sidebar.min.css +1 -1
  111. package/dist/components/sidebar.min.js +1 -1
  112. package/dist/components/site.css +1 -1
  113. package/dist/components/site.js +1 -1
  114. package/dist/components/site.min.css +1 -1
  115. package/dist/components/site.min.js +1 -1
  116. package/dist/components/slider.js +1 -1
  117. package/dist/components/slider.min.js +1 -1
  118. package/dist/components/state.js +1 -1
  119. package/dist/components/state.min.js +1 -1
  120. package/dist/components/statistic.css +1 -1
  121. package/dist/components/statistic.min.css +1 -1
  122. package/dist/components/step.css +1 -1
  123. package/dist/components/step.min.css +1 -1
  124. package/dist/components/sticky.css +1 -1
  125. package/dist/components/sticky.js +1 -1
  126. package/dist/components/sticky.min.css +1 -1
  127. package/dist/components/sticky.min.js +1 -1
  128. package/dist/components/tab.css +1 -1
  129. package/dist/components/tab.js +1 -1
  130. package/dist/components/tab.min.css +1 -1
  131. package/dist/components/tab.min.js +1 -1
  132. package/dist/components/table.css +1 -1
  133. package/dist/components/table.min.css +1 -1
  134. package/dist/components/text.css +1 -1
  135. package/dist/components/text.min.css +1 -1
  136. package/dist/components/toast.css +1 -1
  137. package/dist/components/toast.js +1 -1
  138. package/dist/components/toast.min.css +1 -1
  139. package/dist/components/toast.min.js +1 -1
  140. package/dist/components/transition.css +1 -1
  141. package/dist/components/transition.js +1 -1
  142. package/dist/components/transition.min.css +1 -1
  143. package/dist/components/transition.min.js +1 -1
  144. package/dist/components/visibility.js +1 -1
  145. package/dist/components/visibility.min.js +1 -1
  146. package/dist/semantic.css +49 -49
  147. package/dist/semantic.js +94 -39
  148. package/dist/semantic.min.css +1 -1
  149. package/dist/semantic.min.js +2 -2
  150. package/package.json +1 -1
  151. package/scripts/nightly-version.js +39 -39
  152. package/src/definitions/behaviors/api.js +68 -13
  153. package/src/definitions/modules/calendar.js +1 -1
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.264
2
+ * # Fomantic UI - 2.9.0-beta.267+acc903b
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.0-beta.264 - Site
12
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Site
13
13
  * http://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -503,7 +503,7 @@ $.extend($.expr[ ":" ], {
503
503
  })( jQuery, window, document );
504
504
 
505
505
  /*!
506
- * # Fomantic-UI 2.9.0-beta.264 - Form Validation
506
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Form Validation
507
507
  * http://github.com/fomantic/Fomantic-UI/
508
508
  *
509
509
  *
@@ -2584,7 +2584,7 @@ $.fn.form.settings = {
2584
2584
  })( jQuery, window, document );
2585
2585
 
2586
2586
  /*!
2587
- * # Fomantic-UI 2.9.0-beta.264 - Accordion
2587
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Accordion
2588
2588
  * http://github.com/fomantic/Fomantic-UI/
2589
2589
  *
2590
2590
  *
@@ -3203,7 +3203,7 @@ $.extend( $.easing, {
3203
3203
 
3204
3204
 
3205
3205
  /*!
3206
- * # Fomantic-UI 2.9.0-beta.264 - Calendar
3206
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Calendar
3207
3207
  * http://github.com/fomantic/Fomantic-UI/
3208
3208
  *
3209
3209
  *
@@ -4764,7 +4764,7 @@ $.fn.calendar.settings = {
4764
4764
  if (!text) {
4765
4765
  return null;
4766
4766
  }
4767
- text = String(text).replace(/\s/g,'');
4767
+ text = String(text).trim().replace(/([.:\/\-])\s+/g,'$1').replace(/\s+([.:\/-])/g,'$1').replace(/\s+/g,' ');
4768
4768
  if (text.length === 0) {
4769
4769
  return null;
4770
4770
  }
@@ -5077,7 +5077,7 @@ $.fn.calendar.settings = {
5077
5077
  })(jQuery, window, document);
5078
5078
 
5079
5079
  /*!
5080
- * # Fomantic-UI 2.9.0-beta.264 - Checkbox
5080
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Checkbox
5081
5081
  * http://github.com/fomantic/Fomantic-UI/
5082
5082
  *
5083
5083
  *
@@ -5960,7 +5960,7 @@ $.fn.checkbox.settings = {
5960
5960
  })( jQuery, window, document );
5961
5961
 
5962
5962
  /*!
5963
- * # Fomantic-UI 2.9.0-beta.264 - Dimmer
5963
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Dimmer
5964
5964
  * http://github.com/fomantic/Fomantic-UI/
5965
5965
  *
5966
5966
  *
@@ -6723,7 +6723,7 @@ $.fn.dimmer.settings = {
6723
6723
  })( jQuery, window, document );
6724
6724
 
6725
6725
  /*!
6726
- * # Fomantic-UI 2.9.0-beta.264 - Dropdown
6726
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Dropdown
6727
6727
  * http://github.com/fomantic/Fomantic-UI/
6728
6728
  *
6729
6729
  *
@@ -11081,7 +11081,7 @@ $.fn.dropdown.settings.templates = {
11081
11081
  })( jQuery, window, document );
11082
11082
 
11083
11083
  /*!
11084
- * # Fomantic-UI 2.9.0-beta.264 - Embed
11084
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Embed
11085
11085
  * http://github.com/fomantic/Fomantic-UI/
11086
11086
  *
11087
11087
  *
@@ -11791,7 +11791,7 @@ $.fn.embed.settings = {
11791
11791
  })( jQuery, window, document );
11792
11792
 
11793
11793
  /*!
11794
- * # Fomantic-UI 2.9.0-beta.264 - Modal
11794
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Modal
11795
11795
  * http://github.com/fomantic/Fomantic-UI/
11796
11796
  *
11797
11797
  *
@@ -13322,7 +13322,7 @@ $.fn.modal.settings.templates = {
13322
13322
  })( jQuery, window, document );
13323
13323
 
13324
13324
  /*!
13325
- * # Fomantic-UI 2.9.0-beta.264 - Nag
13325
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Nag
13326
13326
  * http://github.com/fomantic/Fomantic-UI/
13327
13327
  *
13328
13328
  *
@@ -13881,7 +13881,7 @@ $.extend( $.easing, {
13881
13881
  })( jQuery, window, document );
13882
13882
 
13883
13883
  /*!
13884
- * # Fomantic-UI 2.9.0-beta.264 - Popup
13884
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Popup
13885
13885
  * http://github.com/fomantic/Fomantic-UI/
13886
13886
  *
13887
13887
  *
@@ -15423,7 +15423,7 @@ $.fn.popup.settings = {
15423
15423
  })( jQuery, window, document );
15424
15424
 
15425
15425
  /*!
15426
- * # Fomantic-UI 2.9.0-beta.264 - Progress
15426
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Progress
15427
15427
  * http://github.com/fomantic/Fomantic-UI/
15428
15428
  *
15429
15429
  *
@@ -16460,7 +16460,7 @@ $.fn.progress.settings = {
16460
16460
  })( jQuery, window, document );
16461
16461
 
16462
16462
  /*!
16463
- * # Fomantic-UI 2.9.0-beta.264 - Slider
16463
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Slider
16464
16464
  * http://github.com/fomantic/Fomantic-UI/
16465
16465
  *
16466
16466
  *
@@ -17799,7 +17799,7 @@ $.fn.slider.settings = {
17799
17799
  })( jQuery, window, document );
17800
17800
 
17801
17801
  /*!
17802
- * # Fomantic-UI 2.9.0-beta.264 - Rating
17802
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Rating
17803
17803
  * http://github.com/fomantic/Fomantic-UI/
17804
17804
  *
17805
17805
  *
@@ -18354,7 +18354,7 @@ $.fn.rating.settings = {
18354
18354
  })( jQuery, window, document );
18355
18355
 
18356
18356
  /*!
18357
- * # Fomantic-UI 2.9.0-beta.264 - Search
18357
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Search
18358
18358
  * http://github.com/fomantic/Fomantic-UI/
18359
18359
  *
18360
18360
  *
@@ -19922,7 +19922,7 @@ $.fn.search.settings = {
19922
19922
  })( jQuery, window, document );
19923
19923
 
19924
19924
  /*!
19925
- * # Fomantic-UI 2.9.0-beta.264 - Shape
19925
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Shape
19926
19926
  * http://github.com/fomantic/Fomantic-UI/
19927
19927
  *
19928
19928
  *
@@ -20771,7 +20771,7 @@ $.fn.shape.settings = {
20771
20771
  })( jQuery, window, document );
20772
20772
 
20773
20773
  /*!
20774
- * # Fomantic-UI 2.9.0-beta.264 - Sidebar
20774
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Sidebar
20775
20775
  * http://github.com/fomantic/Fomantic-UI/
20776
20776
  *
20777
20777
  *
@@ -21810,7 +21810,7 @@ $.fn.sidebar.settings = {
21810
21810
  })( jQuery, window, document );
21811
21811
 
21812
21812
  /*!
21813
- * # Fomantic-UI 2.9.0-beta.264 - Sticky
21813
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Sticky
21814
21814
  * http://github.com/fomantic/Fomantic-UI/
21815
21815
  *
21816
21816
  *
@@ -22768,7 +22768,7 @@ $.fn.sticky.settings = {
22768
22768
  })( jQuery, window, document );
22769
22769
 
22770
22770
  /*!
22771
- * # Fomantic-UI 2.9.0-beta.264 - Tab
22771
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Tab
22772
22772
  * http://github.com/fomantic/Fomantic-UI/
22773
22773
  *
22774
22774
  *
@@ -23788,7 +23788,7 @@ $.fn.tab.settings = {
23788
23788
  })( jQuery, window, document );
23789
23789
 
23790
23790
  /*!
23791
- * # Fomantic-UI 2.9.0-beta.264 - Toast
23791
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Toast
23792
23792
  * http://github.com/fomantic/Fomantic-UI/
23793
23793
  *
23794
23794
  *
@@ -24709,7 +24709,7 @@ $.extend( $.easing, {
24709
24709
  })( jQuery, window, document );
24710
24710
 
24711
24711
  /*!
24712
- * # Fomantic-UI 2.9.0-beta.264 - Transition
24712
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Transition
24713
24713
  * http://github.com/fomantic/Fomantic-UI/
24714
24714
  *
24715
24715
  *
@@ -25824,7 +25824,7 @@ $.fn.transition.settings = {
25824
25824
  })( jQuery, window, document );
25825
25825
 
25826
25826
  /*!
25827
- * # Fomantic-UI 2.9.0-beta.264 - API
25827
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - API
25828
25828
  * http://github.com/fomantic/Fomantic-UI/
25829
25829
  *
25830
25830
  *
@@ -26253,28 +26253,76 @@ $.api = $.fn.api = function(parameters) {
26253
26253
  formData: function(data) {
26254
26254
  var
26255
26255
  formData = {},
26256
- hasOtherData
26256
+ hasOtherData,
26257
+ useFormDataApi = settings.serializeForm === 'formdata'
26257
26258
  ;
26258
26259
  data = data || originalData || settings.data;
26259
26260
  hasOtherData = $.isPlainObject(data);
26260
26261
 
26261
- $.each($form.serializeArray(), function (i, element) {
26262
- var node = formData[element.name];
26263
-
26264
- if ('undefined' !== typeof node && node !== null) {
26265
- if (Array.isArray(node)) {
26266
- node.push(element.value);
26262
+ if (useFormDataApi) {
26263
+ formData = new FormData($form[0]);
26264
+ settings.processData = typeof settings.processData !== 'undefined' ? settings.processData : false;
26265
+ settings.contentType = typeof settings.contentType !== 'undefined' ? settings.contentType : false;
26266
+ } else {
26267
+ var formArray = $form.serializeArray(),
26268
+ pushes = {},
26269
+ pushValues= {},
26270
+ build = function(base, key, value) {
26271
+ base[key] = value;
26272
+ return base;
26273
+ }
26274
+ ;
26275
+ // add files
26276
+ $.each($('input[type="file"]',$form), function(i, tag) {
26277
+ $.each($(tag)[0].files, function(j, file) {
26278
+ formArray.push({name:tag.name, value: file});
26279
+ });
26280
+ });
26281
+ $.each(formArray, function(i, el) {
26282
+ if (!settings.regExp.validate.test(el.name)) return;
26283
+ var isCheckbox = $('[name="' + el.name + '"]', $form).attr('type') === 'checkbox',
26284
+ floatValue = parseFloat(el.value),
26285
+ value = (isCheckbox && el.value === 'on') || el.value === 'true' || (String(floatValue) === el.value ? floatValue : (el.value === 'false' ? false : el.value)),
26286
+ nameKeys = el.name.match(settings.regExp.key) || [], k, pushKey= el.name.replace(/\[\]$/,'')
26287
+ ;
26288
+ if(!(pushKey in pushes)) {
26289
+ pushes[pushKey] = 0;
26290
+ pushValues[pushKey] = value;
26291
+ } else if (Array.isArray(pushValues[pushKey])) {
26292
+ pushValues[pushKey].push(value);
26267
26293
  } else {
26268
- formData[element.name] = [node, element.value];
26294
+ pushValues[pushKey] = [pushValues[pushKey] , value];
26269
26295
  }
26270
- } else {
26271
- formData[element.name] = element.value;
26272
- }
26273
- });
26296
+ value = pushValues[pushKey];
26297
+
26298
+ while ((k = nameKeys.pop()) !== undefined) {
26299
+ // foo[]
26300
+ if (k == '' && !Array.isArray(value)){
26301
+ value = build([], pushes[pushKey]++, value);
26302
+ }
26303
+ // foo[n]
26304
+ else if (settings.regExp.fixed.test(k)) {
26305
+ value = build([], k, value);
26306
+ }
26307
+ // foo; foo[bar]
26308
+ else if (settings.regExp.named.test(k)) {
26309
+ value = build({}, k, value);
26310
+ }
26311
+ }
26312
+ formData = $.extend(true, formData, value);
26313
+ });
26314
+ }
26274
26315
 
26275
26316
  if(hasOtherData) {
26276
26317
  module.debug('Extending existing data with form data', data, formData);
26277
- data = $.extend(true, {}, data, formData);
26318
+ if(useFormDataApi) {
26319
+ $.each(Object.keys(data),function(i, el){
26320
+ formData.append(el, data[el]);
26321
+ });
26322
+ data = formData;
26323
+ } else {
26324
+ data = $.extend(true, {}, data, formData);
26325
+ }
26278
26326
  }
26279
26327
  else {
26280
26328
  module.debug('Adding form data', formData);
@@ -26913,6 +26961,8 @@ $.api.settings = {
26913
26961
  defaultData : true,
26914
26962
 
26915
26963
  // whether to serialize closest form
26964
+ // use true to convert complex named keys like a[b][1][c][] into a nested object
26965
+ // use 'formdata' for formdata web api
26916
26966
  serializeForm : false,
26917
26967
 
26918
26968
  // how long to wait before request should occur
@@ -26983,6 +27033,11 @@ $.api.settings = {
26983
27033
  regExp : {
26984
27034
  required : /\{\$*[A-z0-9]+\}/g,
26985
27035
  optional : /\{\/\$*[A-z0-9]+\}/g,
27036
+ validate: /^[a-z_][a-z0-9_-]*(?:\[(?:\d*|[a-z0-9_-]+)\])*$/i,
27037
+ key: /[a-z0-9_-]+|(?=\[\])/gi,
27038
+ push: /^$/,
27039
+ fixed: /^\d+$/,
27040
+ named: /^[a-z0-9_-]+$/i
26986
27041
  },
26987
27042
 
26988
27043
  className: {
@@ -27006,7 +27061,7 @@ $.api.settings = {
27006
27061
  })( jQuery, window, document );
27007
27062
 
27008
27063
  /*!
27009
- * # Fomantic-UI 2.9.0-beta.264 - State
27064
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - State
27010
27065
  * http://github.com/fomantic/Fomantic-UI/
27011
27066
  *
27012
27067
  *
@@ -27718,7 +27773,7 @@ $.fn.state.settings = {
27718
27773
  })( jQuery, window, document );
27719
27774
 
27720
27775
  /*!
27721
- * # Fomantic-UI 2.9.0-beta.264 - Visibility
27776
+ * # Fomantic-UI 2.9.0-beta.267+acc903b - Visibility
27722
27777
  * http://github.com/fomantic/Fomantic-UI/
27723
27778
  *
27724
27779
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.264
2
+ * # Fomantic UI - 2.9.0-beta.267+acc903b
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *