uniform-ui 2.3.8 → 2.4.0

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
  SHA256:
3
- metadata.gz: 2b4f7938b973ccb9c32bf45bb9c1a1fabf65b7ffc97e69dcfa9fe9487b950eae
4
- data.tar.gz: bf582bd4dbcae57d353f5db33bacf01a55cee0739cc5e916513cb0e6c4f1740b
3
+ metadata.gz: 9566ad08a43ed0204e254e42b65c8a76a4dd1058236afce3a93b1f884eacde6a
4
+ data.tar.gz: 0257d025d1e28a83a3bacbabde35026f1157673b0dc68d4c9da4cbfba81a6791
5
5
  SHA512:
6
- metadata.gz: 420120ca0b39985caefbe6f2c2d80f05b7d4aab99ff96ad6afbf3699ba0eb239ff323b7a44f9b3dbc318465bc78d80fa572ef0b7adfbe3f16845fbe9c2576b83
7
- data.tar.gz: 495641bc5063bcec62eb67394f204d2861eb31033c350954b82f02054f37435477c0a75e40ee124e27ef35643ac6948c843d1ad736dc67e68d0791e49b33b89b
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
  }
@@ -1,3 +1,3 @@
1
1
  module Uniform
2
- VERSION = "2.3.8"
2
+ VERSION = "2.4.0"
3
3
  end
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.3.8
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-04-23 00:00:00.000000000 Z
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: []