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 Dec 23, 2019
1 parent 27bebbe commit 0e19933
Show file tree
Hide file tree
Showing 16 changed files with 176 additions and 91 deletions.
28 changes: 19 additions & 9 deletions definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -818,26 +818,36 @@ $.fn.form = function(parameters) {
module.add.field(name, rules);
},
field: function(name, rules) {
// Validation should have at least a standard format
if(validation[name] === undefined || validation[name].rules === undefined) {
validation[name] = {
rules: []
};
}
var
newValidation = {}
newValidation = {
rules: []
}
;
if(module.is.shorthandRules(rules)) {
rules = Array.isArray(rules)
? rules
: [rules]
;
newValidation[name] = {
rules: []
};
$.each(rules, function(index, rule) {
newValidation[name].rules.push({ type: rule });
$.each(rules, function(_index, rule) {
newValidation.rules.push({ type: rule });
});
}
else {
newValidation[name] = rules;
newValidation.rules = rules.rules;
}
validation = $.extend({}, validation, newValidation);
module.debug('Adding rules', newValidation, validation);
// For each new rule, check if there's not already one with the same type
$.each(newValidation.rules, function (_index, rule) {
if ($.grep(validation[name].rules, function(item){ return item.type == rule.type; }).length == 0) {
validation[name].rules.push(rule);
}
});
module.debug('Adding rules', newValidation.rules, validation);
},
fields: function(fields) {
var
Expand Down
34 changes: 34 additions & 0 deletions definitions/collections/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
margin: @fieldMargin;
}

.ui.form .fields .fields,
.ui.form .field:last-child,
.ui.form .fields:last-child .field {
margin-bottom: 0;
Expand Down Expand Up @@ -412,6 +413,39 @@
background: @inputFocusBackground;
box-shadow: @inputFocusBoxShadow;
}
& when (@variationInputAction) {
.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 {
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"] {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
}
.ui.form textarea:focus {
color: @textAreaFocusColor;
border-color: @textAreaFocusBorderColor;
Expand Down
22 changes: 16 additions & 6 deletions definitions/collections/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -1016,35 +1016,45 @@ each(@colors, {
color: @sortableDisabledColor;
}
.ui.sortable.table > thead > tr > th:hover {
background: @sortableHoverBackground;
color: @sortableHoverColor;
}
.ui.sortable.table:not(.basic) > thead > tr > th:hover {
background: @sortableHoverBackground;
}

/* Sorted */
.ui.sortable.table thead th.sorted {
background: @sortableActiveBackground;
color: @sortableActiveColor;
}
.ui.sortable.table:not(.basic) thead th.sorted {
background: @sortableActiveBackground;
}
.ui.sortable.table thead th.sorted:after {
display: inline-block;
}

/* Sorted Hover */
.ui.sortable.table thead th.sorted:hover {
background: @sortableActiveHoverBackground;
color: @sortableActiveHoverColor;
}
.ui.sortable.table:not(.basic) thead th.sorted:hover {
background: @sortableActiveHoverBackground;
}
& when (@variationTableInverted) {
/* Inverted */
.ui.inverted.sortable.table thead th.sorted {
background: @sortableInvertedActiveBackground;
color: @sortableInvertedActiveColor;
}
.ui.inverted.sortable.table:not(.basic) thead th.sorted {
background: @sortableInvertedActiveBackground;
}
.ui.inverted.sortable.table > thead > tr > th:hover {
background: @sortableInvertedHoverBackground;
color: @sortableInvertedHoverColor;
}
.ui.inverted.sortable.table > thead > tr > th {
.ui.inverted.sortable.table:not(.basic) > thead > tr > th:hover {
background: @sortableInvertedHoverBackground;
}
.ui.inverted.sortable.table:not(.basic) > thead > tr > th {
border-left-color: @sortableInvertedBorderColor;
border-right-color: @sortableInvertedBorderColor;
}
Expand Down
2 changes: 1 addition & 1 deletion definitions/elements/input.less
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
/* Labeled and action input states */
each(@formStates, {
@state: replace(@key, '@', '');
@borderColor: @formStates[@@state][color];
@borderColor: @formStates[@@state][borderColor];

.ui.form > .field.@{state} > .ui.action.input > .ui.button,
.ui.form > .field.@{state} > .ui.labeled.input:not([class*="corner labeled"]) > .ui.label,
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ $.fn.checkbox = function(parameters) {
},

preventDefaultOnInputTarget: function() {
if(typeof event !== 'undefined' && $(event.target).is(selector.input)) {
if(typeof event !== 'undefined' && event !== null && $(event.target).is(selector.input)) {
module.verbose('Preventing default check action after manual check action');
event.preventDefault();
}
Expand Down
18 changes: 9 additions & 9 deletions definitions/modules/dimmer.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

/* Loose Coupling */
.ui.segment > .ui.dimmer:not(.page) {
border-radius: inherit !important;
border-radius: inherit;
}

/* Scrollbars */
Expand Down Expand Up @@ -295,16 +295,16 @@ body.dimmable > .dimmer {
-webkit-transform: translateY(calc(-50% - .5px));
}

.ui.segment > .ui[class*="top dimmer"] {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
.ui.segment > .ui.ui[class*="top dimmer"] {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.ui.segment > .ui[class*="center dimmer"] {
border-radius: 0 !important;
.ui.segment > .ui.ui[class*="center dimmer"] {
border-radius: 0;
}
.ui.segment > .ui[class*="bottom dimmer"] {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
.ui.segment > .ui.ui[class*="bottom dimmer"] {
border-top-left-radius: 0;
border-top-right-radius: 0;
}

.ui[class*="center dimmer"].transition[class*="fade up"].in {
Expand Down
Loading

0 comments on commit 0e19933

Please sign in to comment.