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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 928afae9ce37098e3c2e9973c8f5bee236f7e191
|
4
|
+
data.tar.gz: 9f304b3dad37648b209669d3e03dd274bbb6464a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
246
|
-
|
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()
|
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
|
+
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-
|
11
|
+
date: 2016-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|