fomantic-ui-sass 2.9.1 → 2.9.3

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 (97) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/app/assets/fonts/semantic-ui/Lato-Bold.woff +0 -0
  4. data/app/assets/fonts/semantic-ui/Lato-Bold.woff2 +0 -0
  5. data/app/assets/fonts/semantic-ui/Lato-BoldItalic.woff +0 -0
  6. data/app/assets/fonts/semantic-ui/Lato-BoldItalic.woff2 +0 -0
  7. data/app/assets/fonts/semantic-ui/Lato-Italic.woff +0 -0
  8. data/app/assets/fonts/semantic-ui/Lato-Italic.woff2 +0 -0
  9. data/app/assets/fonts/semantic-ui/Lato-Regular.woff +0 -0
  10. data/app/assets/fonts/semantic-ui/Lato-Regular.woff2 +0 -0
  11. data/app/assets/fonts/semantic-ui/LatoLatin-Bold.woff +0 -0
  12. data/app/assets/fonts/semantic-ui/LatoLatin-Bold.woff2 +0 -0
  13. data/app/assets/fonts/semantic-ui/LatoLatin-BoldItalic.woff +0 -0
  14. data/app/assets/fonts/semantic-ui/LatoLatin-BoldItalic.woff2 +0 -0
  15. data/app/assets/fonts/semantic-ui/LatoLatin-Italic.woff +0 -0
  16. data/app/assets/fonts/semantic-ui/LatoLatin-Italic.woff2 +0 -0
  17. data/app/assets/fonts/semantic-ui/LatoLatin-Regular.woff +0 -0
  18. data/app/assets/fonts/semantic-ui/LatoLatin-Regular.woff2 +0 -0
  19. data/app/assets/javascripts/semantic-ui/accordion.js +4 -8
  20. data/app/assets/javascripts/semantic-ui/api.js +22 -15
  21. data/app/assets/javascripts/semantic-ui/calendar.js +1 -6
  22. data/app/assets/javascripts/semantic-ui/checkbox.js +4 -6
  23. data/app/assets/javascripts/semantic-ui/dimmer.js +3 -7
  24. data/app/assets/javascripts/semantic-ui/dropdown.js +58 -35
  25. data/app/assets/javascripts/semantic-ui/embed.js +2 -7
  26. data/app/assets/javascripts/semantic-ui/flyout.js +56 -86
  27. data/app/assets/javascripts/semantic-ui/form.js +216 -157
  28. data/app/assets/javascripts/semantic-ui/modal.js +58 -39
  29. data/app/assets/javascripts/semantic-ui/nag.js +17 -9
  30. data/app/assets/javascripts/semantic-ui/popup.js +46 -26
  31. data/app/assets/javascripts/semantic-ui/progress.js +3 -34
  32. data/app/assets/javascripts/semantic-ui/rating.js +1 -5
  33. data/app/assets/javascripts/semantic-ui/search.js +5 -8
  34. data/app/assets/javascripts/semantic-ui/shape.js +15 -41
  35. data/app/assets/javascripts/semantic-ui/sidebar.js +21 -64
  36. data/app/assets/javascripts/semantic-ui/site.js +1 -1
  37. data/app/assets/javascripts/semantic-ui/slider.js +130 -34
  38. data/app/assets/javascripts/semantic-ui/state.js +23 -20
  39. data/app/assets/javascripts/semantic-ui/sticky.js +17 -16
  40. data/app/assets/javascripts/semantic-ui/tab.js +18 -8
  41. data/app/assets/javascripts/semantic-ui/toast.js +19 -11
  42. data/app/assets/javascripts/semantic-ui/transition.js +11 -66
  43. data/app/assets/javascripts/semantic-ui/visibility.js +15 -6
  44. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  45. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +118 -56
  46. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +113 -107
  47. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +39 -9
  48. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +1 -1
  49. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +66 -2
  50. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +2 -2
  51. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +62 -1
  52. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -1
  53. data/app/assets/stylesheets/semantic-ui/elements/_emoji.scss +698 -250
  54. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +3 -2
  55. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
  56. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +62 -62
  57. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  58. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +61 -51
  59. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +21 -2
  60. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +13 -13
  61. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +282 -282
  62. data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +1 -1
  63. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  64. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
  65. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +186 -37
  66. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +4 -4
  67. data/app/assets/stylesheets/semantic-ui/elements/_text.scss +2 -2
  68. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +1 -1
  69. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +1 -10
  70. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
  71. data/app/assets/stylesheets/semantic-ui/modules/_calendar.scss +145 -8
  72. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +89 -45
  73. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +3 -3
  74. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +126 -31
  75. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +2 -2
  76. data/app/assets/stylesheets/semantic-ui/modules/_flyout.scss +1 -1
  77. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +10 -3
  78. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
  79. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +188 -42
  80. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
  81. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
  82. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +26 -1
  83. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  84. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -1
  85. data/app/assets/stylesheets/semantic-ui/modules/_slider.scss +9 -6
  86. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
  87. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
  88. data/app/assets/stylesheets/semantic-ui/modules/_toast.scss +6 -1
  89. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
  90. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
  91. data/app/assets/stylesheets/semantic-ui/views/_card.scss +1 -1
  92. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +6 -1
  93. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +486 -5
  94. data/app/assets/stylesheets/semantic-ui/views/_item.scss +7 -2
  95. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +1 -1
  96. data/lib/fomantic/ui/sass/version.rb +2 -2
  97. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c95a254b2e7c856a2308dd82e62ba2863f5f2d6973450daf1736e167e7ad5d7a
