material_raingular 0.1.3 → 0.1.3.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: f66bf16eb66fabb42468ea92f44cb92f85359534
4
- data.tar.gz: 684e58c7df7473f04b3afcec0a33fb25b9c61689
3
+ metadata.gz: e0541d66f235ba0e3ceed9369cd6e0d65a80eef4
4
+ data.tar.gz: 32fdcba3dd949f193761fc5ea4ebf033baf025bd
5
5
  SHA512:
6
- metadata.gz: 6f4c6cc6b92dc6d2fce3e22e32c031f0b4207a5b2dc548231deda26a2786c4c4f841d61745876e7ce473677fb07144b86be5b2d6f44bc05af537dcfea59f09fa
7
- data.tar.gz: fe0a299756ac4b72a5f325f5d1a0d1f05fc307356469fb635f03ad3ed244bbfb4948192d90411f3473e0b2b6ee74c8af6b73f090286e0bf03b16f20992ce5ee7
6
+ metadata.gz: a6487165d623bf7cbe4d47fd83f00e3899aab242eeb914dccecfb15c1c64befd119291074621fb62e75da398291a569957c424c390a8a78d147f5fd97526ba42
7
+ data.tar.gz: f2c5fa8944a2bad2106f1bc9702422977ac1a137912b59d82a78780ac7a38508ccf1aa1a3860ef7e7d6d5eb468e3178de214100c7f2912be86502c6c275f3ace
@@ -154,7 +154,7 @@ class EventFunctions
154
154
  collection = @functions.collection(@scope)
155
155
  if @options.allowNew
156
156
  collection.push(obj) unless collection.includes(obj)
157
- val = @filteredList(true,false,@options.allowNew)[0]
157
+ val = @filteredList(!@options.allowNew,false,@options.allowNew,true)[0]
158
158
  @updateValue @functions.modelValueFn(val)
159
159
 
160
160
  keydownFunction: (search,typeAhead,template,input) =>
@@ -220,13 +220,13 @@ angular.module('FilteredSelect', [])
220
220
  if !isNaN(left) && !isNaN(right)
221
221
  return true if parseFloat(left) == parseFloat(right)
222
222
  false
223
- filteredList = (bool,model,exact)->
224
- if bool
223
+ filteredList = (similar,model,exact,full)->
224
+ if similar
225
225
  bool = (left,right) ->
226
226
  !!left.match(new RegExp("^" + right))
227
227
  if exact
228
228
  bool = (left,right) -> left == right
229
- location = elements.search[0].selectionStart || elements.search.val().length
229
+ location = (if full then null else elements.search[0].selectionStart) || elements.search.val().length
230
230
  if functions.isPrimative
231
231
  obj = if model then scope.$eval(attrs.ngModel) else elements.search.val()[0..location - 1].replace(/^\s+/g,'') || ''
232
232
  else
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody