beyond-rails 0.0.278 → 0.0.283

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: 357f7181d6ead420e1734b599acbc3fdf635fcf665be35bbb26e37796e6d3eb5
4
- data.tar.gz: 58958b9fe36351364410b06c08822e1963f8bd02ee9a46bfab08353a1ef9d24a
3
+ metadata.gz: 68652a34bf7c21d7a7bcb535725039926a579e9b48a8c140950cf703e4f80741
4
+ data.tar.gz: 32936a6b9b65f4ef35588e78e6ffd0eede699dd1725a7e015b77715f26c0f37b
5
5
  SHA512:
6
- metadata.gz: be99024014dda5554c501d5ac151e91a3107d92970f16de660154124b091e384f9d463a2899ec498d5f255aacdd3050ebd5c1e9f8c23b325a42019f0c6049689
7
- data.tar.gz: 2af808b2f3510ce0901ec556a2ea3b19edd8a73e7e65dd511d19c8e81ade97f04dac88adc715d94f113ca0bc42d3a61393dd7196f829201deb86fa5781388a7d
6
+ metadata.gz: 776ff828f38e1a9e5108fd651b5c2d3fc4e69a18b73b461a889fe8f96e9322bb0b61eb6f4d5eed3e717763d03daf76f895b6ff43068b2d166e8645a5d4900b71
7
+ data.tar.gz: 5eba1719211d83516efb79c89ccb75ef6cd61482a885334db66da7d6c0ae43653dc4fc65668410630fc1f866e8687fd7e12149c3a96349cde52b05dc7f8b7975
@@ -11,8 +11,11 @@ export default class Btn {
11
11
  }
12
12
 
13
13
  showLoader() {
14
+ if (this.loading) {
15
+ return
16
+ }
14
17
  const { dom } = this
15
- this._innerHtml = dom.innerHTML
18
+ this.innerHtml = dom.innerHTML
16
19
  dom.style.height = toPixel(dom.offsetHeight)
17
20
  dom.style.width = toPixel(dom.offsetWidth)
18
21
  dom.innerHTML = `
@@ -28,14 +31,23 @@ export default class Btn {
28
31
  }
29
32
 
30
33
  hideLoader() {
34
+
35
+ if (! this.loading) {
36
+ return
37
+ }
31
38
  const { dom } = this
32
39
  dom.style.removeProperty('width')
33
40
  dom.style.removeProperty('height')
34
- dom.innerHTML = this._innerHtml
41
+
42
+ const { innerHtml } = this
43
+
44
+ if (innerHtml) {
45
+ dom.innerHTML = innerHtml
46
+ }
35
47
  }
36
48
 
37
49
  setLoading(loading) {
38
- this.loading = loading
39
50
  loading ? this.showLoader() : this.hideLoader()
51
+ this.loading = loading
40
52
  }
41
53
  }
@@ -40,6 +40,10 @@
40
40
  }
41
41
  }
42
42
  }
43
+
44
+ .alert.alert-dismissible {
45
+ padding-right: 3rem;
46
+ }
43
47
  .alert-dismissible .close {
44
48
  position: absolute;
45
49
  top: 0;
@@ -78,6 +78,7 @@
78
78
  font-size: 14px;
79
79
  font-weight: 400;
80
80
  }
81
+ .btn.btn-danger,
81
82
  .btn.btn-primary {
82
83
  margin-left: 10px;
83
84
  }
@@ -1,6 +1,7 @@
1
1
  .pagination {
2
2
  display: flex;
3
3
  list-style: none;
4
+ flex-wrap: wrap;
4
5
  }
5
6
 
6
7
  %page-link {
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.278
4
+ version: 0.0.283
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: 2021-01-25 00:00:00.000000000 Z
12
+ date: 2021-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc