beyond-rails 0.0.255 → 0.0.260
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/LineChart.js +1 -0
- data/src/js/components/TagInput.js +14 -4
- data/src/sass/_main.scss +4 -0
- data/src/sass/base/_typography.scss +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d17e55b168562da8ed9f3d501fecf52f5343e0ef1ef5695e3e37b1ff514c63e
|
4
|
+
data.tar.gz: '09b3662f9ef5558f8383f7f02edce72081363a834d0200612b2b85d0fecc2eaf'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0a1c0f73414bdb7b7968d27f4dbf940e0b16c2a5368d195924b6ccc683e77ef3b2bbcc206a66042d23241d7abfc8d117e6a286a1decd5f5ddeca47468fd7ad7
|
7
|
+
data.tar.gz: b8460319d81cbc6d8a5f974450eeafb6d494e05ce4311e9e4b5a4afd5c981187f4581b82e4836a833d98a6a0e3c907a3263963a1a59bbe0c3a7b9882b3609269
|
@@ -82,15 +82,23 @@ export default class TagInput {
|
|
82
82
|
}
|
83
83
|
const { elem } = tag
|
84
84
|
const { timeout } = options
|
85
|
-
|
85
|
+
|
86
|
+
if (this.timer) {
|
87
|
+
clearTimeout(this.timer)
|
88
|
+
this.timer = null
|
89
|
+
}
|
90
|
+
else {
|
91
|
+
this.oldAttrs = rows.map(row => elem.getAttribute(row.name))
|
92
|
+
}
|
86
93
|
|
87
94
|
rows.forEach(row => {
|
88
95
|
elem.setAttribute(row.name, row.value)
|
89
96
|
})
|
90
97
|
|
91
98
|
if (timeout) {
|
92
|
-
setTimeout(() => {
|
99
|
+
this.timer = setTimeout(() => {
|
93
100
|
if (document.body.contains(elem)) {
|
101
|
+
const { oldAttrs } = this
|
94
102
|
rows.forEach((row, i) => {
|
95
103
|
elem.setAttribute(row.name, oldAttrs[i])
|
96
104
|
})
|
@@ -148,10 +156,9 @@ export default class TagInput {
|
|
148
156
|
if (! res.isTag) {
|
149
157
|
return this.shake()
|
150
158
|
}
|
151
|
-
this.addTag(inputValue, res)
|
152
|
-
|
153
159
|
input.value = ''
|
154
160
|
suggestInput.value = ''
|
161
|
+
this.addTag(inputValue, res)
|
155
162
|
}
|
156
163
|
|
157
164
|
removeTagIfNeeded() {
|
@@ -183,8 +190,11 @@ export default class TagInput {
|
|
183
190
|
let lastValue = ''
|
184
191
|
|
185
192
|
this.addEvent(input, 'keydown', async event => {
|
193
|
+
|
186
194
|
const key = getKey(event)
|
187
195
|
if ((key === 'enter') && (! this.isComposing)) {
|
196
|
+
event.preventDefault()
|
197
|
+
event.stopPropagation()
|
188
198
|
await this.addTagIfNeeded()
|
189
199
|
}
|
190
200
|
else if ((key === 'backspace') && (lastValue === '')) {
|
data/src/sass/_main.scss
CHANGED
@@ -33,19 +33,19 @@ h6 {
|
|
33
33
|
}
|
34
34
|
|
35
35
|
.txt-primary {
|
36
|
-
color: $txt-color-primary;
|
36
|
+
color: $txt-color-primary !important;
|
37
37
|
}
|
38
38
|
.txt-secondary {
|
39
|
-
color: $txt-color-secondary;
|
39
|
+
color: $txt-color-secondary !important;
|
40
40
|
}
|
41
41
|
.txt-success {
|
42
|
-
color: $txt-color-success;
|
42
|
+
color: $txt-color-success !important;
|
43
43
|
}
|
44
44
|
.txt-warn {
|
45
|
-
color: $txt-color-warn;
|
45
|
+
color: $txt-color-warn !important;
|
46
46
|
}
|
47
47
|
.txt-danger {
|
48
|
-
color: $txt-color-danger;
|
48
|
+
color: $txt-color-danger !important;
|
49
49
|
}
|
50
50
|
|
51
51
|
.txt-white {
|
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.
|
4
|
+
version: 0.0.260
|
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-11-
|
12
|
+
date: 2020-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sassc
|