material_raingular 0.1.5.4 → 0.1.5.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43ff00bee31d5d8c0c99201e826343163ecb65c3
|
4
|
+
data.tar.gz: 0d41f86c9803a1310f7b55b1861b7c8dbb9d7d2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) ->
|
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
|
+
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-
|
11
|
+
date: 2016-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|