beyond-rails 0.0.258 → 0.0.263
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/SearchDropdown.js +1 -0
- data/src/js/components/TagInput.js +7 -2
- 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: c68a62a7a7cb119c6c0b31ec428dca33fd34fafd15f78a57351a5f504c39bb54
|
4
|
+
data.tar.gz: 936f0f2f04b0340ac662e096688d517165628bbcd8bcd97d31c37c935f06a844
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4540fa5e0475f803440896c5506207749ed03c85d84422a3640e1511fc1bec599b8f1914d7d0d1f678dee1aecf0b017870074f240ec61854d030871e3dc364cc
|
7
|
+
data.tar.gz: f5e971151429d2113f35ec0fcc7c89250d16571470a8ca534a8d0729f29016caa859556fe2b2555840755e900e3797f5cc0a5241e7ad6177baa169d34c3fa173
|
@@ -12,6 +12,7 @@ export default class TagInput {
|
|
12
12
|
this.validate = options.validate || (() => ({ isTag: true }))
|
13
13
|
this.suggest = options.suggest || noop
|
14
14
|
this.change = options.change || noop
|
15
|
+
this.remove = options.remove || noop
|
15
16
|
this.isComposing = false
|
16
17
|
this.raf = raf
|
17
18
|
this.id = 0
|
@@ -109,6 +110,9 @@ export default class TagInput {
|
|
109
110
|
|
110
111
|
getTag(inputValue, options = {}) {
|
111
112
|
|
113
|
+
this.id += 1
|
114
|
+
|
115
|
+
const id = this.id
|
112
116
|
const classname = options.classname ? ` ${options.classname}` : ''
|
113
117
|
const tag = document.createElement('div')
|
114
118
|
|
@@ -124,13 +128,13 @@ export default class TagInput {
|
|
124
128
|
this.tags = this.tags.filter(row => row.elem !== tag)
|
125
129
|
btn.removeEventListener('click', handleBtnClick)
|
126
130
|
tag.remove()
|
131
|
+
this.remove(id)
|
127
132
|
this.change(this.tags.slice())
|
128
133
|
}
|
129
134
|
btn.addEventListener('click', handleBtnClick)
|
130
135
|
tag.appendChild(btn)
|
131
|
-
this.id += 1
|
132
136
|
|
133
|
-
return { id
|
137
|
+
return { id, elem: tag, remove: handleBtnClick, options }
|
134
138
|
}
|
135
139
|
|
136
140
|
setTags(rows) {
|
@@ -140,6 +144,7 @@ export default class TagInput {
|
|
140
144
|
dom.insertBefore(tag.elem, inputDiv)
|
141
145
|
})
|
142
146
|
this.tags = tags
|
147
|
+
this.change(this.tags.slice())
|
143
148
|
}
|
144
149
|
|
145
150
|
addTag(inputValue, options = {}) {
|
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.263
|
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-
|
12
|
+
date: 2020-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sassc
|