romo 0.15.7 → 0.15.8
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 +4 -4
- data/assets/css/romo/select.scss +1 -1
- data/assets/js/romo/datepicker.js +16 -9
- data/assets/js/romo/select.js +11 -1
- data/assets/js/romo/select_dropdown.js +0 -1
- data/lib/romo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
|
4
|
-
|
3
|
+
data.tar.gz: 3132e5085a74da458d7af2e6c7d8826a7177ed78
|
4
|
+
metadata.gz: 899e62df705c8bbde86c05c026d11523dfd059eb
|
5
5
|
SHA512:
|
6
|
-
|
7
|
-
|
6
|
+
data.tar.gz: cb3cfd2ea1dc99fe8dbd70a96986f61a0682c0c409315873f3055773c57c3ca936448933a4977ab137218893eaaba1a021ae1ea384a73f637b34f4aa826d7d3c
|
7
|
+
metadata.gz: 6457df35ac58a9ac0bed756720aa79ce4a596095a2461bcb1f57bed75027d4e8177013de6793ac7a2121e252cf505698191258085a8a36a04bdd8c925024e692
|
data/assets/css/romo/select.scss
CHANGED
@@ -11,14 +11,15 @@ var RomoDatepicker = function(element) {
|
|
11
11
|
"January", "February", "March", "April", "May", "June",
|
12
12
|
"July", "August", "September", "October", "November", "December"
|
13
13
|
]
|
14
|
-
this.defaultPrevClass
|
15
|
-
this.defaultNextClass
|
16
|
-
this.defaultIndicatorClass
|
17
|
-
this.
|
18
|
-
this.
|
19
|
-
this.
|
20
|
-
this.
|
21
|
-
this.
|
14
|
+
this.defaultPrevClass = undefined;
|
15
|
+
this.defaultNextClass = undefined;
|
16
|
+
this.defaultIndicatorClass = undefined;
|
17
|
+
this.defaultIndicatorWidthPx = 0;
|
18
|
+
this.itemSelector = 'TD.romo-datepicker-day:not(.disabled)';
|
19
|
+
this.calTable = $();
|
20
|
+
this.date = undefined;
|
21
|
+
this.today = new Date;
|
22
|
+
this.prevValue = undefined;
|
22
23
|
|
23
24
|
this.doInit();
|
24
25
|
this.doBindElem();
|
@@ -67,7 +68,13 @@ RomoDatepicker.prototype.doBindElem = function() {
|
|
67
68
|
this._hide(this.indicatorElem);
|
68
69
|
}
|
69
70
|
this.indicatorElem.on('click', $.proxy(this.onIndicatorClick, this));
|
70
|
-
|
71
|
+
|
72
|
+
var indicatorWidthPx = this.elem.data('romo-datepicker-indicator-width-px') || this.defaultIndicatorWidthPx;
|
73
|
+
// left-side spacing
|
74
|
+
// + indicator width
|
75
|
+
// + right-side spacing
|
76
|
+
var indicatorPaddingPx = 4 + indicatorWidthPx + 4;
|
77
|
+
this.elem.css({'padding-right': indicatorPaddingPx + 'px'});
|
71
78
|
this.elem.after(this.indicatorElem);
|
72
79
|
}
|
73
80
|
|
data/assets/js/romo/select.js
CHANGED
@@ -7,6 +7,9 @@ $.fn.romoSelect = function() {
|
|
7
7
|
var RomoSelect = function(element) {
|
8
8
|
this.elem = $(element);
|
9
9
|
|
10
|
+
this.defaultCaretClass = undefined;
|
11
|
+
this.defaultCaretWidthPx = 0;
|
12
|
+
|
10
13
|
this.doInit();
|
11
14
|
this.doBindSelectDropdown();
|
12
15
|
this.doRefreshUI();
|
@@ -144,7 +147,14 @@ RomoSelect.prototype._buildSelectDropdownElem = function() {
|
|
144
147
|
var caret = $('<i class="romo-select-caret '+caretClass+'"></i>');
|
145
148
|
caret.css({'line-height': romoSelectDropdownElem.css('line-height')});
|
146
149
|
caret.on('click', $.proxy(this.onCaretClick, this));
|
147
|
-
|
150
|
+
|
151
|
+
var caretWidthPx = this.elem.data('romo-select-caret-width-px') || this.defaultCaretWidthPx;
|
152
|
+
// left-side spacing
|
153
|
+
// + caret width
|
154
|
+
// - 1 px select styling optical illusion
|
155
|
+
// + right-side spacing
|
156
|
+
var caretPaddingPx = 4 + caretWidthPx - 1 + 4;
|
157
|
+
romoSelectDropdownElem.css({'padding-right': caretPaddingPx + 'px'});
|
148
158
|
romoSelectDropdownElem.append(caret);
|
149
159
|
}
|
150
160
|
|
@@ -6,7 +6,6 @@ $.fn.romoSelectDropdown = function(optionElemsParent) {
|
|
6
6
|
|
7
7
|
var RomoSelectDropdown = function(element, optionElemsParent) {
|
8
8
|
this.elem = $(element);
|
9
|
-
this.defaultCaretClass = '';
|
10
9
|
this.itemSelector = 'LI[data-romo-select-item="opt"]:not(.disabled)';
|
11
10
|
this.prevValue = undefined;
|
12
11
|
|
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.15.
|
4
|
+
version: 0.15.8
|
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: 2016-03-
|
13
|
+
date: 2016-03-24 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: assert
|