ConceptPortal-public/rsconcept/frontend/src/models/miscelanious.ts

93 lines
1.6 KiB
TypeScript
Raw Normal View History

/**
* Module: Miscellanious frontend model types. Future tagets for refactoring aimed at extracting modules.
*/
2023-09-11 20:31:54 +03:00
2023-11-01 14:09:44 +03:00
/**
* Represents graph dependency mode.
*/
2023-09-11 20:31:54 +03:00
export enum DependencyMode {
ALL = 0,
EXPRESSION,
OUTPUTS,
INPUTS,
EXPAND_OUTPUTS,
EXPAND_INPUTS
}
/**
* Represents graph node coloring scheme.
*/
export type GraphColoringScheme = 'none' | 'status' | 'type';
2023-11-01 14:09:44 +03:00
/**
* Represents manuals topic.
*/
2023-09-11 20:31:54 +03:00
export enum HelpTopic {
MAIN = 'main',
LIBRARY = 'library',
RSFORM = 'rsform',
CSTLIST = 'cstlist',
CONSTITUENTA = 'constituenta',
GRAPH_TERM = 'graph-term',
RSTEMPLATES = 'rstemplates',
2023-09-29 16:22:49 +03:00
RSLANG = 'rslang',
TERM_CONTROL = 'terminology-control',
2023-09-11 20:31:54 +03:00
EXTEOR = 'exteor',
2023-12-07 23:08:49 +03:00
API = 'api',
PRIVACY = 'privacy',
2023-09-11 20:31:54 +03:00
}
2023-11-01 14:09:44 +03:00
/**
* Represents {@link IConstituenta} matching mode.
*/
2023-09-11 20:31:54 +03:00
export enum CstMatchMode {
ALL = 1,
EXPR,
TERM,
TEXT,
NAME
}
2023-11-01 14:09:44 +03:00
/**
* Represents Library filter parameters.
*/
2023-09-11 20:31:54 +03:00
export interface ILibraryFilter {
query?: string
is_personal?: boolean
is_owned?: boolean
is_common?: boolean
is_canonical?: boolean
is_subscribed?: boolean
}
2023-11-01 14:09:44 +03:00
/**
* Represents filtering strategy for Library.
*/
2023-09-11 20:31:54 +03:00
export enum LibraryFilterStrategy {
MANUAL = 'manual',
PERSONAL = 'personal',
COMMON = 'common',
SUBSCRIBE = 'subscribe',
CANONICAL = 'canonical',
OWNED = 'owned'
}
2023-11-01 14:09:44 +03:00
/**
* Represents parameters for GraphEditor.
*/
export interface GraphFilterParams {
2023-11-01 14:09:44 +03:00
noHermits: boolean
noTransitive: boolean
noTemplates: boolean
noText: boolean
2023-11-01 14:09:44 +03:00
allowBase: boolean
allowStruct: boolean
allowTerm: boolean
allowAxiom: boolean
allowFunction: boolean
allowPredicate: boolean
allowConstant: boolean
allowTheorem: boolean
}