beyond-rails 0.0.255 → 0.0.260

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: 68c18389bc3fc3c322900aa4f5fb6883b68cb5255fc26bf3ed8ab257f55b22b6
4
- data.tar.gz: d52ea6b4f1d3aee55fdf7e3d1b539c2128187158116af66eabca5dc3d40b328a
3
+ metadata.gz: 4d17e55b168562da8ed9f3d501fecf52f5343e0ef1ef5695e3e37b1ff514c63e
4
+ data.tar.gz: '09b3662f9ef5558f8383f7f02edce72081363a834d0200612b2b85d0fecc2eaf'
5
5
  SHA512:
6
- metadata.gz: 6af46b3f2c22d2aa4f2ba797071df8b0216923ec5943983293b68d3d6b5f393e7882a73ead03045add7489ca8caaf48a6460f8ea9e84287153c4f02cfb7a3602
7
- data.tar.gz: bdacd91a41fd9cb6739253ae8639ef1340425822191287203896ccb4fb30b80215799cf36e98cbcb631cd72e057dacd89560d89789c3fc60423c7f5109cb0f07
6
+ metadata.gz: a0a1c0f73414bdb7b7968d27f4dbf940e0b16c2a5368d195924b6ccc683e77ef3b2bbcc206a66042d23241d7abfc8d117e6a286a1decd5f5ddeca47468fd7ad7
7
+ data.tar.gz: b8460319d81cbc6d8a5f974450eeafb6d494e05ce4311e9e4b5a4afd5c981187f4581b82e4836a833d98a6a0e3c907a3263963a1a59bbe0c3a7b9882b3609269
@@ -553,6 +553,7 @@ export default class LineChart {
553
553
  if (isDef(toYLabel)) {
554
554
  mem.clear(this.toYLabel)
555
555
  }
556
+ this.pointsArr.length = 0
556
557
  this.clearPointPos()
557
558
  this.unbindMedia()
558
559
  this.removeAllLayers()
@@ -82,15 +82,23 @@ export default class TagInput {
82
82
  }
83
83
  const { elem } = tag
84
84
  const { timeout } = options
85
- const oldAttrs = rows.map(row => elem.getAttribute(row.name))
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 === '')) {
@@ -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.255
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-25 00:00:00.000000000 Z
12
+ date: 2020-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc