mui-sass 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/CHANGELOG.md +4 -0
- data/lib/mui/sass/version.rb +1 -1
- data/vendor/assets/javascripts/mui.js +19 -0
- 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: '041538a7200e5ccf030698678b123d3e3082201e'
|
4
|
+
data.tar.gz: c611446fe7dce7ec1729ee9006579c07f3a234d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d87c81a98dd1ec1bcc311ff49052d216256cf8853eaafa385b66cdfd845d7d0495ba3d16e5072adcbd845e4c46e856647812124cc750c8176b8758d4411ea30d
|
7
|
+
data.tar.gz: 1b8ef10cfd7338c4c340c3fc6ae207a589d9e3eb5ad27573441d0a9c7232a836cf8331a23d58fbe7071d5af314c961c4660f6f20e723018118a8fc099b7640a2
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/mui/sass/version.rb
CHANGED
@@ -121,6 +121,8 @@ function loadCss() {
|
|
121
121
|
['[data-mui-toggle="tab"]', 'mui-tab-inserted'],
|
122
122
|
['.mui-textfield > input', 'mui-textfield-inserted'],
|
123
123
|
['.mui-textfield > textarea', 'mui-textfield-inserted'],
|
124
|
+
['.mui-textfield > input:-webkit-autofill', 'mui-textfield-autofill'],
|
125
|
+
['.mui-textfield > textarea:-webkit-autofill', 'mui-textfield-autofill'],
|
124
126
|
['.mui-select > select', 'mui-select-inserted'],
|
125
127
|
['.mui-select > select ~ .mui-event-trigger', 'mui-node-inserted'],
|
126
128
|
['.mui-select > select:disabled ~ .mui-event-trigger', 'mui-node-disabled']
|
@@ -2046,6 +2048,18 @@ function inputHandler() {
|
|
2046
2048
|
}
|
2047
2049
|
|
2048
2050
|
|
2051
|
+
/**
|
2052
|
+
* Handle autofill events.
|
2053
|
+
*/
|
2054
|
+
function autofillHandler(inputEl) {
|
2055
|
+
// exit if not under css/js control
|
2056
|
+
if (inputEl._muiTextfield !== true) return;
|
2057
|
+
|
2058
|
+
// execute inputHandler
|
2059
|
+
inputHandler.call(inputEl);
|
2060
|
+
}
|
2061
|
+
|
2062
|
+
|
2049
2063
|
/** Define module API */
|
2050
2064
|
module.exports = {
|
2051
2065
|
/** Initialize input elements */
|
@@ -2078,6 +2092,11 @@ module.exports = {
|
|
2078
2092
|
util.loadStyle(css);
|
2079
2093
|
}, 150);
|
2080
2094
|
|
2095
|
+
// listen for autofill events
|
2096
|
+
animationHelpers.onAnimationStart('mui-textfield-autofill', function(ev) {
|
2097
|
+
autofillHandler(ev.target);
|
2098
|
+
});
|
2099
|
+
|
2081
2100
|
// pointer-events shim for floating labels
|
2082
2101
|
if (util.supportsPointerEvents() === false) {
|
2083
2102
|
jqLite.on(doc, 'click', function(ev) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mui-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Tarasov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|