beyond-rails 0.0.166 → 0.0.167

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: 79511da8ea9b14e7b49b62eccaaf2c36372320dea558bac4aba6ff60d23b0bf8
4
- data.tar.gz: a216822a034bcd04a2b72e4465c2b9b8ff029e928d89b26f2bc8bd5ecb0f6905
3
+ metadata.gz: 9fde2fa864b41e2fda852ddc34afaecd688a168a38b1097a49ba7df10b82e9ab
4
+ data.tar.gz: cf431f900d99d4a79046e96e860728ea182678fa496cff2dd841da1f7f710d3f
5
5
  SHA512:
6
- metadata.gz: 8ac592c3ba4c54433e12544bbf68e68ce2981ee5f3853ea1a4fe9aae21c0c41adb24a1803459ec282f5f03731be9f925c5e025b137e748128b857a9db446cb99
7
- data.tar.gz: 465e5a45929198f38cc4de13f5f9dacbfd76452d5f8c16b2e186ca7ca10b1926c4398346cc0a44547e7c7cb5de0eb3d470aa6e946cda992876124933984ab82d
6
+ metadata.gz: 06f9b0d9383c72b5847709c05decddd266b6a1b45d130d63b28c0b19d76b5b8463fd779c7223db6f217440bd6efa3a68a543734511109c45687624d795b7ff54
7
+ data.tar.gz: 2c03a75862cff4ee8209386f59dd0f4497e8c242fda2a19b84769679021cdf5f87566b043d81649370de5d30ce11d844f8b594bdd1f23771f3e68ab525ecdfb4
@@ -24,6 +24,7 @@ export default class Datepicker {
24
24
  this.menuDate = (timestamp === null) ? toDate(new Date()) : toDate(this.date)
25
25
  this.focused = false
26
26
  this.nextDate = null
27
+ this.backdropMode = options.backdropMode || 'auto'
27
28
  this.init()
28
29
  }
29
30
 
@@ -225,6 +226,9 @@ export default class Datepicker {
225
226
  this.focused = false
226
227
  return
227
228
  }
229
+ if (this.backdropMode === 'manual') {
230
+ return
231
+ }
228
232
  if ((! dateMenu.isVisible) && (timeMenu && (! timeMenu.isVisible))) {
229
233
  return
230
234
  }
@@ -15,6 +15,7 @@ export default class Dropdown {
15
15
  this.align = null
16
16
  this.defaultTextNode = this.getDefaultTextNode(dom, options.textIndex)
17
17
  this.defaultText = this.defaultTextNode ? this.defaultTextNode.textContent.trim() : ''
18
+ this.backdropMode = options.backdropMode || 'auto'
18
19
  this.init()
19
20
  }
20
21
 
@@ -121,6 +122,9 @@ export default class Dropdown {
121
122
  if (! this.isMenuVisible) {
122
123
  return
123
124
  }
125
+ if (this.backdropMode === 'manual') {
126
+ return
127
+ }
124
128
  // is backdrop
125
129
  if ((event.target !== this.dom) && (! this.dom.contains(event.target))) {
126
130
  this.hideMenu()
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.166
4
+ version: 0.0.167
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-13 00:00:00.000000000 Z
12
+ date: 2020-05-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc