uniform-ui 2.3.8 → 2.4.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9566ad08a43ed0204e254e42b65c8a76a4dd1058236afce3a93b1f884eacde6a
|
4
|
+
data.tar.gz: 0257d025d1e28a83a3bacbabde35026f1157673b0dc68d4c9da4cbfba81a6791
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 361a95d852b66e3cf378b5273f9a077a3277de187027b9d36f11148f0b3d1e58b45e5058054819c4d036385352ba73b7165768a0a6cfb26ba3cf320da7d74523
|
7
|
+
data.tar.gz: 073ffe49aa8b44bb2fa6eba2605b7bc0ba2673239098cab22db37e1d9827a72003170577a344a0f3ba03863c2fee74274bb87b6ad5549b7838221107402fef21
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import Dropdown from 'uniform/dropdown';
|
2
|
-
import Checkbox from 'uniform/checkbox';
|
3
|
-
import Modal from 'uniform/modal';
|
4
|
-
import Select from 'uniform/select';
|
5
|
-
import FloatingLabel from 'uniform/floating-label';
|
6
|
-
import Resizer from 'uniform/resizer';
|
7
|
-
import Tooltip from 'uniform/tooltip';
|
8
|
-
import Popover from 'uniform/popover';
|
1
|
+
import Dropdown from './uniform/dropdown';
|
2
|
+
import Checkbox from './uniform/checkbox';
|
3
|
+
import Modal from './uniform/modal';
|
4
|
+
import Select from './uniform/select';
|
5
|
+
import FloatingLabel from './uniform/floating-label';
|
6
|
+
import Resizer from './uniform/resizer';
|
7
|
+
import Tooltip from './uniform/tooltip';
|
8
|
+
import Popover from './uniform/popover';
|
9
9
|
|
10
10
|
export {
|
11
11
|
Dropdown,
|
@@ -14,7 +14,7 @@ export default class FloatingLabel extends Component {
|
|
14
14
|
}
|
15
15
|
|
16
16
|
render () {
|
17
|
-
if(!Helpers.is_visible(this.input)) return;
|
17
|
+
// if(!Helpers.is_visible(this.input)) return;
|
18
18
|
if(Helpers.hasClass(this.el, 'enabled')) return;
|
19
19
|
|
20
20
|
var padding = parseInt(Helpers.css(this.input, 'paddingBottom'));
|
@@ -31,7 +31,7 @@ export default class FloatingLabel extends Component {
|
|
31
31
|
this.label.style.paddingLeft = Helpers.css(this.input, 'paddingLeft');
|
32
32
|
this.label.style.height = this.startingHeight;
|
33
33
|
this.label.style.lineHeight = this.startingHeight + "px";
|
34
|
-
|
34
|
+
|
35
35
|
if (Helpers.is_focus(this.input)) this.activate();
|
36
36
|
if (typeof this.input.value !== "undefined" && this.input.value != "") this.activate();
|
37
37
|
}
|
@@ -90,6 +90,7 @@ export default class Modal extends Component {
|
|
90
90
|
}
|
91
91
|
|
92
92
|
close () {
|
93
|
+
console.log('close');
|
93
94
|
Helpers.removeClass(document.querySelectorAll('uniformModal-active'), 'uniformModal-active');
|
94
95
|
var elements = this.blur.children;
|
95
96
|
var elementCount = elements.length
|
@@ -159,11 +159,13 @@ export default class Popover extends Component {
|
|
159
159
|
if (e.target == this.options.anchor) return;
|
160
160
|
if (this.el.contains(e.target)) return;
|
161
161
|
if (this.options.anchor.contains(e.target)) return;
|
162
|
+
if (this.persisting) return;
|
162
163
|
this.hide();
|
163
164
|
}
|
164
165
|
|
165
166
|
checkEscape (e) {
|
166
167
|
if(e.which != 27) return;
|
168
|
+
if (this.persisting) return;
|
167
169
|
this.hide();
|
168
170
|
}
|
169
171
|
|
@@ -192,4 +194,12 @@ export default class Popover extends Component {
|
|
192
194
|
flag = flag || this.showing;
|
193
195
|
if(flag) this.hide(); else this.show();
|
194
196
|
}
|
197
|
+
|
198
|
+
persist() {
|
199
|
+
this.persisting = true;
|
200
|
+
}
|
201
|
+
|
202
|
+
unpersist() {
|
203
|
+
this.persisting = false;
|
204
|
+
}
|
195
205
|
}
|
data/lib/uniform/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uniform-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Ehmke
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -118,7 +118,7 @@ homepage: http://bemky.github.io/uniform/
|
|
118
118
|
licenses:
|
119
119
|
- MIT
|
120
120
|
metadata: {}
|
121
|
-
post_install_message:
|
121
|
+
post_install_message:
|
122
122
|
rdoc_options: []
|
123
123
|
require_paths:
|
124
124
|
- lib
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubygems_version: 3.1.2
|
137
|
-
signing_key:
|
137
|
+
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Sass UI
|
140
140
|
test_files: []
|