Skip to content

Commit

Permalink
chore(release): update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hamilton committed Jun 1, 2020
1 parent c9e768d commit a266b95
Show file tree
Hide file tree
Showing 68 changed files with 1,178 additions and 329 deletions.
2 changes: 1 addition & 1 deletion dist/components/accordion.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/components/api.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions dist/components/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -632,15 +632,17 @@
.ui.button > .icon:not(.button) {
height: auto;
opacity: 0.8;
margin: 0 0.42857143em 0 -0.21428571em;
-webkit-transition: opacity 0.1s ease;
transition: opacity 0.1s ease;
vertical-align: '';
color: '';
}
.ui.button:not(.icon) > .icon:not(.button):not(.dropdown),
.ui.button:not(.icon) > .icons:not(.button):not(.dropdown) {
margin: 0 0.42857143em 0 -0.21428571em;
vertical-align: baseline;
}
.ui.button:not(.icon) > .icons:not(.button):not(.dropdown) > .icon {
vertical-align: baseline;
}
.ui.button:not(.icon) > .right.icon:not(.button):not(.dropdown) {
margin: 0 -0.21428571em 0 0.42857143em;
Expand Down Expand Up @@ -754,15 +756,19 @@
---------------*/

.ui.icon.buttons .button,
.ui.icon.button {
.ui.icon.button:not(.animated) {
padding: 0.78571429em 0.78571429em 0.78571429em;
}
.ui.animated.icon.button > .content > .icon,
.ui.icon.buttons .button > .icon,
.ui.icon.button > .icon {
opacity: 0.9;
margin: 0 !important;
vertical-align: top;
}
.ui.animated.button > .content > .icon {
vertical-align: top;
}

/*-------------------
Basic
Expand Down
2 changes: 1 addition & 1 deletion dist/components/button.min.css

Large diffs are not rendered by default.

77 changes: 41 additions & 36 deletions dist/components/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ $.fn.calendar = function(parameters) {
module.set.maxDate($module.data(metadata.maxDate));
}
module.setting('type', module.get.type());
module.setting('on', settings.on || ($input.length ? 'focus' : 'click'));
},
popup: function () {
if (settings.inline) {
Expand Down Expand Up @@ -159,7 +160,7 @@ $.fn.calendar = function(parameters) {
module.set.mode(settings.startMode);
return settings.onShow.apply($container, arguments);
};
var on = settings.on || ($input.length ? 'focus' : 'click');
var on = module.setting('on');
var options = $.extend({}, settings.popupOptions, {
popup: $container,
on: on,
Expand Down Expand Up @@ -202,33 +203,38 @@ $.fn.calendar = function(parameters) {
calendar: function () {
var i, r, c, p, row, cell, pageGrid;

var mode = module.get.mode();
var today = new Date();
var date = module.get.date();
var focusDate = module.get.focusDate();
var display = focusDate || date || settings.initialDate || today;
display = module.helper.dateInRange(display);
var
mode = module.get.mode(),
today = new Date(),
date = module.get.date(),
focusDate = module.get.focusDate(),
display = module.helper.dateInRange(focusDate || date || settings.initialDate || today)
;

if (!focusDate) {
focusDate = display;
module.set.focusDate(focusDate, false, false);
}

var isYear = mode === 'year';
var isMonth = mode === 'month';
var isDay = mode === 'day';
var isHour = mode === 'hour';
var isMinute = mode === 'minute';
var isTimeOnly = settings.type === 'time';
var
isYear = mode === 'year',
isMonth = mode === 'month',
isDay = mode === 'day',
isHour = mode === 'hour',
isMinute = mode === 'minute',
isTimeOnly = settings.type === 'time'
;

var multiMonth = Math.max(settings.multiMonth, 1);
var monthOffset = !isDay ? 0 : module.get.monthOffset();

var minute = display.getMinutes();
var hour = display.getHours();
var day = display.getDate();
var startMonth = display.getMonth() + monthOffset;
var year = display.getFullYear();
var
minute = display.getMinutes(),
hour = display.getHours(),
day = display.getDate(),
startMonth = display.getMonth() + monthOffset,
year = display.getFullYear()
;

var columns = isDay ? settings.showWeekNumbers ? 8 : 7 : isHour ? 4 : timeGap['column'];
var rows = isDay || isHour ? 6 : timeGap['row'];
Expand All @@ -254,17 +260,18 @@ $.fn.calendar = function(parameters) {
rows = Math.ceil(requiredCells / 7);
}

var yearChange = isYear ? 10 : isMonth ? 1 : 0;
var monthChange = isDay ? 1 : 0;
var dayChange = isHour || isMinute ? 1 : 0;
var prevNextDay = isHour || isMinute ? day : 1;
var prevDate = new Date(year - yearChange, month - monthChange, prevNextDay - dayChange, hour);
var nextDate = new Date(year + yearChange, month + monthChange, prevNextDay + dayChange, hour);

var prevLast = isYear ? new Date(Math.ceil(year / 10) * 10 - 9, 0, 0) :
isMonth ? new Date(year, 0, 0) : isDay ? new Date(year, month, 0) : new Date(year, month, day, -1);
var nextFirst = isYear ? new Date(Math.ceil(year / 10) * 10 + 1, 0, 1) :
isMonth ? new Date(year + 1, 0, 1) : isDay ? new Date(year, month + 1, 1) : new Date(year, month, day + 1);
var
yearChange = isYear ? 10 : isMonth ? 1 : 0,
monthChange = isDay ? 1 : 0,
dayChange = isHour || isMinute ? 1 : 0,
prevNextDay = isHour || isMinute ? day : 1,
prevDate = new Date(year - yearChange, month - monthChange, prevNextDay - dayChange, hour),
nextDate = new Date(year + yearChange, month + monthChange, prevNextDay + dayChange, hour),
prevLast = isYear ? new Date(Math.ceil(year / 10) * 10 - 9, 0, 0) :
isMonth ? new Date(year, 0, 0) : isDay ? new Date(year, month, 0) : new Date(year, month, day, -1),
nextFirst = isYear ? new Date(Math.ceil(year / 10) * 10 + 1, 0, 1) :
isMonth ? new Date(year + 1, 0, 1) : isDay ? new Date(year, month + 1, 1) : new Date(year, month, day + 1)
;

var tempMode = mode;
if (isDay && settings.showWeekNumbers){
Expand Down Expand Up @@ -440,7 +447,6 @@ $.fn.calendar = function(parameters) {
$input.on('input' + eventNamespace, module.event.inputChange);
$input.on('focus' + eventNamespace, module.event.inputFocus);
$input.on('blur' + eventNamespace, module.event.inputBlur);
$input.on('click' + eventNamespace, module.event.inputClick);
$input.on('keydown' + eventNamespace, module.event.keydown);
} else {
$container.on('keydown' + eventNamespace, module.event.keydown);
Expand Down Expand Up @@ -569,9 +575,6 @@ $.fn.calendar = function(parameters) {
var text = formatter.datetime(date, settings);
$input.val(text);
}
},
inputClick: function () {
module.popup('show');
}
},

Expand Down Expand Up @@ -796,10 +799,12 @@ $.fn.calendar = function(parameters) {
var canceled = module.set.date(date) === false;
if (!canceled && settings.closable) {
module.popup('hide');
//if this is a range calendar, show the end date calendar popup and focus the input
//if this is a range calendar, focus the container or input. This will open the popup from its event listeners.
var endModule = module.get.calendarModule(settings.endCalendar);
if (endModule) {
endModule.popup('show');
if (endModule.setting('on') !== 'focus') {
endModule.popup('show');
}
endModule.focus();
}
}
Expand All @@ -809,7 +814,7 @@ $.fn.calendar = function(parameters) {
module.set.mode(newMode);
if (mode === 'hour' || (mode === 'day' && module.get.date())) {
//the user has chosen enough to consider a valid date/time has been chosen
module.set.date(date);
module.set.date(date, true, false);
} else {
module.set.focusDate(date);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/components/calendar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/components/checkbox.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/components/dimmer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions dist/components/dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,9 @@
}

/* Automatically float dropdown menu right on last menu item */
.ui.menu .right.menu .dropdown:last-child .menu,
.ui.menu .right.dropdown.item .menu,
.ui.buttons > .ui.dropdown:last-child .menu {
left: auto;
.ui.menu .right.menu .dropdown:last-child .menu:not(.left),
.ui.menu .right.dropdown.item .menu:not(.left),
.ui.buttons > .ui.dropdown:last-child .menu:not(.left) {
right: 0;
}

Expand Down Expand Up @@ -1156,7 +1155,7 @@ select.ui.dropdown {
}
.ui.dropdown > .left.menu .menu,
.ui.dropdown .menu .left.menu {
left: auto;
left: auto !important;
right: 100%;
margin: 0 -0.5em 0 0 !important;
border-radius: 0.28571429rem !important;
Expand Down Expand Up @@ -1379,12 +1378,12 @@ select.ui.dropdown {
opacity: 1;
}
.ui.simple.dropdown > .menu > .item:active > .menu,
.ui.simple.dropdown:hover > .menu > .item:hover > .menu {
.ui.simple.dropdown .menu .item:hover > .menu {
overflow: visible;
width: auto;
height: auto;
top: 0 !important;
left: 100% !important;
left: 100%;
opacity: 1;
}
.ui.simple.disabled.dropdown:hover .menu {
Expand Down
13 changes: 8 additions & 5 deletions dist/components/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ $.fn.dropdown = function(parameters) {
module.setup.layout();

if(settings.values) {
module.set.initialLoad();
module.change.values(settings.values);
module.remove.initialLoad();
}

module.refreshData();
Expand Down Expand Up @@ -541,6 +543,7 @@ $.fn.dropdown = function(parameters) {
} else if( module.can.click() ) {
module.unbind.intent();
}
iconClicked = false;
},

hideOthers: function() {
Expand Down Expand Up @@ -1772,7 +1775,7 @@ $.fn.dropdown = function(parameters) {
return $text.text();
},
query: function() {
return $.trim($search.val());
return String($search.val()).trim();
},
searchWidth: function(value) {
value = (value !== undefined)
Expand Down Expand Up @@ -1915,8 +1918,8 @@ $.fn.dropdown = function(parameters) {
return ($choice.data(metadata.text) !== undefined)
? $choice.data(metadata.text)
: (preserveHTML)
? $.trim($choice.html())
: $.trim($choice.text())
? $choice.html().trim()
: $choice.text().trim()
;
}
},
Expand All @@ -1928,11 +1931,11 @@ $.fn.dropdown = function(parameters) {
return ($choice.data(metadata.value) !== undefined)
? String( $choice.data(metadata.value) )
: (typeof choiceText === 'string')
? $.trim(
? String(
settings.ignoreSearchCase
? choiceText.toLowerCase()
: choiceText
)
).trim()
: String(choiceText)
;
},
Expand Down
2 changes: 1 addition & 1 deletion dist/components/dropdown.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/components/dropdown.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/components/embed.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 24 additions & 24 deletions dist/components/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -406,33 +406,33 @@
-webkit-box-shadow: 0 0 0 0 rgba(34, 36, 38, 0.35) inset;
box-shadow: 0 0 0 0 rgba(34, 36, 38, 0.35) inset;
}
.ui.form .ui.action.input:not(.left) input:not([type]):focus,
.ui.form .ui.action.input:not(.left) input[type="date"]:focus,
.ui.form .ui.action.input:not(.left) input[type="datetime-local"]:focus,
.ui.form .ui.action.input:not(.left) input[type="email"]:focus,
.ui.form .ui.action.input:not(.left) input[type="number"]:focus,
.ui.form .ui.action.input:not(.left) input[type="password"]:focus,
.ui.form .ui.action.input:not(.left) input[type="search"]:focus,
.ui.form .ui.action.input:not(.left) input[type="tel"]:focus,
.ui.form .ui.action.input:not(.left) input[type="time"]:focus,
.ui.form .ui.action.input:not(.left) input[type="text"]:focus,
.ui.form .ui.action.input:not(.left) input[type="file"]:focus,
.ui.form .ui.action.input:not(.left) input[type="url"]:focus {
.ui.form .ui.action.input:not([class*="left action"]) input:not([type]):focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="date"]:focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="datetime-local"]:focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="email"]:focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="number"]:focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="password"]:focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="search"]:focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="tel"]:focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="time"]:focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="text"]:focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="file"]:focus,
.ui.form .ui.action.input:not([class*="left action"]) input[type="url"]:focus {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.ui.form .ui.action.input.left input:not([type]),
.ui.form .ui.action.input.left input[type="date"],
.ui.form .ui.action.input.left input[type="datetime-local"],
.ui.form .ui.action.input.left input[type="email"],
.ui.form .ui.action.input.left input[type="number"],
.ui.form .ui.action.input.left input[type="password"],
.ui.form .ui.action.input.left input[type="search"],
.ui.form .ui.action.input.left input[type="tel"],
.ui.form .ui.action.input.left input[type="time"],
.ui.form .ui.action.input.left input[type="text"],
.ui.form .ui.action.input.left input[type="file"],
.ui.form .ui.action.input.left input[type="url"] {
.ui.form .ui[class*="left action"].input input:not([type]),
.ui.form .ui[class*="left action"].input input[type="date"],
.ui.form .ui[class*="left action"].input input[type="datetime-local"],
.ui.form .ui[class*="left action"].input input[type="email"],
.ui.form .ui[class*="left action"].input input[type="number"],
.ui.form .ui[class*="left action"].input input[type="password"],
.ui.form .ui[class*="left action"].input input[type="search"],
.ui.form .ui[class*="left action"].input input[type="tel"],
.ui.form .ui[class*="left action"].input input[type="time"],
.ui.form .ui[class*="left action"].input input[type="text"],
.ui.form .ui[class*="left action"].input input[type="file"],
.ui.form .ui[class*="left action"].input input[type="url"] {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
Expand Down
Loading

0 comments on commit a266b95

Please sign in to comment.