materialize-sass 0.100.0 → 0.100.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/materialize.js +8 -8
- data/app/assets/javascripts/materialize/date_picker/picker.time.js +3 -4
- data/app/assets/javascripts/materialize/extras/nouislider.js +2 -2
- data/app/assets/javascripts/materialize/global.js +13 -0
- data/app/assets/javascripts/materialize/modal.js +4 -3
- data/app/assets/javascripts/materialize/toasts.js +2 -2
- data/app/assets/stylesheets/materialize/components/forms/_input-fields.scss +11 -0
- data/app/assets/stylesheets/materialize/extras/nouislider.css +1 -1
- data/lib/materialize-sass/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 909c1e705689230bd0b131fd9486777a860cae9f
|
4
|
+
data.tar.gz: 2580fa42ad45bf57ca36f57b3abd5872ffa842e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad75e1e31c867f7b4d12b1c8895c3e3436c01d5d4528fb1a490fce346ba8129d820ef954f6daf1c7ff04b2422cfbaed753dfd1b21e25f932d4aa9181940855a9
|
7
|
+
data.tar.gz: 67b26fda59c775fa4257692e973dd6e20272bc66080e4451694d8ce2ef5637fa20a056a28dd9e93b7a0d048849e129e31dea5da096b2d0354ac955c872c0000a
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Materialize v0.100.
|
2
|
+
* Materialize v0.100.1 (http://materializecss.com)
|
3
3
|
* Copyright 2014-2017 Materialize
|
4
4
|
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
5
5
|
*/
|
@@ -1662,7 +1662,6 @@ if (jQuery) {
|
|
1662
1662
|
origin.addClass('active');
|
1663
1663
|
|
1664
1664
|
var originWidth = origin[0].getBoundingClientRect().width;
|
1665
|
-
var activatesWidth = activates[0].getBoundingClientRect().width;
|
1666
1665
|
|
1667
1666
|
// Constrain width
|
1668
1667
|
if (curr_options.constrainWidth === true) {
|
@@ -1732,7 +1731,7 @@ if (jQuery) {
|
|
1732
1731
|
left: 0
|
1733
1732
|
});
|
1734
1733
|
|
1735
|
-
var offsetRight = origin.position().left + originWidth -
|
1734
|
+
var offsetRight = origin.position().left + originWidth - activates.width();
|
1736
1735
|
gutterSpacing = -curr_options.gutter;
|
1737
1736
|
leftPosition = offsetRight + gutterSpacing;
|
1738
1737
|
}
|
@@ -1981,11 +1980,11 @@ if (jQuery) {
|
|
1981
1980
|
value: function handleTriggerClick(e) {
|
1982
1981
|
var $trigger = $(e.target).closest('.modal-trigger');
|
1983
1982
|
if (e.target && $trigger.length) {
|
1984
|
-
var modalId =
|
1983
|
+
var modalId = $trigger[0].getAttribute('href');
|
1985
1984
|
if (modalId) {
|
1986
1985
|
modalId = modalId.slice(1);
|
1987
1986
|
} else {
|
1988
|
-
modalId =
|
1987
|
+
modalId = $trigger[0].getAttribute('data-target');
|
1989
1988
|
}
|
1990
1989
|
var modalInstance = document.getElementById(modalId).M_Modal;
|
1991
1990
|
if (modalInstance) {
|
@@ -2015,7 +2014,8 @@ if (jQuery) {
|
|
2015
2014
|
}, {
|
2016
2015
|
key: 'handleModalCloseClick',
|
2017
2016
|
value: function handleModalCloseClick(e) {
|
2018
|
-
|
2017
|
+
var $closeTrigger = $(e.target).closest('.modal-close');
|
2018
|
+
if (e.target && $closeTrigger.length) {
|
2019
2019
|
this.close();
|
2020
2020
|
}
|
2021
2021
|
}
|
@@ -3353,7 +3353,7 @@ if (jQuery) {
|
|
3353
3353
|
Waves.displayEffect();
|
3354
3354
|
}, false);
|
3355
3355
|
})(window);
|
3356
|
-
;(function () {
|
3356
|
+
;(function ($) {
|
3357
3357
|
'use strict';
|
3358
3358
|
|
3359
3359
|
var _defaults = {
|
@@ -3702,7 +3702,7 @@ if (jQuery) {
|
|
3702
3702
|
window.Materialize.toast = function (message, displayLength, className, completeCallback) {
|
3703
3703
|
return new Toast(message, displayLength, className, completeCallback);
|
3704
3704
|
};
|
3705
|
-
})();
|
3705
|
+
})(jQuery);
|
3706
3706
|
;(function ($) {
|
3707
3707
|
|
3708
3708
|
var methods = {
|
@@ -7,9 +7,8 @@
|
|
7
7
|
* Copyright 2015 Ching Yaw Hao.
|
8
8
|
*/
|
9
9
|
|
10
|
-
(function () {
|
11
|
-
var $ = window
|
12
|
-
$win = $(window),
|
10
|
+
(function ($) {
|
11
|
+
var $win = $(window),
|
13
12
|
$doc = $(document);
|
14
13
|
|
15
14
|
// Can I use inline svg ?
|
@@ -637,4 +636,4 @@
|
|
637
636
|
}
|
638
637
|
});
|
639
638
|
};
|
640
|
-
})();
|
639
|
+
})(jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Materialize v0.100.
|
2
|
+
* Materialize v0.100.1 (http://materializecss.com)
|
3
3
|
* Copyright 2014-2015 Materialize
|
4
4
|
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
5
5
|
*/
|
@@ -2144,4 +2144,4 @@ typeof b&&isFinite(b)?b:!1}function x(b){var f,c,d,e={};for(f=0;f<h.length;f+=1)
|
|
2144
2144
|
create: initialize
|
2145
2145
|
};
|
2146
2146
|
|
2147
|
-
}));
|
2147
|
+
}));
|
@@ -7,6 +7,13 @@
|
|
7
7
|
}
|
8
8
|
})(window);
|
9
9
|
|
10
|
+
if (typeof exports !== 'undefined' && !exports.nodeType) {
|
11
|
+
if (typeof module !== 'undefined' && !module.nodeType && module.exports) {
|
12
|
+
exports = module.exports = Materialize;
|
13
|
+
}
|
14
|
+
exports.default = Materialize;
|
15
|
+
}
|
16
|
+
|
10
17
|
/*
|
11
18
|
* raf.js
|
12
19
|
* https://github.com/ngryman/raf.js
|
@@ -155,3 +162,9 @@ if (jQuery) {
|
|
155
162
|
} else {
|
156
163
|
Vel = Velocity;
|
157
164
|
}
|
165
|
+
|
166
|
+
if (Vel) {
|
167
|
+
Materialize.Vel = Vel;
|
168
|
+
} else {
|
169
|
+
Materialize.Vel = Velocity;
|
170
|
+
}
|
@@ -2,7 +2,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
2
2
|
|
3
3
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
4
4
|
|
5
|
-
(function (
|
5
|
+
(function ($, Vel) {
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
var _defaults = {
|
@@ -176,7 +176,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
176
176
|
}, {
|
177
177
|
key: 'handleModalCloseClick',
|
178
178
|
value: function handleModalCloseClick(e) {
|
179
|
-
|
179
|
+
var $closeTrigger = $(e.target).closest('.modal-close');
|
180
|
+
if (e.target && $closeTrigger.length) {
|
180
181
|
this.close();
|
181
182
|
}
|
182
183
|
}
|
@@ -393,4 +394,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
393
394
|
$.error('Method ' + methodOrOptions + ' does not exist on jQuery.modal');
|
394
395
|
}
|
395
396
|
};
|
396
|
-
})(jQuery);
|
397
|
+
})(jQuery, Materialize.Vel);
|
@@ -2,7 +2,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
2
2
|
|
3
3
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
4
4
|
|
5
|
-
(function (
|
5
|
+
(function ($, Vel) {
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
var _defaults = {
|
@@ -351,4 +351,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
351
351
|
window.Materialize.toast = function (message, displayLength, className, completeCallback) {
|
352
352
|
return new Toast(message, displayLength, className, completeCallback);
|
353
353
|
};
|
354
|
-
})(jQuery);
|
354
|
+
})(jQuery, Materialize.Vel);
|
@@ -95,6 +95,17 @@ textarea.materialize-textarea {
|
|
95
95
|
& + label:after {
|
96
96
|
@extend %input-after-style;
|
97
97
|
}
|
98
|
+
|
99
|
+
// TODO: Remove once input fields are reworked to support validation messages better
|
100
|
+
&.invalid + label:after,
|
101
|
+
&.valid + label:after{
|
102
|
+
display: none;
|
103
|
+
}
|
104
|
+
|
105
|
+
&.invalid + label.active:after,
|
106
|
+
&.valid + label.active:after{
|
107
|
+
display: block;
|
108
|
+
}
|
98
109
|
}
|
99
110
|
|
100
111
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: materialize-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.100.
|
4
|
+
version: 0.100.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mkhairi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|