fomantic-ui-sass 2.8.7.1 → 2.8.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/app/assets/javascripts/semantic-ui/calendar.js +9 -11
  4. data/app/assets/javascripts/semantic-ui/dimmer.js +8 -11
  5. data/app/assets/javascripts/semantic-ui/dropdown.js +191 -99
  6. data/app/assets/javascripts/semantic-ui/form.js +98 -60
  7. data/app/assets/javascripts/semantic-ui/modal.js +259 -16
  8. data/app/assets/javascripts/semantic-ui/nag.js +130 -64
  9. data/app/assets/javascripts/semantic-ui/popup.js +4 -4
  10. data/app/assets/javascripts/semantic-ui/progress.js +6 -8
  11. data/app/assets/javascripts/semantic-ui/search.js +14 -12
  12. data/app/assets/javascripts/semantic-ui/slider.js +55 -31
  13. data/app/assets/javascripts/semantic-ui/toast.js +26 -6
  14. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  15. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +46 -5
  16. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +14 -7
  17. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +6 -4
  18. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +50 -3
  19. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +6 -2
  20. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +29 -2
  21. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +3 -4
  22. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -1
  23. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1 -1
  24. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +10 -5
  25. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +237 -65
  26. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  27. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +2 -1
  28. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1 -1
  29. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +1 -1
  30. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +41 -37
  31. data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +1 -1
  32. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  33. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
  34. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +34 -2
  35. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +1 -1
  36. data/app/assets/stylesheets/semantic-ui/elements/_text.scss +1 -1
  37. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +2 -3
  38. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +2 -2
  39. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
  40. data/app/assets/stylesheets/semantic-ui/modules/_calendar.scss +3 -3
  41. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +46 -4
  42. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +1 -1
  43. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +72 -3
  44. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +1 -1
  45. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +19 -8
  46. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +168 -16
  47. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +4 -2
  48. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +18 -10
  49. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +18 -33
  50. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +1 -1
  51. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  52. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -1
  53. data/app/assets/stylesheets/semantic-ui/modules/_slider.scss +3 -1
  54. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -2
  55. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
  56. data/app/assets/stylesheets/semantic-ui/modules/_toast.scss +97 -10
  57. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
  58. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
  59. data/app/assets/stylesheets/semantic-ui/views/_card.scss +74 -2
  60. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +1 -1
  61. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +1 -1
  62. data/app/assets/stylesheets/semantic-ui/views/_item.scss +1 -1
  63. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +1 -1
  64. data/lib/fomantic/ui/sass/version.rb +2 -2
  65. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62e1e725ed2d7101530102ba6b6f4db1992f20c8add67575c98725bbd679e54f
4
- data.tar.gz: 9aa23c08007189930b738cc710f7b6cadb79c61b991d442bc772ccb94813eb5c
3
+ metadata.gz: b374f7b8141b9451237686a7b44184c588f717b672377b9718d07c4077fc579f
4
+ data.tar.gz: 84069f8fa5e9e6040401b54947abde3054b232f7fedaaf999fc1a53af5b5f83b
5
5
  SHA512:
