material_raingular 0.1.4 → 0.1.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: 1fbc1c8e457d3d29a51cfdeef987f75f1b8c9388
4
- data.tar.gz: 348434658ae4ad9f254f751bc480c5d6297ce964
3
+ metadata.gz: 99e8d90a20262152188fe0983f5c932f68584cf0
4
+ data.tar.gz: 31ead29835562041ab0010021f957af6467b417b
5
5
  SHA512:
6
- metadata.gz: 8929655ac842dea0fca60478d9cf8a98337e9becf008e71f7a5867deee21a610423f2541d59fb74de35a0617a71420e9fd14e5af9af14f9025e46841c38bd1ee
7
- data.tar.gz: 8caf7efd64684a7d0f8b2cdb4ee97809e793466fb21a325678c4a14bed74a7228ae5487db8f77a47dce91332a606d7b6ecba3a2fda17015664f3509f40c4229f
6
+ metadata.gz: ca2b9dde87dbc0a9268010e0e81e5220601c2d892f76c3039f34ef1ebd376b8fd08c2b1b6066b614032f31e00cfee7c36882df4974a9de6b30ac49fa02adf08e
7
+ data.tar.gz: 7196fd6e5cd21ceeb50111cbb49f8fa058b168326ebb182fd818bbdff1eb8a534ea528b419ac17338b46c8a6544f3bcf52a91339392cd0b5ca44eee4595687c5
@@ -87,14 +87,15 @@ class StandardTemplate
87
87
  @element.css('position','relative').css('overflow','visible')
88
88
  @span.css('overflow','hidden').css('width','100%').css('display','inline-block').css('position','relative')
89
89
  searchCss = window.getComputedStyle(@search[0])
90
+ @tempHolder.css('display','none') if @viewOptions.hideList
90
91
  @typeAhead.css('white-space', 'nowrap')
91
92
  @typeAhead.css('padding-left', parseFloat(searchCss["padding-left"]) + parseFloat(searchCss["margin-left"]) + parseFloat(searchCss["border-left-width"]) + 'px')
92
93
  padding = parseFloat(searchCss["padding-top"]) + parseFloat(searchCss["margin-top"]) + parseFloat(searchCss["border-top-width"])
93
94
  parent = @element[0]
94
- until parent.tagName == 'TD'
95
+ until parent.tagName == 'TD' || parent.tagName == 'MD-MENU-ITEM'
95
96
  break unless parent.parentNode
96
97
  parent = parent.parentNode
97
- padding += 1 unless parent.tagName == 'TD'
98
+ padding += 1 unless parent.tagName == 'TD' || parent.tagName == 'MD-MENU-ITEM'
98
99
  @typeAhead.css('padding-top', padding + 'px')
99
100
 
100
101
  bind: ->
@@ -223,7 +224,7 @@ angular.module('FilteredSelect', [])
223
224
  filteredList = (similar,model,exact,full)->
224
225
  if similar
225
226
  bool = (left,right) ->
226
- !!left.match(new RegExp("^" + right))
227
+ !!left.match(new RegExp("^" + right.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")))
227
228
  if exact
228
229
  bool = (left,right) -> left == right
229
230
  location = (if full then null else elements.search[0].selectionStart) || elements.search.val().length
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.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.4
4
+ version: 0.1.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-04-12 00:00:00.000000000 Z
11
+ date: 2016-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler