beyond-rails 0.0.258 → 0.0.263

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83b9e4c8bf66817ec8fa0527c656beaf770bb5b24658c62b64e8bf02bca3efec
4
- data.tar.gz: 223409095aaa801811c032862e9faef7819ea886cd2fea927b78f25e1ab9cc29
3
+ metadata.gz: c68a62a7a7cb119c6c0b31ec428dca33fd34fafd15f78a57351a5f504c39bb54
4
+ data.tar.gz: 936f0f2f04b0340ac662e096688d517165628bbcd8bcd97d31c37c935f06a844
5
5
  SHA512:
6
- metadata.gz: 5fc2f2890ac0bf86fe5e1040da650fc627d10f5984b42ae43d85ffd0edd4583c312935b82b617d617276aff89580600b1a818b160ead65c39fb906977871c6e4
7
- data.tar.gz: f4ae4425e442cd85834abcb05bc754c2b1f6b256552bdc865f3ccd9a630e5ced6d2093b3875269fe170bc3588be6c2f69ba88807ea121cd3cd3386dcc7b6887c
6
+ metadata.gz: 4540fa5e0475f803440896c5506207749ed03c85d84422a3640e1511fc1bec599b8f1914d7d0d1f678dee1aecf0b017870074f240ec61854d030871e3dc364cc
7
+ data.tar.gz: f5e971151429d2113f35ec0fcc7c89250d16571470a8ca534a8d0729f29016caa859556fe2b2555840755e900e3797f5cc0a5241e7ad6177baa169d34c3fa173
@@ -107,6 +107,7 @@ export default class SearchDropdown {
107
107
  menu.dataset.place = this.place
108
108
  menu.dataset.align = this.align
109
109
  this.isMenuVisible = false
110
+ this.lastKeyword = null
110
111
  }
111
112
 
112
113
  showMenu() {
@@ -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: this.id, elem: tag, remove: handleBtnClick, options }
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 = {}) {
@@ -170,3 +170,7 @@ input[type=file], /* FF, IE7+, chrome (except button) */
170
170
  input[type=file]::-webkit-file-upload-button { /* chromes and blink button */
171
171
  cursor: pointer;
172
172
  }
173
+
174
+ .nowrap {
175
+ white-space: nowrap !important;
176
+ }
@@ -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.258
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-11-26 00:00:00.000000000 Z
12
+ date: 2020-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc