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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 291447cb00bbe0adefb3a9ab2df8f6951f5bef69
4
- data.tar.gz: 50c6b4765625cb3eef5ec3feb9e9a8aa6cbf2c11
3
+ metadata.gz: '041538a7200e5ccf030698678b123d3e3082201e'
4
+ data.tar.gz: c611446fe7dce7ec1729ee9006579c07f3a234d2
5
5
  SHA512:
6
- metadata.gz: 0b9e8b60188468b4e0763df09169382ee7b6a6817bdd61b6b2a40dbd0012911118898a0f5037c781dc79b8e002da4e87d7a4b018ab992bdeda702d6096d928da
7
- data.tar.gz: bb60e2e446e01574c5928c3a3adbe96460b8171d17d25a87159e7837e10fd0e554f54124119d20bb97f964b15e9526e253d7a23be5e249b374838cb215c0ec05
6
+ metadata.gz: d87c81a98dd1ec1bcc311ff49052d216256cf8853eaafa385b66cdfd845d7d0495ba3d16e5072adcbd845e4c46e856647812124cc750c8176b8758d4411ea30d
7
+ data.tar.gz: 1b8ef10cfd7338c4c340c3fc6ae207a589d9e3eb5ad27573441d0a9c7232a836cf8331a23d58fbe7071d5af314c961c4660f6f20e723018118a8fc099b7640a2
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 2.2.6
5
- - 2.3.3
6
- - 2.4.0
4
+ - 2.2.7
5
+ - 2.3.4
6
+ - 2.4.1
7
7
 
8
8
  before_install: gem install bundler
9
9
 
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.9.13 (2017-04-03)
2
+
3
+ - Update assets to match upstream version
4
+
1
5
  ## 0.9.12 (2017-03-18)
2
6
 
3
7
  - Update assets to match upstream version
@@ -1,5 +1,5 @@
1
1
  module Mui
2
2
  module Sass
3
- VERSION = '0.9.12'.freeze
3
+ VERSION = '0.9.13'.freeze
4
4
  end
5
5
  end
@@ -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.12
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-18 00:00:00.000000000 Z
11
+ date: 2017-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass