diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/app/query-mode.js	Wed Mar 29 17:19:12 2017 +0200
@@ -0,0 +1,18 @@
+"use strict";
+function getQueryModeById(id) {
+    return exports.QUERY_MODES.find(function (elem) { return elem.id === id; });
+}
+exports.getQueryModeById = getQueryModeById;
+exports.QUERY_MODES = [
+    { id: 'type_is', label: 'Object type is' },
+    { id: 'att_contains', label: 'Attribute (contains)' },
+    { id: 'att_contains_norm', label: 'Attribute (contains normalized)' },
+    { id: 'att_num_range', label: 'Attribute (number range)' },
+    { id: 'relation_is', label: 'Relation type is' },
+    { id: 'id_is', label: 'Object ID is' }
+];
+exports.FIRST_QUERY_MODES = [
+    { id: 'type_is', label: 'Object type is' },
+    { id: 'id_is', label: 'Object ID is' }
+];
+//# sourceMappingURL=query-mode.js.map
\ No newline at end of file