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: 2e593038a926c3a7a06730b4789445dac83b9a62cc52f45432a4b468976576dc
4
- data.tar.gz: e3ebd72423a9c8033c9adb86fcb6185011ea8c86ce326fdf5a8d2f30809700a5
3
+ metadata.gz: b780979f87486b16c2ea25af18ad8a37a103e556aed14f811a8fd7f1eb1c750f
4
+ data.tar.gz: 8575fdd96a7871e13a93456a1445f873a7088b38d8498a7ec5f42811a23fcacf
5
5
  SHA512:
6
- metadata.gz: 1a1ae344be9c2f6ac8df46135d9c43e8fc835062040f1fe46f9ca5e321d20ede77814b54927654860d2e3b353d8e0bbf39d2c49f1695b1732102d6f195fe3246
7
- data.tar.gz: bac6e07fa1aa425b1ec7d089d97498ab8d854805c667f0703407856e1e271d6cd1b6906083d40e9c3ab4c016ad306f3fb38e06cbd29393aa122740e6c864effc
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
 
@@ -12,8 +12,8 @@
12
12
  color: hsla(0, 0%, 100%, .6);
13
13
  }
14
14
  &.active {
15
- background-color: #5469d4;
16
- color: #fff
15
+ background-color: $control-active-bg;
16
+ color: $control-active-color;
17
17
  }
18
18
  &.input.active {
19
19
  color: #fff
@@ -3,6 +3,10 @@
3
3
  .date-input,
4
4
  .time-input {
5
5
  background: $control-bg;
6
+ &.active {
7
+ background: $control-active-bg;
8
+ color: $control-active-color;
9
+ }
6
10
  }
7
11
  box-shadow: 0 0 0 1px rgba(42, 47, 69, .1),
8
12
  0 2px 5px 0 rgba(42, 47, 69, .1),
@@ -12,8 +12,8 @@
12
12
  color: hsla(0, 0%, 100%, .6);
13
13
  }
14
14
  &.active {
15
- background-color: #5469d4;
16
- color: #fff
15
+ background-color: $control-active-bg;
16
+ color: $control-active-color;
17
17
  }
18
18
  &.input.active {
19
19
  color: #fff
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.13
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-04-01 00:00:00.000000000 Z
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: []