view src/app/query-mode.ts @ 47:b65a031c4967 ng2-final

first step to angular2-final (2.4) version of the query browser.
author casties
date Fri, 17 Mar 2017 20:16:52 +0100
parents app/query-mode.ts@b47614a9d23d
children 308c96f734c8
line wrap: on
line source

export interface QueryMode {
    id: string;
    label: string;
}

export var QUERY_MODES: QueryMode[] = [
    {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'}
];

export var FIRST_QUERY_MODES: QueryMode[] = [
    {id: 'type_is', label:'Object type is'},
    {id: 'id_is', label: 'Object ID is'}
];