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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd38845513b50b694139c2bb350f9605e8bc9072113de6618bf385cd475b4a96
4
- data.tar.gz: 969b97c00b1baaccacbbe34b40d82a760c1a23f73d9ae6a0aa7e3ea87d6bbc04
3
+ metadata.gz: 71d9b04b5eedaab3cda0c82c8e60facff79de4fb265e0732f53035128aefff0e
4
+ data.tar.gz: ebd3ed58cd3e8544c23c7dede372bb3dd9dbe7b2ccbb5d662a9dd4019946d0ef
5
5
  SHA512:
6
- metadata.gz: ed267e33e11e6f0b28e3fc906203c4b65ac330dacde9b61744ff1334c9be4217cb74972560ce42348f6ab63384dc535060dc703e23f6e887ebbef93c557338fe
7
- data.tar.gz: 2b6bb21c7d8d8592831e9747be169083a9a84ddf11e6bc4897511029f770123c68b31b91c34212aaa83e16ff990f181dce942a4431384efbd0a1f721813bb9fd
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
+ }
@@ -1,3 +1,6 @@
1
+ // TODO: remove or update this text and `base/_mixin.scss`
2
+ // when upgrading to Bootstrap 5
3
+
1
4
  @include text-emphasis-variant('.text-primary', $primary-text-color);
2
5
 
3
6
  @include text-emphasis-variant('.text-success', $default-green-color);
@@ -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
- $input.val(moment($input.attr('value')).format('YYYY-MM-DD'))
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
- $input.val(moment($input.attr('value')).format('YYYY-MM-DD'))
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
- $input.val(moment($input.attr('value')).format('YYYY-MM-DD HH:mm'))
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
- $input.val(moment($input.attr('value')).format('HH:mm'))
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
- $input.val(moment($input.attr('value')).format('YYYY-MM-DD HH:mm'))
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
- $input.val(moment($input.attr('value')).format('YYYY-MM-DD HH:mm'))
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 %>
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Wallaby
4
4
  # Semantic version number
5
- VERSION = '6.0.1'
5
+ VERSION = '6.0.2'
6
6
  end
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.1
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 00:00:00.000000000 Z
11
+ date: 2019-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wallaby-core