romo 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/assets/css/romo/_mixins.scss +5 -0
- data/assets/css/romo/base.scss +5 -4
- data/assets/css/romo/forms.scss +93 -0
- data/assets/js/romo/ajax.js +15 -4
- data/lib/romo/version.rb +1 -1
- metadata +2 -2
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:
|
7
|
-
metadata.gz:
|
3
|
+
data.tar.gz: 8138f63992cc7497d64037372684692299cce71f
|
4
|
+
metadata.gz: 65042d7a48b309125b015a9067c4b50b5ee95e34
|
5
|
+
SHA512:
|
6
|
+
data.tar.gz: 95d60b59e392804a22b10c619593f45d72fabb5e07bd8d240f0ac19ea4ce6171dca40bdef686e6dad6922e38b4304e7d78bde96ce83ae352349306bc1ce8c064
|
7
|
+
metadata.gz: 1d963a15733a80f29fed5aff78a79c83df6316a9edb891159444cdb188ba53f9a9ff76d413c323393ccfb75e7cfd0650c7055c0154c412d33064dd40a3025ecc
|
data/assets/css/romo/base.scss
CHANGED
@@ -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
|
102
|
-
.romo-
|
103
|
-
.romo-
|
104
|
-
.romo-
|
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
|
|
data/assets/css/romo/forms.scss
CHANGED
@@ -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,
|
data/assets/js/romo/ajax.js
CHANGED
@@ -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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
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.
|
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-
|
13
|
+
date: 2017-06-23 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: assert
|