dbweb-common
Version:
用`yarn add dbweb-common`安装,不要忘记修改`angular.json`里的 `architect\build\options\assets`,加上
41 lines (40 loc) • 2.16 kB
TypeScript
import { CurrentService } from 'dbweb-core';
import { Observable } from 'rxjs';
import { AddCategoryParam, AddLabelParam, EleViewBackFaceService, FetchLabelResult, SetCategoryPositionParam, SetCategoryPositionResult, SetLabelPositionParam, SetLabelPositionResult, UpdateCategoryParam, UpdateLabelParam } from '../../services/eleview/eleview-backface';
import { Category } from '../../services/eleview/types/category';
import { IElementHis, ILabel, ILabelHisItem, ILabelHisKey, ILabelKey, INode, OwnerByEnum } from '../../services/eleview/types/model';
import { ElementDataRecordView } from './element.service';
import { BackFace } from '../../components/label-manager/service/backface';
export declare class LabelMockBackfaceService implements BackFace {
private backface;
private curr;
isAdd: boolean;
recordViewData: ElementDataRecordView;
constructor(backface: EleViewBackFaceService, curr: CurrentService);
addCategory(param: AddCategoryParam): Observable<Category>;
removeCategory(id: string): Observable<boolean>;
setCategoryPosition(param: SetCategoryPositionParam): Observable<SetCategoryPositionResult[]>;
updateCategory(param: UpdateCategoryParam): Observable<boolean>;
fetchCategories(param: {
EleName: string;
OwnerBy: OwnerByEnum;
Owner: string;
}): Observable<Category[]>;
fetchCategoryLabelHis(param: {
EleName: string;
OwnerBy: OwnerByEnum;
Owner: string[];
}): Observable<IElementHis[]>;
fetchLabelHisList(param: ILabelKey): Observable<ILabelHisItem[]>;
fetchLabelHis(param: ILabelHisKey): Observable<{
Conts: string;
PlainText: string;
}>;
addLabel(param: AddLabelParam): Observable<ILabel>;
removeLabel(param: ILabelKey): Observable<boolean>;
nodeToString(param: INode): Observable<string>;
stringToNode(param: string): Observable<INode>;
setLabelPosition(param: SetLabelPositionParam): Observable<SetLabelPositionResult[]>;
updateLabel(param: UpdateLabelParam): Observable<ILabel>;
fetchLabel(param: ILabelKey): Observable<FetchLabelResult>;
}