wallaby 6.0.1 → 6.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/wallaby/base/_mixins.scss +15 -0
- data/app/assets/stylesheets/wallaby/components/_text.scss +3 -0
- data/app/views/wallaby/resources/form/_date.html.erb +4 -3
- data/app/views/wallaby/resources/form/_daterange.html.erb +4 -3
- data/app/views/wallaby/resources/form/_datetime.html.erb +4 -3
- data/app/views/wallaby/resources/form/_time.html.erb +4 -3
- data/app/views/wallaby/resources/form/_tsrange.html.erb +4 -3
- data/app/views/wallaby/resources/form/_tstzrange.html.erb +4 -3
- data/lib/wallaby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71d9b04b5eedaab3cda0c82c8e60facff79de4fb265e0732f53035128aefff0e
|
4
|
+
data.tar.gz: ebd3ed58cd3e8544c23c7dede372bb3dd9dbe7b2ccbb5d662a9dd4019946d0ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a56b9a9e91b695795a6c63e4f5a95c3b4489db34dbb1e9bbcf07e4c94f8ba7e149ab0885f87423720adadb41e3e1a54fbc78b3e6eadc84f8be3205e3d81cad78
|
7
|
+
data.tar.gz: bfc00fdf0a6ab76aa34c226139271fddcb6a98fa69f5efae0c6a08240f8177ad8f75e638cf9a42e85f40da33b246b25dbc769f9b96e0d08efddcb53bc5a3daab
|
@@ -121,3 +121,18 @@
|
|
121
121
|
@if $included { @extend .fa; }
|
122
122
|
@extend .#{map-get($fa-class-map, $name)};
|
123
123
|
}
|
124
|
+
|
125
|
+
// TODO: remove or update this mixin and `components/_text.scss`
|
126
|
+
// when upgrading to Bootstrap 5
|
127
|
+
@mixin text-emphasis-variant($parent, $color, $ignore-warning: false) {
|
128
|
+
#{$parent} {
|
129
|
+
color: $color !important;
|
130
|
+
}
|
131
|
+
@if $emphasized-link-hover-darken-percentage != 0 {
|
132
|
+
a#{$parent} {
|
133
|
+
@include hover-focus() {
|
134
|
+
color: darken($color, $emphasized-link-hover-darken-percentage) !important;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
@@ -28,11 +28,12 @@ The following params are the variables that can be used in this partial.
|
|
28
28
|
<% javascript_tag do %>
|
29
29
|
jQuery(document).off(readyPrefix('.date')).on(readyPrefix('.date'), function () {
|
30
30
|
$('[data-init="datepicker"]').each(function() {
|
31
|
-
var $input = $('input', this)
|
32
|
-
|
31
|
+
var $input = $('input', this),
|
32
|
+
val = ($input.attr('value') || '').split(' ').slice(0,1).join(' ');
|
33
|
+
$input.val(moment(val).format('YYYY-MM-DD'));
|
33
34
|
$(this).datetimepicker({
|
34
35
|
format: 'YYYY-MM-DD'
|
35
|
-
})
|
36
|
+
});
|
36
37
|
})
|
37
38
|
})
|
38
39
|
<% end %>
|
@@ -37,11 +37,12 @@ The following params are the variables that can be used in this partial.
|
|
37
37
|
<% javascript_tag do %>
|
38
38
|
jQuery(document).off(readyPrefix('.daterange')).on(readyPrefix('.daterange'), function () {
|
39
39
|
$('[data-init="datepicker"]').each(function() {
|
40
|
-
var $input = $('input', this)
|
41
|
-
|
40
|
+
var $input = $('input', this),
|
41
|
+
val = ($input.attr('value') || '').split(' ').slice(0,1).join(' ');
|
42
|
+
$input.val(moment(val).format('YYYY-MM-DD'))
|
42
43
|
$(this).datetimepicker({
|
43
44
|
format: 'YYYY-MM-DD'
|
44
|
-
})
|
45
|
+
});
|
45
46
|
})
|
46
47
|
})
|
47
48
|
<% end %>
|
@@ -28,12 +28,13 @@ The following params are the variables that can be used in this partial.
|
|
28
28
|
<% javascript_tag do %>
|
29
29
|
jQuery(document).off(readyPrefix('.datetime')).on(readyPrefix('.datetime'), function () {
|
30
30
|
$('[data-init="datetimepicker"]').each(function() {
|
31
|
-
var $input = $('input', this)
|
32
|
-
|
31
|
+
var $input = $('input', this),
|
32
|
+
val = ($input.attr('value') || '').split(' ').slice(0,2).join(' ');
|
33
|
+
$input.val(moment(val).format('YYYY-MM-DD HH:mm'));
|
33
34
|
$(this).datetimepicker({
|
34
35
|
format: 'YYYY-MM-DD HH:mm',
|
35
36
|
sideBySide: true
|
36
|
-
})
|
37
|
+
});
|
37
38
|
})
|
38
39
|
})
|
39
40
|
<% end %>
|
@@ -28,11 +28,12 @@ The following params are the variables that can be used in this partial.
|
|
28
28
|
<% javascript_tag do %>
|
29
29
|
jQuery(document).off(readyPrefix('.time')).on(readyPrefix('.time'), function () {
|
30
30
|
$('[data-init="timepicker"]').each(function() {
|
31
|
-
var $input = $('input', this)
|
32
|
-
|
31
|
+
var $input = $('input', this),
|
32
|
+
val = ($input.attr('value') || '').split(' ').slice(0,2).join(' ');
|
33
|
+
$input.val(moment(val).format('HH:mm'));
|
33
34
|
$(this).datetimepicker({
|
34
35
|
format: 'HH:mm'
|
35
|
-
})
|
36
|
+
});
|
36
37
|
})
|
37
38
|
})
|
38
39
|
<% end %>
|
@@ -37,12 +37,13 @@ The following params are the variables that can be used in this partial.
|
|
37
37
|
<% javascript_tag do %>
|
38
38
|
jQuery(document).off(readyPrefix('.tsrange')).on(readyPrefix('.tsrange'), function () {
|
39
39
|
$('[data-init="datetimepicker"]').each(function() {
|
40
|
-
var $input = $('input', this)
|
41
|
-
|
40
|
+
var $input = $('input', this),
|
41
|
+
val = ($input.attr('value') || '').split(' ').slice(0,2).join(' ');
|
42
|
+
$input.val(moment(val).format('YYYY-MM-DD HH:mm'));
|
42
43
|
$(this).datetimepicker({
|
43
44
|
format: 'YYYY-MM-DD HH:mm',
|
44
45
|
sideBySide: true
|
45
|
-
})
|
46
|
+
});
|
46
47
|
})
|
47
48
|
})
|
48
49
|
<% end %>
|
@@ -37,12 +37,13 @@ The following params are the variables that can be used in this partial.
|
|
37
37
|
<% javascript_tag do %>
|
38
38
|
jQuery(document).off(readyPrefix('.tstzrange')).on(readyPrefix('.tstzrange'), function () {
|
39
39
|
$('[data-init="datetimepicker"]').each(function() {
|
40
|
-
var $input = $('input', this)
|
41
|
-
|
40
|
+
var $input = $('input', this),
|
41
|
+
val = ($input.attr('value') || '').split(' ').slice(0,2).join(' ');
|
42
|
+
$input.val(moment(val).format('YYYY-MM-DD HH:mm'));
|
42
43
|
$(this).datetimepicker({
|
43
44
|
format: 'YYYY-MM-DD HH:mm',
|
44
45
|
sideBySide: true
|
45
|
-
})
|
46
|
+
});
|
46
47
|
})
|
47
48
|
})
|
48
49
|
<% end %>
|
data/lib/wallaby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wallaby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tianwen Chen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: wallaby-core
|