material_raingular 0.1.5.4 → 0.1.5.5

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
  SHA1:
3
- metadata.gz: 0445a1bd23609962ce24495b386fa847d41a4b23
4
- data.tar.gz: e1f729a314d4a73b22a5c06f3b68ac889d91c5fb
3
+ metadata.gz: 43ff00bee31d5d8c0c99201e826343163ecb65c3
4
+ data.tar.gz: 0d41f86c9803a1310f7b55b1861b7c8dbb9d7d2a
5
5
  SHA512:
6
- metadata.gz: 966ad5a588ccbb0e5dd0fd856482b427defa6242ea1546c60f5c098cb36c62a0d9beec9c4bc3c6b95189e97a116c8a9d61f1a76c7fb61c316cf7217d46ba2767
7
- data.tar.gz: af2a53efb48d80dc166f26d0292e62161a52c8cc57a51a14a1064c242dec76ec361afa7f6a9c239820e2fffc05163a15d78f87762e77fc83fed167c7f76cfe20
6
+ metadata.gz: e7def9087ac7369583f2f25cc994d2a3cb17a4fe99819542eac30de8154ee37f8c7753ea9fd8e64a8e4737debe1a9c7500b006eb8b34b7878933050e09719c67
7
+ data.tar.gz: ae6e7071e6d2bdbe869aa59e8bed1134156409590c0ef032eb502c68e4d0263b4ef6375dfbabcdf488864c15d16e1c7e040148845e1565917b4da3dd1e3da1b6
@@ -37,6 +37,7 @@ class MobileTemplate
37
37
  constructor: (@element,functions) ->
38
38
  @template = angular.element("<ul> </ul>")
39
39
  @search = angular.element "<input type='search' placeholder='Search'>"
40
+ @closeSearch = angular.element "<button>X</button>"
40
41
  @tempHolder = angular.element("<div class='filtered-select' ></div>")
41
42
  @body = angular.element(document.body)
42
43
  @mousedownFunction = functions[0]
@@ -48,6 +49,7 @@ class MobileTemplate
48
49
  @attachElements()
49
50
  attachElements: ->
50
51
  @tempHolder.append @search
52
+ @tempHolder.append @closeSearch
51
53
  @tempHolder.append @template
52
54
  @body.append @tempHolder
53
55
  stylize: ->
@@ -57,6 +59,8 @@ class MobileTemplate
57
59
  full - @search[0].offsetHeight + 'px'
58
60
  @tempHolder.addClass('bottom') if @element.hasClass('bottom')
59
61
  @template.css('height',ulHeight())
62
+ @search.css('width','calc(100% - 50px)')
63
+ @closeSearch.css('border','none').css('background-color','rgba(0,0,0,0.1)').css('width','30px').css('padding','5px')
60
64
 
61
65
  bind: ->
62
66
  @element.bind 'mousedown', (event) =>
@@ -65,6 +69,8 @@ class MobileTemplate
65
69
  @keydownFunction(@tempHolder,event)
66
70
  @search.bind 'input', (event) =>
67
71
  @inputFunction(event)
72
+ @closeSearch. bind 'mousedown', (event) =>
73
+ @tempHolder.removeClass('active')
68
74
 
69
75
  class StandardTemplate
70
76
  constructor: (@element,attrs,functions,@disabled,@viewOptions) ->
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.1.5.4"
2
+ VERSION = "0.1.5.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.4
4
+ version: 0.1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-04 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler