beyond-rails 0.0.163 → 0.0.164
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/DateTimeRanger.js +10 -2
- 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: 1ad020881c1d51901e4c527d170c678baee4f168bcd653cf21a96e020dda07ff
|
4
|
+
data.tar.gz: 94419506c23c379233fdf58f7312fbc0e08ab12e321689361ba7180971188568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 655d77d4c84410b29ce3fdb7fd7befeed326e07c9e9bb125a8ffb8fd54c63be9646a740e6e0c4a1b867df3ec721ae8bff5c55fb97fd842f22c71ba0533ce66dc
|
7
|
+
data.tar.gz: a9f43297b9a1639e1c9c4d9837c75062afefbc3130afde6faf08718b59283b9f4e4a357760fad0ca574ea1c33ed01fe4d2ad93f6c430c6ac28b979666cfe398c
|
@@ -307,6 +307,11 @@ export default class DateTimeRanger {
|
|
307
307
|
})
|
308
308
|
}
|
309
309
|
|
310
|
+
clearInputDateSetStatus() {
|
311
|
+
this.inputDateStartSet = false
|
312
|
+
this.inputDateEndSet = false
|
313
|
+
}
|
314
|
+
|
310
315
|
addMenuEvents() {
|
311
316
|
this.dateMenu.on('td-mouseover', (event, res) => {
|
312
317
|
if (this.dateMenu.startDate && (! this.dateMenu.endDate)) {
|
@@ -318,8 +323,7 @@ export default class DateTimeRanger {
|
|
318
323
|
event.preventDefault()
|
319
324
|
|
320
325
|
if (this.inputDateStartSet && this.inputDateEndSet) {
|
321
|
-
this.
|
322
|
-
this.inputDateEndSet = false
|
326
|
+
this.clearInputDateSetStatus()
|
323
327
|
}
|
324
328
|
|
325
329
|
const { year, month, date } = res
|
@@ -419,6 +423,10 @@ export default class DateTimeRanger {
|
|
419
423
|
if (dateLt(startOfDay(this.endDate), startOfDay(this.startDate))) {
|
420
424
|
this.switchDates()
|
421
425
|
}
|
426
|
+
if (this.inputDateStartSet && (! this.inputDateEndSet)) {
|
427
|
+
this.emitChange()
|
428
|
+
}
|
429
|
+
this.clearInputDateSetStatus()
|
422
430
|
dateMenu.hide()
|
423
431
|
timeMenu.hide()
|
424
432
|
})
|
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.164
|
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-05-
|
12
|
+
date: 2020-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sassc
|