@kre-form/ant
Version:
81 lines (80 loc) • 2.64 kB
TypeScript
import { OnInit, OnChanges, EventEmitter } from "@angular/core";
import { KreFormAntService } from "../../tools/service";
import { KreFormCommonService, KreFormFieldConfig } from "@kre-form/core";
import { KreDialogService } from "../../service/dialog.service";
import { NzMessageService } from "ng-zorro-antd/message";
import { IFormJSON } from "../detail2/index.component";
export interface FormulaParamsOption {
modalTitle: string;
title: string;
fieldVariable?: any;
}
export declare class TriggerComponent implements OnInit, OnChanges {
private dyService;
private kreDialogService;
private message;
kreFormCommonService: KreFormCommonService;
business_form: IFormJSON;
business_tables: any;
options: any[];
triggerJson: any;
calculateRuleJson: any;
random: number;
actionEvent: EventEmitter<any>;
checkFormulaEvent: EventEmitter<any>;
configFormulaEvent: EventEmitter<any>;
showData: KreFormFieldConfig[];
list: any[];
tableScroll: {
y: string;
x: string;
};
fields: KreFormFieldConfig[];
keyword: string;
nzTotal: number;
nzPageSizeOptions: number[];
nzPageIndex: number;
nzPageSize: number;
getIsChangePageSize: boolean;
time: any;
EditType: any;
HideType: any;
RequireType: any;
TableType: any;
FieldBasicType: any;
currentShowExpand: number;
params: FormulaParamsOption;
formFields: any[];
tableList: any[];
ruleObj: any;
codeMirrorOptions: {
autoCloseBrackets: boolean;
keywords: never[];
textWrapping: boolean;
lineWrapping: boolean;
lineNumbers: boolean;
matchBrackets: boolean;
specialChars: RegExp;
mode: string;
labelMap: null;
autofocus: boolean;
};
constructor(dyService: KreFormAntService, kreDialogService: KreDialogService, message: NzMessageService, kreFormCommonService: KreFormCommonService);
ngOnInit(): void;
ngOnChanges(): void;
getShowDate(): void;
nzPageIndexChange(e: number): void;
search(): void;
nzPageSizeChange(e: number): void;
transLate(value: any, type: "hide" | "required" | "edit" | "type" | "tableType", selectType?: string): any;
clickAction(value: string, data: KreFormFieldConfig): void;
codemirror(data: any): void;
showText(data: any): string;
getTriggerJson(data: any): boolean;
isSetRule(data: any): boolean;
trigger(data: any): void;
getUnique3(arr: any[]): any[];
setRule(data: any, j: number): void;
canAddEvent(data: any): any;
canSetRule(data: any): any;
}