58
|
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 |