beyond-rails 1.0.13 → 1.0.16
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b780979f87486b16c2ea25af18ad8a37a103e556aed14f811a8fd7f1eb1c750f
|
4
|
+
data.tar.gz: 8575fdd96a7871e13a93456a1445f873a7088b38d8498a7ec5f42811a23fcacf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd2eb48dc13b325b990b9ce0cdbf6ff231f1f068aab15c0d44f1dc2b24cca12a2f02402e7965923b9f22239fde8e1f1191f33b219b0165f085a3d8bd83302004
|
7
|
+
data.tar.gz: dda98c04a231066f187a1d02e68b0b39c05ca526ee652cb567e4a1c4fd8ba8aa184961480666db8668c0299cc3966ddfcfc030fb02423a5e1bfd6c942abc06fa
|
@@ -13,6 +13,7 @@ export default class TagInput {
|
|
13
13
|
this.validate = options.validate || (() => ({ isTag: true }))
|
14
14
|
this.suggest = options.suggest || noop
|
15
15
|
this.change = options.change || noop
|
16
|
+
this.inputId = options.inputId
|
16
17
|
this.isComposing = false
|
17
18
|
this.raf = raf
|
18
19
|
this.id = 0
|
@@ -26,7 +27,7 @@ export default class TagInput {
|
|
26
27
|
}
|
27
28
|
|
28
29
|
setup() {
|
29
|
-
const { defaultInputWidth } = this
|
30
|
+
const { defaultInputWidth, inputId } = this
|
30
31
|
const inputDiv = document.createElement('div')
|
31
32
|
inputDiv.className = 'tag-input-box'
|
32
33
|
|
@@ -36,6 +37,9 @@ export default class TagInput {
|
|
36
37
|
suggestInput.className = 'tag-suggest-input'
|
37
38
|
|
38
39
|
const input = document.createElement('input')
|
40
|
+
if (inputId) {
|
41
|
+
input.id = inputId
|
42
|
+
}
|
39
43
|
input.type = 'text'
|
40
44
|
input.style.width = defaultInputWidth + 'px'
|
41
45
|
input.className = 'tag-main-input'
|
@@ -237,6 +241,10 @@ export default class TagInput {
|
|
237
241
|
lastValue = input.value
|
238
242
|
})
|
239
243
|
|
244
|
+
this.addEvent(input, 'blur', () => {
|
245
|
+
this.addTagIfNeeded()
|
246
|
+
})
|
247
|
+
|
240
248
|
this.addEvent(input, 'input', event => {
|
241
249
|
this.suggestInputIfNeeded(input.value)
|
242
250
|
this.raf(() => {
|
@@ -270,7 +270,9 @@ $table-td-disabled-shadow: inset 0 -1px #c7c7c7;
|
|
270
270
|
|
271
271
|
// form
|
272
272
|
$control-bg: #fff;
|
273
|
+
$control-active-bg: #5469d4;
|
273
274
|
$control-color: #495057;
|
275
|
+
$control-active-color: #fff;
|
274
276
|
$control-disabled-bg: #e9ecef;
|
275
277
|
$control-disabled-color: #111;
|
276
278
|
|
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: 1.0.
|
4
|
+
version: 1.0.16
|
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: 2022-
|
12
|
+
date: 2022-06-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sassc
|
@@ -55,30 +55,42 @@ dependencies:
|
|
55
55
|
name: actionpack
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '5.0'
|
61
|
+
- - "<"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '7.0'
|
61
64
|
type: :runtime
|
62
65
|
prerelease: false
|
63
66
|
version_requirements: !ruby/object:Gem::Requirement
|
64
67
|
requirements:
|
65
|
-
- - "
|
68
|
+
- - ">="
|
66
69
|
- !ruby/object:Gem::Version
|
67
70
|
version: '5.0'
|
71
|
+
- - "<"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '7.0'
|
68
74
|
- !ruby/object:Gem::Dependency
|
69
75
|
name: activemodel
|
70
76
|
requirement: !ruby/object:Gem::Requirement
|
71
77
|
requirements:
|
72
|
-
- - "
|
78
|
+
- - ">="
|
73
79
|
- !ruby/object:Gem::Version
|
74
80
|
version: '5.0'
|
81
|
+
- - "<"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '7.0'
|
75
84
|
type: :runtime
|
76
85
|
prerelease: false
|
77
86
|
version_requirements: !ruby/object:Gem::Requirement
|
78
87
|
requirements:
|
79
|
-
- - "
|
88
|
+
- - ">="
|
80
89
|
- !ruby/object:Gem::Version
|
81
90
|
version: '5.0'
|
91
|
+
- - "<"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '7.0'
|
82
94
|
- !ruby/object:Gem::Dependency
|
83
95
|
name: will_paginate
|
84
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,7 +105,7 @@ dependencies:
|
|
93
105
|
- - ">="
|
94
106
|
- !ruby/object:Gem::Version
|
95
107
|
version: 3.3.0
|
96
|
-
description:
|
108
|
+
description:
|
97
109
|
email: kmsh3ng@gmail.com
|
98
110
|
executables: []
|
99
111
|
extensions: []
|
@@ -278,7 +290,7 @@ homepage: https://superlanding.github.io/beyond/
|
|
278
290
|
licenses:
|
279
291
|
- MIT
|
280
292
|
metadata: {}
|
281
|
-
post_install_message:
|
293
|
+
post_install_message:
|
282
294
|
rdoc_options: []
|
283
295
|
require_paths:
|
284
296
|
- lib
|
@@ -293,9 +305,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
305
|
- !ruby/object:Gem::Version
|
294
306
|
version: '0'
|
295
307
|
requirements: []
|
296
|
-
rubyforge_project:
|
308
|
+
rubyforge_project:
|
297
309
|
rubygems_version: 2.7.6.2
|
298
|
-
signing_key:
|
310
|
+
signing_key:
|
299
311
|
specification_version: 4
|
300
312
|
summary: beyond is a collection of frontend components which aims for admin website.
|
301
313
|
test_files: []
|