beyond-rails 0.0.218 → 0.0.223

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: 1470e47dc62c7839462cdd74565a9083e47a85250ed63b58f203a6482d1a8da8
4
- data.tar.gz: 2961eca0b85bb238d8239d7a881cbc2b5e70696f952428ea52b47d6a0404f596
3
+ metadata.gz: 4553c64b69a89a73c3f089c2f60dab908af4fd66ec2cd79ff6398d6c76c3d398
4
+ data.tar.gz: 03b969d99a738d5deedfc826a977e976fd196694a2c00fb8a353e62e76302f11
5
5
  SHA512:
6
- metadata.gz: 465587c35573cfed1c8f48c20a030049fc8ddf61a6d6c1973ebc9387745e73ca3e4b5270591a46df29222ad28d21d4a7ae199d1f857e60f7f5e3f447879a1e1d
7
- data.tar.gz: 85aa502b424f9499893afe803e425e4bc7ec14500342297e869abcbdb27f70720aca4e062fe678e81d97f58d2ce7c9bce498babf3e30cf3ae5a71ec167b4ce29
6
+ metadata.gz: aab4a9b482401a3b877263062c81836b03b77288cf36ba0564ebdd6ce8b4874104f40611d123bd59808b2dc46790a7e8a2deb45c250515e883e1ae6c93ef5fab
7
+ data.tar.gz: 809fd8dd0318c58be35890993b6f7bb6c9d9ea5523b14d66f15e36afc9e409f72d30b0938ce8c463f10b945ff4d5947e6fd992b76369a39631dc7a169ffb8484
@@ -49,7 +49,19 @@ export default class Modal {
49
49
  this.modal = this.dom
50
50
  }
51
51
 
52
+ triggerShowEventIfNeeded() {
53
+ if (typeof $ === 'function') {
54
+ $(this.dom).trigger('beyond.modal.show')
55
+ }
56
+ }
57
+
52
58
  show(html) {
59
+
60
+ if (this.isVisible && html) {
61
+ this.replace(html)
62
+ return this.triggerShowEventIfNeeded()
63
+ }
64
+
53
65
  if (html) {
54
66
  this.replace(html)
55
67
  }
@@ -57,9 +69,7 @@ export default class Modal {
57
69
  this.modal.style.display = 'block'
58
70
  setTimeout(() => {
59
71
  this.modal.classList.add('js-active')
60
- if (typeof $ === 'function') {
61
- $(this.dom).trigger('beyond.modal.show')
62
- }
72
+ this.triggerShowEventIfNeeded()
63
73
  }, 50)
64
74
  }
65
75
 
@@ -28,6 +28,8 @@ import bind from './utils/bind'
28
28
  import docReady from './utils/docReady'
29
29
  import unbindAll from './utils/unbindAll'
30
30
  import {
31
+ $,
32
+ $$,
31
33
  allOff,
32
34
  load,
33
35
  on,
@@ -57,6 +59,8 @@ export {
57
59
  Timepicker,
58
60
  Toast,
59
61
  Tooltip,
62
+ $,
63
+ $$,
60
64
  bind,
61
65
  allOff,
62
66
  docReady,
@@ -131,6 +131,16 @@ $color-active: #5469d4;
131
131
  text-align: center !important;
132
132
  }
133
133
 
134
+ .float-left {
135
+ float: left !important;
136
+ }
137
+ .float-right {
138
+ float: right !important;
139
+ }
140
+ .float-none {
141
+ float: none !important;
142
+ }
143
+
134
144
  .sr-only {
135
145
  position: absolute;
136
146
  width: 1px;
@@ -90,27 +90,27 @@
90
90
 
91
91
  .#{$classname} {
92
92
  @if $side == '' {
93
- #{$prop}: $space;
93
+ #{$prop}: $space !important;
94
94
  }
95
95
  @else if $side == 't' {
96
- #{$prop}-top: $space;
96
+ #{$prop}-top: $space !important;
97
97
  }
98
98
  @else if $side == 'b' {
99
- #{$prop}-bottom: $space;
99
+ #{$prop}-bottom: $space !important;
100
100
  }
101
101
  @else if $side == 'l' {
102
- #{$prop}-left: $space;
102
+ #{$prop}-left: $space !important;
103
103
  }
104
104
  @else if $side == 'r' {
105
- #{$prop}-right: $space;
105
+ #{$prop}-right: $space !important;
106
106
  }
107
107
  @else if $side == 'x' {
108
- #{$prop}-left: $space;
109
- #{$prop}-right: $space;
108
+ #{$prop}-left: $space !important;
109
+ #{$prop}-right: $space !important;
110
110
  }
111
111
  @else if $side == 'y' {
112
- #{$prop}-top: $space;
113
- #{$prop}-bottom: $space;
112
+ #{$prop}-top: $space !important;
113
+ #{$prop}-bottom: $space !important;
114
114
  }
115
115
  @else {
116
116
  @error "Unknown side #{$side}.";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.218
4
+ version: 0.0.223
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmsheng
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-30 00:00:00.000000000 Z
12
+ date: 2020-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc