annotate src/app/query-mode.ts @ 62:7787ca310644 webpack tip

update @angular to 4.4.5.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Wed, 18 Oct 2017 17:46:41 +0200
parents 308c96f734c8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
59b7c3afcc6b first interface and http request.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff changeset
1 export interface QueryMode {
59b7c3afcc6b first interface and http request.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff changeset
2 id: string;
59b7c3afcc6b first interface and http request.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff changeset
3 label: string;
11
6989cd00e8d7 relations work now as well as longer queries.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 1
diff changeset
4 }
6989cd00e8d7 relations work now as well as longer queries.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 1
diff changeset
5
55
308c96f734c8 first steps to importing state from URL.
casties
parents: 47
diff changeset
6 export function getQueryModeById(id: string) {
308c96f734c8 first steps to importing state from URL.
casties
parents: 47
diff changeset
7 return QUERY_MODES.find((elem) => elem.id === id);
308c96f734c8 first steps to importing state from URL.
casties
parents: 47
diff changeset
8 }
308c96f734c8 first steps to importing state from URL.
casties
parents: 47
diff changeset
9
11
6989cd00e8d7 relations work now as well as longer queries.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 1
diff changeset
10 export var QUERY_MODES: QueryMode[] = [
6989cd00e8d7 relations work now as well as longer queries.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 1
diff changeset
11 {id: 'type_is', label:'Object type is'},
15
f84ff6781e57 added att_num_range query type.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 11
diff changeset
12 {id: 'att_contains', label: 'Attribute (contains)'},
f84ff6781e57 added att_num_range query type.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 11
diff changeset
13 {id: 'att_contains_norm', label: 'Attribute (contains normalized)'},
f84ff6781e57 added att_num_range query type.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 11
diff changeset
14 {id: 'att_num_range', label: 'Attribute (number range)'},
32
4c046f3244ec new 'id_is' query type. new '_type' attribute.
casties
parents: 15
diff changeset
15 {id: 'relation_is', label: 'Relation type is'},
35
b47614a9d23d fix cut and paste error.
casties
parents: 34
diff changeset
16 {id: 'id_is', label: 'Object ID is'}
34
e19d4c5e10a1 restricted selectable options for first query step.
casties
parents: 32
diff changeset
17 ];
e19d4c5e10a1 restricted selectable options for first query step.
casties
parents: 32
diff changeset
18
e19d4c5e10a1 restricted selectable options for first query step.
casties
parents: 32
diff changeset
19 export var FIRST_QUERY_MODES: QueryMode[] = [
e19d4c5e10a1 restricted selectable options for first query step.
casties
parents: 32
diff changeset
20 {id: 'type_is', label:'Object type is'},
32
4c046f3244ec new 'id_is' query type. new '_type' attribute.
casties
parents: 15
diff changeset
21 {id: 'id_is', label: 'Object ID is'}
34
e19d4c5e10a1 restricted selectable options for first query step.
casties
parents: 32
diff changeset
22 ];