6
- metadata.gz: b0bb2e0dfbbca649b5ce07295cb6f560171b51daee247de498d0f1e5aee0f49437f929cb77d7ad08c2c9dcfdf70cd5c7eca482d0d27d9346cc9426791708d21f
7
- data.tar.gz: ca9cf9fd32c3e347052447d0b47d8d70d42dffeedae4602dacc1a998bdda01e3a0af9e8d7b316ea9ca87d45f6ec55387404a835d79a2fa676b0d2c7f1cc5b2a7
6
+ metadata.gz: 0c3ad405514c4228ff741df3fae96237446652b53cddfd0bcce2cd033ac75190b2a4d3158b39576935880dd682af9125a577af8fd0cae14ff73f82d2a05898a1
7
+ data.tar.gz: 2a6838e7c9da90485c64f8d5408efa91af63e784c2a4f0b5f502776a2f22bdd9c627abc6761b341895b3c53a850d9193d04d9dcff2aeb6f435bd2d16d2d70bf7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.8.8
2
+
3
+ Update Fomantic UI to [2.8.8](https://github.com/fomantic/Fomantic-UI/releases/tag/2.8.8)
4
+
1
5
  ## 2.8.7.1
2
6
 
3
7
  * import `text` element
@@ -377,6 +377,7 @@ $.fn.calendar = function(parameters) {
377
377
  cell.data(metadata.date, cellDate);
378
378
  var adjacent = isDay && cellDate.getMonth() !== ((month + 12) % 12);
379
379
  var disabled = (!settings.selectAdjacentDays && adjacent) || !module.helper.isDateInRange(cellDate, mode) || settings.isDisabled(cellDate, mode) || module.helper.isDisabled(cellDate, mode) || !module.helper.isEnabled(cellDate, mode);
380
+ var eventDate;
380
381
  if (disabled) {
381
382
  var disabledDate = module.helper.findDayAsObject(cellDate, mode, settings.disabledDates);
382
383
  if (disabledDate !== null && disabledDate[metadata.message]) {
@@ -390,7 +391,7 @@ $.fn.calendar = function(parameters) {
390
391
  }
391
392
  }
392
393
  } else {
393
- var eventDate = module.helper.findDayAsObject(cellDate, mode, settings.eventDates);
394
+ eventDate = module.helper.findDayAsObject(cellDate, mode, settings.eventDates);
394
395
  if (eventDate !== null) {
395
396
  cell.addClass(eventDate[metadata.class] || settings.eventClass);
396
397
  if (eventDate[metadata.message]) {
@@ -407,9 +408,9 @@ $.fn.calendar = function(parameters) {
407
408
  }
408
409
  var active = module.helper.dateEqual(cellDate, date, mode);
409
410
  var isToday = module.helper.dateEqual(cellDate, today, mode);
410
- cell.toggleClass(className.adjacentCell, adjacent);
411
+ cell.toggleClass(className.adjacentCell, adjacent && !eventDate);
411
412
  cell.toggleClass(className.disabledCell, disabled);
412
- cell.toggleClass(className.activeCell, active && !adjacent);
413
+ cell.toggleClass(className.activeCell, active && !(adjacent && disabled));
413
414
  if (!isHour && !isMinute) {
414
415
  cell.toggleClass(className.todayCell, !adjacent && isToday);
415
416
  }
@@ -971,7 +972,7 @@ $.fn.calendar = function(parameters) {
971
972
 
972
973
  helper: {
973
974
  isDisabled: function(date, mode) {
974
- return (mode === 'day' || mode === 'month' || mode === 'year') && ((settings.disabledDaysOfWeek.indexOf(date.getDay()) !== -1) || settings.disabledDates.some(function(d){
975
+ return (mode === 'day' || mode === 'month' || mode === 'year') && ((mode === 'day' && settings.disabledDaysOfWeek.indexOf(date.getDay()) !== -1) || settings.disabledDates.some(function(d){
975
976
  if(typeof d === 'string') {
976
977
  d = module.helper.sanitiseDate(d);
977
978
  }
@@ -1073,14 +1074,11 @@ $.fn.calendar = function(parameters) {
1073
1074
  return null;
1074
1075
  },
1075
1076
  sanitiseDate: function (date) {
1076
- if (!date) {
1077
- return undefined;
1078
- }
1079
1077
  if (!(date instanceof Date)) {
1080
1078
  date = parser.date('' + date, settings);
1081
1079
  }
1082
- if (!date || date === null || isNaN(date.getTime())) {
1083
- return undefined;
1080
+ if (!date || isNaN(date.getTime())) {
1081
+ return null;
1084
1082
  }
1085
1083
  return date;
1086
1084
  },
@@ -1467,11 +1465,11 @@ $.fn.calendar.settings = {
1467
1465
  if (text.length === 0) {
1468
1466
  return null;
1469
1467
  }
1470
- if(text.match(/^[0-9]{4}[\/\-\.][0-9]{2}[\/\-\.][0-9]{2}$/)){
1468
+ if(text.match(/^[0-9]{4}[\/\-\.][0-9]{1,2}[\/\-\.][0-9]{1,2}$/)){
1471
1469
  text = text.replace(/[\/\-\.]/g,'/') + ' 00:00:00';
1472
1470
  }
1473
1471
  // Reverse date and month in some cases
1474
- text = settings.monthFirst || !text.match(/^[0-9]{2}[\/\-\.]/) ? text : text.replace(/[\/\-\.]/g,'/').replace(/([0-9]+)\/([0-9]+)/,'$2/$1');
1472
+ text = settings.monthFirst || !text.match(/^[0-9]{1,2}[\/\-\.]/) ? text : text.replace(/[\/\-\.]/g,'/').replace(/([0-9]+)\/([0-9]+)/,'$2/$1');
1475
1473
  var textDate = new Date(text);
1476
1474
  var numberOnly = text.match(/^[0-9]+$/) !== null;
1477
1475
  if(!numberOnly && !isNaN(textDate.getDate())) {
@@ -155,7 +155,7 @@ $.fn.dimmer = function(parameters) {
155
155
 
156
156
  event: {
157
157
  click: function(event) {
158
- module.verbose('Determining if event occured on dimmer', event);
158
+ module.verbose('Determining if event occurred on dimmer', event);
159
159
  if( $dimmer.find(event.target).length === 0 || $(event.target).is(selector.content) ) {
160
160
  module.hide();
161
161
  event.stopImmediatePropagation();
@@ -255,7 +255,7 @@ $.fn.dimmer = function(parameters) {
255
255
  displayType : settings.useFlex
256
256
  ? 'flex'
257
257
  : 'block',
258
- animation : settings.transition + ' in',
258
+ animation : (settings.transition.showMethod || settings.transition) + ' in',
259
259
  queue : false,
260
260
  duration : module.get.duration(),
261
261
  useFailSafe : true,
@@ -302,7 +302,7 @@ $.fn.dimmer = function(parameters) {
302
302
  displayType : settings.useFlex
303
303
  ? 'flex'
304
304
  : 'block',
305
- animation : settings.transition + ' out',
305
+ animation : (settings.transition.hideMethod || settings.transition) + ' out',
306
306
  queue : false,
307
307
  duration : module.get.duration(),
308
308
  useFailSafe : true,
@@ -335,15 +335,12 @@ $.fn.dimmer = function(parameters) {
335
335
  return $dimmer;
336
336
  },
337
337
  duration: function() {
338
- if(typeof settings.duration == 'object') {
339
- if( module.is.active() ) {
340
- return settings.duration.hide;
341
- }
342
- else {
343
- return settings.duration.show;
344
- }
338
+ if( module.is.active() ) {
339
+ return settings.transition.hideDuration || settings.duration.hide || settings.duration;
340
+ }
341
+ else {
342
+ return settings.transition.showDuration || settings.duration.show || settings.duration;
345
343
  }
346
- return settings.duration;
347
344
  }
348
345
  },
349
346