material_raingular 0.1.6.1 → 0.1.7

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: bd3b6db6477268896554435718fc4f2bbc7cc071
4
- data.tar.gz: e105ec6dd91888908f94ba38060de948bf0df69b
3
+ metadata.gz: 928afae9ce37098e3c2e9973c8f5bee236f7e191
4
+ data.tar.gz: 9f304b3dad37648b209669d3e03dd274bbb6464a
5
5
  SHA512:
6
- metadata.gz: d76c6bd070aea8883a9ab6af9cbf9861b4a7151e34becdb4c3c5eb08634d1ec98405e4742c2e017f1bc4b8aeace2d6dac52e0dd3ca88a5909de6916417d8d892
7
- data.tar.gz: 8a1edf30645e6cd6ac993f0f6614e7d54b6249a820a9359b1cd4d77307654bdcdb34243bfc07a9ac7cb70627c3ac20c83262a3bb4f3bd52dae0bb49c1330ab77
6
+ metadata.gz: ff410be20c8eacc328e1f0df1b7739b856d57f0897b6d065ef5d246ddf141f2c01339c8896a3a3713a01446c2007a967a76a29727bd058aa4c60a92a0a2c4b0b
7
+ data.tar.gz: e9fa03c1c0d1ab827892874a9942e7f0dbcc083ef69e6c5b618e73130f32d41243492062aceee6a82f2484e7fab40bf1ecee352ba32165b904484ae0b20fae78
@@ -9,7 +9,7 @@ class SelectOptions
9
9
  # 6: object item key variable name
10
10
  # 7: object item value variable name
11
11
  # 8: collection
12
- # 9: track by expressionj
12
+ # 9: track by expression
13
13
  constructor: (@unparsed,@html) ->
14
14
  @filters = @unparsed.split('|')
15
15
  @options = @filters.shift()
@@ -227,6 +227,7 @@ angular.module('FilteredSelect', [])
227
227
  filteredList = (similar,model,exact,full)->
228
228
  if similar
229
229
  bool = (left,right) ->
230
+ return unless left
230
231
  !!left.match(new RegExp("^" + right.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")))
231
232
  if exact
232
233
  bool = (left,right) -> left == right
@@ -242,8 +243,10 @@ angular.module('FilteredSelect', [])
242
243
  return unless functions.collection(scope)
243
244
  fList = $filter('orderBy')($filter('filter')(functions.collection(scope), obj,bool), viewOptions.orderBy || functions.viewValue)
244
245
  for filter in options.filters
245
- [filterType,value] = filter.replace(/\s+/,'').split(':')
246
- fList = $filter(filterType)(fList, value)
246
+ pieces = filter.replace(/\s+/,'').split(':')
247
+ filterType = pieces.shift()
248
+ value = pieces.join(':')
249
+ fList = $filter(filterType)(fList, $parse(value)())
247
250
  fList
248
251
  buildTemplate = ->
249
252
  elements.template.empty()
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.1.6.1"
2
+ VERSION = "0.1.7"
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.6.1
4
+ version: 0.1.7
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-08-16 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler