comparison src/app/query-mode.js @ 58:3b4046e0cc02 default

Merge from ng2-table branch. d7c947909ab888c013171b8c037e4f9fab30fe57
author casties
date Wed, 29 Mar 2017 17:19:12 +0200
parents
children
comparison
equal deleted inserted replaced
49:781a5387ca93 58:3b4046e0cc02
1 "use strict";
2 function getQueryModeById(id) {
3 return exports.QUERY_MODES.find(function (elem) { return elem.id === id; });
4 }
5 exports.getQueryModeById = getQueryModeById;
6 exports.QUERY_MODES = [
7 { id: 'type_is', label: 'Object type is' },
8 { id: 'att_contains', label: 'Attribute (contains)' },
9 { id: 'att_contains_norm', label: 'Attribute (contains normalized)' },
10 { id: 'att_num_range', label: 'Attribute (number range)' },
11 { id: 'relation_is', label: 'Relation type is' },
12 { id: 'id_is', label: 'Object ID is' }
13 ];
14 exports.FIRST_QUERY_MODES = [
15 { id: 'type_is', label: 'Object type is' },
16 { id: 'id_is', label: 'Object ID is' }
17 ];
18 //# sourceMappingURL=query-mode.js.map