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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/assets/javascripts/semantic-ui/calendar.js +9 -11
- data/app/assets/javascripts/semantic-ui/dimmer.js +8 -11
- data/app/assets/javascripts/semantic-ui/dropdown.js +191 -99
- data/app/assets/javascripts/semantic-ui/form.js +98 -60
- data/app/assets/javascripts/semantic-ui/modal.js +259 -16
- data/app/assets/javascripts/semantic-ui/nag.js +130 -64
- data/app/assets/javascripts/semantic-ui/popup.js +4 -4
- data/app/assets/javascripts/semantic-ui/progress.js +6 -8
- data/app/assets/javascripts/semantic-ui/search.js +14 -12
- data/app/assets/javascripts/semantic-ui/slider.js +55 -31
- data/app/assets/javascripts/semantic-ui/toast.js +26 -6
- data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/collections/_form.scss +46 -5
- data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +14 -7
- data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +6 -4
- data/app/assets/stylesheets/semantic-ui/collections/_message.scss +50 -3
- data/app/assets/stylesheets/semantic-ui/collections/_table.scss +6 -2
- data/app/assets/stylesheets/semantic-ui/elements/_button.scss +29 -2
- data/app/assets/stylesheets/semantic-ui/elements/_container.scss +3 -4
- data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_header.scss +10 -5
- data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +237 -65
- data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_input.scss +2 -1
- data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_list.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +41 -37
- data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +34 -2
- data/app/assets/stylesheets/semantic-ui/elements/_step.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_text.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +2 -3
- data/app/assets/stylesheets/semantic-ui/globals/_site.scss +2 -2
- data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_calendar.scss +3 -3
- data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +46 -4
- data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +72 -3
- data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +19 -8
- data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +168 -16
- data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +4 -2
- data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +18 -10
- data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +18 -33
- data/app/assets/stylesheets/semantic-ui/modules/_search.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_slider.scss +3 -1
- data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -2
- data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_toast.scss +97 -10
- data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_card.scss +74 -2
- data/app/assets/stylesheets/semantic-ui/views/_comment.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_feed.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_item.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +1 -1
- data/lib/fomantic/ui/sass/version.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b374f7b8141b9451237686a7b44184c588f717b672377b9718d07c4077fc579f
|
4
|
+
data.tar.gz: 84069f8fa5e9e6040401b54947abde3054b232f7fedaaf999fc1a53af5b5f83b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c3ad405514c4228ff741df3fae96237446652b53cddfd0bcce2cd033ac75190b2a4d3158b39576935880dd682af9125a577af8fd0cae14ff73f82d2a05898a1
|
7
|
+
data.tar.gz: 2a6838e7c9da90485c64f8d5408efa91af63e784c2a4f0b5f502776a2f22bdd9c627abc6761b341895b3c53a850d9193d04d9dcff2aeb6f435bd2d16d2d70bf7
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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 ||
|
1083
|
-
return
|
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
|
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(
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
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
|
|