4
- data.tar.gz: 81028095f0a0e454ea5efb3186ca5151aa5d118ce3ca36e3ebeca77bd6495191
3
+ metadata.gz: 06a05c3a6512d2d1bc6eb348aef0caa7baaa73d40cba0122de39fb785b35b13f
4
+ data.tar.gz: 95ea2f3624296370ce256d5a81c7434f1c3e5d8b59c132ceb7156eda3555f79d
5
5
  SHA512:
6
- metadata.gz: 37d12c522fc727907012f888f27ad4d365775bee587afe66c3165fa5298109d8c548e37916c491ea0835131a740a1899525c9fa6fc21691323071570d2a7cd5d
7
- data.tar.gz: 15e61dab6061c700c5451f3e9b0a8271898c01303ed59b763449ba5eaba082c0305cc5d67e5931eb3f8b54c7c9bbb3413627fcec5511da8e3d2275ad4ce30fc6
6
+ metadata.gz: 0fb0e5781aab5f94aba0d03e70a1b136be0a3359448149447b871e69f1701503501c7d8805b54194e3eab103dc25fcde1c82e0fe0a079501740a5536492794d7
7
+ data.tar.gz: 19295d7bca0e060131e2b5592ddee8f317956b0e1555017b0cde1b6639667d3a074ec78b9c0f76386ca1821e8a26878181d539a10cd2cdf12160d5364d673513
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 2.9.3
2
+
3
+ Update Fomantic UI to [2.9.3](https://github.com/fomantic/Fomantic-UI/releases/tag/2.9.3)
4
+
5
+ ## 2.9.2
6
+
7
+ Update Fomantic UI to [2.9.2](https://github.com/fomantic/Fomantic-UI/releases/tag/2.9.2)
8
+
9
+ ## 2.9.1
10
+
11
+ Update Fomantic UI to [2.9.1](https://github.com/fomantic/Fomantic-UI/releases/tag/2.9.1)
12
+
1
13
  ## 2.9.0
2
14
 
3
15
  Update Fomantic UI to [2.9.0](https://github.com/fomantic/Fomantic-UI/releases/tag/2.9.0)
@@ -45,7 +45,6 @@
45
45
 
46
46
  eventNamespace = '.' + namespace,
47
47
  moduleNamespace = 'module-' + namespace,
48
- moduleSelector = $allModules.selector || '',
49
48
 
50
49
  $module = $(this),
51
50
  $title = $module.find(selector.title),
@@ -175,7 +174,7 @@
175
174
  .addClass(className.animating)
176
175
  ;
177
176
  if (settings.animateChildren) {
178
- if ($.fn.transition !== undefined && $module.transition('is supported')) {
177
+ if ($.fn.transition !== undefined) {
179
178
  $activeContent
180
179
  .children()
181
180
  .transition({
@@ -239,7 +238,7 @@
239
238
  .addClass(className.animating)
240
239
  ;
241
240
  if (settings.animateChildren) {
242
- if ($.fn.transition !== undefined && $module.transition('is supported')) {
241
+ if ($.fn.transition !== undefined) {
243
242
  $activeContent
244
243
  .children()
245
244
  .transition({
@@ -308,7 +307,7 @@
308
307
  .stop(true, true)
309
308
  ;
310
309
  if (settings.animateChildren) {
311
- if ($.fn.transition !== undefined && $module.transition('is supported')) {
310
+ if ($.fn.transition !== undefined) {
312
311
  $openContents
313
312
  .children()
314
313
  .transition({
@@ -439,7 +438,7 @@
439
438
  });
440
439
  }
441
440
  clearTimeout(module.performance.timer);
442
- module.performance.timer = setTimeout(module.performance.display, 500);
441
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
443
442
  },
444
443
  display: function () {
445
444
  var
@@ -452,9 +451,6 @@
452
451
  totalTime += data['Execution Time'];
453
452
  });
454
453
  title += ' ' + totalTime + 'ms';
455
- if (moduleSelector) {
456
- title += ' \'' + moduleSelector + '\'';
457
- }
458
454
  if (performance.length > 0) {
459
455
  console.groupCollapsed(title);
460
456
  if (console.table) {
@@ -29,14 +29,25 @@
29
29
  $allModules = isFunction(this)
30
30
  ? $(window)
31
31
  : $(this),
32
- moduleSelector = $allModules.selector || '',
33
32
  time = Date.now(),
34
33
  performance = [],
35
34
 
36
35
  query = arguments[0],
37
36
  methodInvoked = typeof query === 'string',
38
37
  queryArguments = [].slice.call(arguments, 1),
38
+ contextCheck = function (context, win) {
39
+ var $context;
40
+ if ([window, document].indexOf(context) >= 0) {
41
+ $context = $(context);
42
+ } else {
43
+ $context = $(win.document).find(context);
44
+ if ($context.length === 0) {
45
+ $context = win.frameElement ? contextCheck(context, win.parent) : window;
46
+ }
47
+ }
39
48
 
49
+ return $context;
50
+ },
40
51
  returnedValue
41
52
  ;
42
53
 
@@ -47,6 +58,7 @@
47
58
  : $.extend({}, $.fn.api.settings),
48
59
 
49
60
  // internal aliases
61
+ regExp = settings.regExp,
50
62
  namespace = settings.namespace,
51
63
  metadata = settings.metadata,
52
64
  selector = settings.selector,
@@ -62,9 +74,7 @@
62
74
  $form = $module.closest(selector.form),
63
75
 
64
76
  // context used for state
65
- $context = settings.stateContext
66
- ? ([window, document].indexOf(settings.stateContext) < 0 ? $(document).find(settings.stateContext) : $(settings.stateContext))
67
- : $module,
77
+ $context = settings.stateContext ? contextCheck(settings.stateContext, window) : $module,
68
78
 
69
79
  // request details
70
80
  ajaxSettings,
@@ -351,8 +361,8 @@
351
361
  optionalVariables
352
362
  ;
353
363
  if (url) {
354
- requiredVariables = url.match(settings.regExp.required);
355
- optionalVariables = url.match(settings.regExp.optional);
364
+ requiredVariables = url.match(regExp.required);
365
+ optionalVariables = url.match(regExp.optional);
356
366
  urlData = urlData || settings.urlData;
357
367
  if (requiredVariables) {
358
368
  module.debug('Looking for required URL variables', requiredVariables);
@@ -449,7 +459,7 @@
449
459
  });
450
460
  });
451
461
  $.each(formArray, function (i, el) {
452
- if (!settings.regExp.validate.test(el.name)) {
462
+ if (!regExp.validate.test(el.name)) {
453
463
  return;
454
464
  }
455
465
  var
@@ -460,7 +470,7 @@
460
470
  || (String(floatValue) === el.value
461
471
  ? floatValue
462
472
  : (el.value === 'false' ? false : el.value)),
463
- nameKeys = el.name.match(settings.regExp.key) || [],
473
+ nameKeys = el.name.match(regExp.key) || [],
464
474
  pushKey = el.name.replace(/\[]$/, '')
465
475
  ;
466
476
  if (!(pushKey in pushes)) {
@@ -480,9 +490,9 @@
480
490
 
481
491
  if (k === '' && !Array.isArray(value)) { // foo[]
482
492
  value = build([], pushes[pushKey]++, value);
483
- } else if (settings.regExp.fixed.test(k)) { // foo[n]
493
+ } else if (regExp.fixed.test(k)) { // foo[n]
484
494
  value = build([], k, value);
485
- } else if (settings.regExp.named.test(k)) { // foo; foo[bar]
495
+ } else if (regExp.named.test(k)) { // foo; foo[bar]
486
496
  value = build({}, k, value);
487
497
  }
488
498
  }
@@ -637,7 +647,7 @@
637
647
  module.debug('Adding error state');
638
648
  module.set.error();
639
649
  if (module.should.removeError()) {
640
- setTimeout(module.remove.error, settings.errorDuration);
650
+ setTimeout(function () { module.remove.error(); }, settings.errorDuration);
641
651
  }
642
652
  }
643
653
  module.debug('API Request failed', errorMessage, xhr);
@@ -961,7 +971,7 @@
961
971
  });
962
972
  }
963
973
  clearTimeout(module.performance.timer);
964
- module.performance.timer = setTimeout(module.performance.display, 500);
974
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
965
975
  },
966
976
  display: function () {
967
977
  var
@@ -974,9 +984,6 @@
974
984
  totalTime += data['Execution Time'];
975
985
  });
976
986
  title += ' ' + totalTime + 'ms';
977
- if (moduleSelector) {
978
- title += ' \'' + moduleSelector + '\'';
979
- }
980
987
  if (performance.length > 0) {
981
988
  console.groupCollapsed(title);
982
989
  if (console.table) {
@@ -24,8 +24,6 @@
24
24
  $allModules = $(this),
25
25
  $document = $(document),
26
26
 
27
- moduleSelector = $allModules.selector || '',
28
-
29
27
  time = Date.now(),
30
28
  performance = [],
31
29
 
@@ -1481,7 +1479,7 @@
1481
1479
  });
1482
1480
  }
1483
1481
  clearTimeout(module.performance.timer);
1484
- module.performance.timer = setTimeout(module.performance.display, 500);
1482
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
1485
1483
  },
1486
1484
  display: function () {
1487
1485
  var
@@ -1494,9 +1492,6 @@
1494
1492
  totalTime += data['Execution Time'];
1495
1493
  });
1496
1494
  title += ' ' + totalTime + 'ms';
1497
- if (moduleSelector) {
1498
- title += ' \'' + moduleSelector + '\'';
1499
- }
1500
1495
  if (performance.length > 0) {
1501
1496
  console.groupCollapsed(title);
1502
1497
  if (console.table) {
@@ -22,7 +22,6 @@
22
22
  $.fn.checkbox = function (parameters) {
23
23
  var
24
24
  $allModules = $(this),
25
- moduleSelector = $allModules.selector || '',
26
25
 
27
26
  time = Date.now(),
28
27
  performance = [],
@@ -242,7 +241,9 @@
242
241
  $input.trigger('blur');
243
242
  shortcutPressed = true;
244
243
  event.stopPropagation();
245
- } else if (!event.ctrlKey && module.can.change()) {
244
+ } else if (!module.can.change()) {
245
+ shortcutPressed = true;
246
+ } else if (!event.ctrlKey) {
246
247
  if (key === keyCode.space || (key === keyCode.enter && settings.enableEnterKey)) {
247
248
  module.verbose('Enter/space key pressed, toggling checkbox');
248
249
  module.toggle();
@@ -724,7 +725,7 @@
724
725
  });
725
726
  }
726
727
  clearTimeout(module.performance.timer);
727
- module.performance.timer = setTimeout(module.performance.display, 500);
728
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
728
729
  },
729
730
  display: function () {
730
731
  var
@@ -737,9 +738,6 @@
737
738
  totalTime += data['Execution Time'];
738
739
  });
739
740
  title += ' ' + totalTime + 'ms';
740
- if (moduleSelector) {
741
- title += ' \'' + moduleSelector + '\'';
742
- }
743
741
  if (performance.length > 0) {
744
742
  console.groupCollapsed(title);
745
743
  if (console.table) {
@@ -46,7 +46,6 @@
46
46
 
47
47
  eventNamespace = '.' + namespace,
48
48
  moduleNamespace = 'module-' + namespace,
49
- moduleSelector = $allModules.selector || '',
50
49
 
51
50
  clickEvent = 'ontouchstart' in document.documentElement
52
51
  ? 'touchstart'
@@ -229,7 +228,7 @@
229
228
  callback = isFunction(callback)
230
229
  ? callback
231
230
  : function () {};
232
- if (settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {
231
+ if (settings.useCSS && $.fn.transition !== undefined) {
233
232
  if (settings.useFlex) {
234
233
  module.debug('Using flex dimmer');
235
234
  module.remove.legacy();
@@ -288,7 +287,7 @@
288
287
  callback = isFunction(callback)
289
288
  ? callback
290
289
  : function () {};
291
- if (settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {
290
+ if (settings.useCSS && $.fn.transition !== undefined) {
292
291
  module.verbose('Hiding dimmer with css');
293
292
  $dimmer
294
293
  .transition({
@@ -529,7 +528,7 @@
529
528
  });
530
529
  }
531
530
  clearTimeout(module.performance.timer);
532
- module.performance.timer = setTimeout(module.performance.display, 500);
531
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
533
532
  },
534
533
  display: function () {
535
534
  var
@@ -542,9 +541,6 @@
542
541
  totalTime += data['Execution Time'];
543
542
  });
544
543
  title += ' ' + totalTime + 'ms';
545
- if (moduleSelector) {
546
- title += ' \'' + moduleSelector + '\'';
547
- }
548
544
  if ($allModules.length > 1) {
549
545
  title += ' (' + $allModules.length + ')';
550
546
  }