beyond-rails 0.0.277 → 0.0.282
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/js/components/Btn.js +15 -3
- data/src/sass/components/_alert.scss +4 -0
- data/src/sass/components/_modal.scss +1 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84764131a5737bd683cf3690338141c3827bd1711f3855fdde09a278d50e4baf
|
4
|
+
data.tar.gz: 43b9c768e48c899fc86cdecb4d7f4229e530e037a01dea8f4959c0a9cce9d77a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 324798b34628570b49bd35bf346c9f5e1e3460a78d62983b649293adebf2b36c919aea9b2ae28cf2d751aee7d160cb5dee4a8e358f1f38a2d6c0f5e3566e44fc
|
7
|
+
data.tar.gz: dd6558c7597206de7ad26883918b0f9b66a0b4750ef59c332386503313de666440c6cb888fa76f4d45f8bae7aacc68e6f364f0b89dac2d1c5e0687ba510ea28c
|
data/src/js/components/Btn.js
CHANGED
@@ -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.
|
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
|
-
|
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
|
}
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beyond-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.282
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kmsheng
|
8
8
|
- Eddie Li
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sassc
|
@@ -93,7 +93,7 @@ dependencies:
|
|
93
93
|
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: 3.3.0
|
96
|
-
description:
|
96
|
+
description:
|
97
97
|
email: kmsh3ng@gmail.com
|
98
98
|
executables: []
|
99
99
|
extensions: []
|
@@ -273,7 +273,7 @@ homepage: https://superlanding.github.io/beyond/
|
|
273
273
|
licenses:
|
274
274
|
- MIT
|
275
275
|
metadata: {}
|
276
|
-
post_install_message:
|
276
|
+
post_install_message:
|
277
277
|
rdoc_options: []
|
278
278
|
require_paths:
|
279
279
|
- lib
|
@@ -288,8 +288,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
288
|
- !ruby/object:Gem::Version
|
289
289
|
version: '0'
|
290
290
|
requirements: []
|
291
|
-
rubygems_version: 3.0.
|
292
|
-
signing_key:
|
291
|
+
rubygems_version: 3.0.9
|
292
|
+
signing_key:
|
293
293
|
specification_version: 4
|
294
294
|
summary: beyond is a collection of frontend components which aims for admin website.
|
295
295
|
test_files: []
|