romo 0.19.0 → 0.19.1

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
- SHA512:
3
- data.tar.gz: c668b5fe917176627f827c3b9a3a07219ecfec0d32ad82841d1c37c353e1571255f94b8bb248610d387f0999a009c97958e59aa2813aad475047dc72f2639b4b
4
- metadata.gz: 3652fa2660347b851ff7be92f09c01448aa55aed03a2217e56cd9a87a4fed65177c5a8f4bf799b35984925efbbf7f9457aaf1a21c2f4205a8e31cfc6e70e62b1
5
2
  SHA1:
6
- data.tar.gz: 9d46061e0999f93f850c11eec93f8303cad7f999
7
- metadata.gz: abb9a32cd3c5d39e27f6811cf0717e504f5b2d51
3
+ data.tar.gz: 8138f63992cc7497d64037372684692299cce71f
4
+ metadata.gz: 65042d7a48b309125b015a9067c4b50b5ee95e34
5
+ SHA512:
6
+ data.tar.gz: 95d60b59e392804a22b10c619593f45d72fabb5e07bd8d240f0ac19ea4ce6171dca40bdef686e6dad6922e38b4304e7d78bde96ce83ae352349306bc1ce8c064
7
+ metadata.gz: 1d963a15733a80f29fed5aff78a79c83df6316a9edb891159444cdb188ba53f9a9ff76d413c323393ccfb75e7cfd0650c7055c0154c412d33064dd40a3025ecc
@@ -377,6 +377,11 @@
377
377
  color: $inputColor;
378
378
  }
379
379
 
380
+ @mixin input-placeholder {
381
+ color: $mutedText;
382
+ font-style: italic;
383
+ }
384
+
380
385
  /* Buttons */
381
386
  /* ------- */
382
387
 
@@ -98,10 +98,11 @@ body.romo {
98
98
  .romo-link:hover,
99
99
  .romo-link-hover:hover { color: $linkColorHover !important;}
100
100
 
101
- .romo-cursor-default { cursor: default; }
102
- .romo-pointer { cursor: pointer; }
103
- .romo-grab { @include cursor-grab; }
104
- .romo-grabbing { @include cursor-grabbing; }
101
+ .romo-cursor-default { cursor: default; }
102
+ .romo-cursor-not-allowed { cursor: $notAllowedCursor; }
103
+ .romo-pointer { cursor: pointer; }
104
+ .romo-grab { @include cursor-grab; }
105
+ .romo-grabbing { @include cursor-grabbing; }
105
106
 
106
107
  .romo-user-select-none{ @include user-select(none); }
107
108
 
@@ -102,6 +102,99 @@
102
102
  @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075));
103
103
  }
104
104
 
105
+ /* see https://css-tricks.com/almanac/selectors/p/placeholder/ */
106
+ /* https://developer.mozilla.org/en-US/docs/Web/CSS/::placeholder */
107
+ .romo-form textarea::placeholder,
108
+ .romo-form input[type="text"]::placeholder,
109
+ .romo-form input[type="password"]::placeholder,
110
+ .romo-form input[type="datetime"]::placeholder,
111
+ .romo-form input[type="datetime-local"]::placeholder,
112
+ .romo-form input[type="date"]::placeholder,
113
+ .romo-form input[type="month"]::placeholder,
114
+ .romo-form input[type="time"]::placeholder,
115
+ .romo-form input[type="week"]::placeholder,
116
+ .romo-form input[type="number"]::placeholder,
117
+ .romo-form input[type="email"]::placeholder,
118
+ .romo-form input[type="url"]::placeholder,
119
+ .romo-form input[type="search"]::placeholder,
120
+ .romo-form input[type="tel"]::placeholder,
121
+ .romo-form input[type="color"]::placeholder,
122
+ input.romo-select-dropdown-option-filter::placeholder {
123
+ @include input-placeholder;
124
+ }
125
+ .romo-form textarea::-webkit-input-placeholder, /* Chrome/Opera/Safari */
126
+ .romo-form input[type="text"]::-webkit-input-placeholder,
127
+ .romo-form input[type="password"]::-webkit-input-placeholder,
128
+ .romo-form input[type="datetime"]::-webkit-input-placeholder,
129
+ .romo-form input[type="datetime-local"]::-webkit-input-placeholder,
130
+ .romo-form input[type="date"]::-webkit-input-placeholder,
131
+ .romo-form input[type="month"]::-webkit-input-placeholder,
132
+ .romo-form input[type="time"]::-webkit-input-placeholder,
133
+ .romo-form input[type="week"]::-webkit-input-placeholder,
134
+ .romo-form input[type="number"]::-webkit-input-placeholder,
135
+ .romo-form input[type="email"]::-webkit-input-placeholder,
136
+ .romo-form input[type="url"]::-webkit-input-placeholder,
137
+ .romo-form input[type="search"]::-webkit-input-placeholder,
138
+ .romo-form input[type="tel"]::-webkit-input-placeholder,
139
+ .romo-form input[type="color"]::-webkit-input-placeholder,
140
+ input.romo-select-dropdown-option-filter::-webkit-input-placeholder {
141
+ @include input-placeholder;
142
+ }
143
+ .romo-form textarea::-moz-placeholder, /* Firefox 19+ */
144
+ .romo-form input[type="text"]::-moz-placeholder,
145
+ .romo-form input[type="password"]::-moz-placeholder,
146
+ .romo-form input[type="datetime"]::-moz-placeholder,
147
+ .romo-form input[type="datetime-local"]::-moz-placeholder,
148
+ .romo-form input[type="date"]::-moz-placeholder,
149
+ .romo-form input[type="month"]::-moz-placeholder,
150
+ .romo-form input[type="time"]::-moz-placeholder,
151
+ .romo-form input[type="week"]::-moz-placeholder,
152
+ .romo-form input[type="number"]::-moz-placeholder,
153
+ .romo-form input[type="email"]::-moz-placeholder,
154
+ .romo-form input[type="url"]::-moz-placeholder,
155
+ .romo-form input[type="search"]::-moz-placeholder,
156
+ .romo-form input[type="tel"]::-moz-placeholder,
157
+ .romo-form input[type="color"]::-moz-placeholder,
158
+ input.romo-select-dropdown-option-filter::-moz-placeholder {
159
+ @include input-placeholder;
160
+ }
161
+ .romo-form textarea:-moz-placeholder, /* Firefox 18- */
162
+ .romo-form input[type="text"]:-moz-placeholder,
163
+ .romo-form input[type="password"]:-moz-placeholder,
164
+ .romo-form input[type="datetime"]:-moz-placeholder,
165
+ .romo-form input[type="datetime-local"]:-moz-placeholder,
166
+ .romo-form input[type="date"]:-moz-placeholder,
167
+ .romo-form input[type="month"]:-moz-placeholder,
168
+ .romo-form input[type="time"]:-moz-placeholder,
169
+ .romo-form input[type="week"]:-moz-placeholder,
170
+ .romo-form input[type="number"]:-moz-placeholder,
171
+ .romo-form input[type="email"]:-moz-placeholder,
172
+ .romo-form input[type="url"]:-moz-placeholder,
173
+ .romo-form input[type="search"]:-moz-placeholder,
174
+ .romo-form input[type="tel"]:-moz-placeholder,
175
+ .romo-form input[type="color"]:-moz-placeholder,
176
+ input.romo-select-dropdown-option-filter:-moz-placeholder {
177
+ @include input-placeholder;
178
+ }
179
+ .romo-form textarea:-ms-input-placeholder, /* IE 10+ */
180
+ .romo-form input[type="text"]:-ms-input-placeholder,
181
+ .romo-form input[type="password"]:-ms-input-placeholder,
182
+ .romo-form input[type="datetime"]:-ms-input-placeholder,
183
+ .romo-form input[type="datetime-local"]:-ms-input-placeholder,
184
+ .romo-form input[type="date"]:-ms-input-placeholder,
185
+ .romo-form input[type="month"]:-ms-input-placeholder,
186
+ .romo-form input[type="time"]:-ms-input-placeholder,
187
+ .romo-form input[type="week"]:-ms-input-placeholder,
188
+ .romo-form input[type="number"]:-ms-input-placeholder,
189
+ .romo-form input[type="email"]:-ms-input-placeholder,
190
+ .romo-form input[type="url"]:-ms-input-placeholder,
191
+ .romo-form input[type="search"]:-ms-input-placeholder,
192
+ .romo-form input[type="tel"]:-ms-input-placeholder,
193
+ .romo-form input[type="color"]:-ms-input-placeholder,
194
+ input.romo-select-dropdown-option-filter:-ms-input-placeholder {
195
+ @include input-placeholder;
196
+ }
197
+
105
198
  .romo-form select:focus,
106
199
  .romo-form textarea:focus,
107
200
  .romo-form input[type="text"]:focus,
@@ -8,7 +8,12 @@ var RomoAjax = function(element) {
8
8
  this.elem = $(element);
9
9
  this.targetElem = $(this.elem.data('romo-ajax-target'));
10
10
 
11
- this.invokeOn = this.elem.data('romo-ajax-invoke-on') || 'click';
11
+ this.defaultInvokeOn = 'click';
12
+ this.invokeOn = this.elem.data('romo-ajax-invoke-on');
13
+ if (this.invokeOn === undefined && this.elem.data('romo-ajax-disable-default-invoke-on') !== true) {
14
+ this.invokeOn = this.defaultInvokeOn;
15
+ }
16
+
12
17
  this.callMethod = this.elem.data('romo-ajax-call-method') || 'GET';
13
18
  this.urlAttr = this.elem.data('romo-ajax-url-attr') || 'href';
14
19
  this.callOnlyOnce = this.elem.data('romo-ajax-call-once') === true;
@@ -16,7 +21,9 @@ var RomoAjax = function(element) {
16
21
  this.invokeQueued = false;
17
22
  this.invokeRunning = false;
18
23
 
19
- this.elem.unbind(this.invokeOn);
24
+ if (this.invokeOn !== undefined) {
25
+ this.elem.unbind(this.invokeOn);
26
+ }
20
27
 
21
28
  this.doInit();
22
29
  this.doBindElem();
@@ -29,12 +36,16 @@ RomoAjax.prototype.doInit = function() {
29
36
 
30
37
  RomoAjax.prototype.doBindElem = function() {
31
38
  this.doUnbindElem();
32
- this.elem.on(this.invokeOn, $.proxy(this.onInvoke, this));
39
+ if (this.invokeOn !== undefined) {
40
+ this.elem.on(this.invokeOn, $.proxy(this.onInvoke, this));
41
+ }
33
42
  this.elem.on('romoAjax:triggerInvoke', $.proxy(this.onInvoke, this));
34
43
  }
35
44
 
36
45
  RomoAjax.prototype.doUnbindElem = function() {
37
- this.elem.off(this.invokeOn, $.proxy(this.onInvoke, this));
46
+ if (this.invokeOn !== undefined) {
47
+ this.elem.off(this.invokeOn, $.proxy(this.onInvoke, this));
48
+ }
38
49
  this.elem.off('romoAjax:triggerInvoke', $.proxy(this.onInvoke, this));
39
50
  }
40
51
 
data/lib/romo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.19.0"
2
+ VERSION = "0.19.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: romo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2017-06-19 00:00:00 Z
13
+ date: 2017-06-23 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: assert