import { CalendarControlInterface } from '@ibizstudio/runtime'; import { MDControlBase } from './md-control-base'; import { IPSAppView, IPSDECalendar, IPSDEToolbarItem, IPSSysCalendarItem } from '@ibizstudio/runtime'; /** * 应用日历部件基类 * * @export * @class CalendarControlBase * @extends {MDControlBase} */ export declare class CalendarControlBase extends MDControlBase implements CalendarControlInterface { /** * 日历部件模型实例 * * @type {*} * @memberof CalendarControlBase */ controlInstance: IPSDECalendar; /** * 日历部件样式名 * * @public * @type {any[]} * @memberof CalendarControlBase */ calendarClass: string; /** * 日历默认打开样式 * * @type {string} * @memberof CalendarControlBase */ defaultView: string; /** * this引用 * * @type {any} * @memberof CalendarControlBase */ thisRef: any; /** * 组件key值(用于刷新日历) * * @type {any} * @memberof CalendarControlBase */ UUKey: string; /** * 设置头部显示 * * @public * @type {} * @memberof CalendarControlBase */ header: any; /** * 按钮文本集合 * * @public * @type {} * @memberof CalendarControlBase */ buttonText: any; /** * 自定义按钮集合 * * @public * @type {} * @memberof CalendarControlBase */ customButtons: any; /** * 模态显示控制变量 * * @public * @type boolean * @memberof CalendarControlBase */ modalVisible: boolean; /** * 跳转日期 * * @public * @type Date * @memberof CalendarControlBase */ selectedGotoDate: Date; /** * 日历部件动态参数 * * @type {any} * @memberof CalendarControlBase */ ctrlParams: any; /** * 有效日期范围 * * @public * @type {} * @memberof CalendarControlBase */ validRange: any; /** * 默认加载日期 * * @public * @type {} * @memberof CalendarControlBase */ defaultDate: any; /** * 快速工具栏项 * * @type {Array} * @memberof CalendarControlBase */ quickToolbarItems: Array; /** * 快速工具栏模型 * * @type {*} * @memberof CalendarControlBase */ quickToolbarModels: any; /** * 日程事件集合 * * @public * @type {any[]} * @memberof CalendarControlBase */ events: any[]; /** * 日历项上下文菜单集合 * * @type {string[]} * @memberof CalendarControlBase */ actionModel: any; /** * 备份日历项上下文菜单 * * @type {string[]} * @memberof CalendarControlBase */ copyActionModel: any; /** * 日历样式类型 * * @public * @type {string} * @memberof CalendarControlBase */ calendarType: string; /** * 图例显示控制 * * @public * @type {any} * @memberof CalendarControlBase */ isShowlegend: any; /** * 是否已经选中第一条数据 * * @type {boolean} * @memberof CalendarControlBase */ isSelectFirst: boolean; /** * 事件id * * @type {string} * @memberof CalendarControlBase */ eventid: string; /** * 事件类型map * * @type {any} * @memberof CalendarControlBase */ eventKey: any; /** * 查询参数缓存 * * @public * @type {any} * @memberof CalendarControlBase */ searchArgCache: any; /** * 监听部件动态参数变化 * * @param {*} newVal * @param {*} oldVal * @memberof CalendarControlBase */ onDynamicPropsChange(newVal: any, oldVal: any): void; /** * 监听部件参数变化 * * @param {*} newVal * @param {*} oldVal * @memberof CalendarControlBase */ onStaticPropsChange(newVal: any, oldVal: any): void; /** * 部件模型数据初始化 * * @memberof CalendarControlBase */ ctrlModelInit(args?: any): Promise; /** * 部件模型数据加载 * * @memberof CalendarControlBase */ ctrlModelLoad(): Promise; /** * 日历视图部件初始化 * * @memberof CalendarControlBase */ ctrlInit(): void; viewStateAction(tag: string, action: string, data: any): void; /** * 部件挂载 * * @memberof CalendarControlBase */ ctrlMounted(): void; /** * 初始化日历项上下文菜单集合 * * @memberof CalendarControlBase */ initActionModel(): void; /** * 初始化上下菜单项 * * @param toolbarItem * @param item * @param tempModel * @memberof CalendarControlBase */ initActionModelItem(toolbarItem: IPSDEToolbarItem, item: IPSSysCalendarItem, tempModel: any): void; /** * 初始化快速工具栏 * * @memberof CalendarControlBase */ initQuickToolbar(): void; /** * 初始化快速工具栏模型 * * @memberof CalendarControlBase */ initQuickToolbarItemModel(): void; /** * 初始化事件map对象 * * @memberof CalendarControlBase */ initEventKey(): void; /** * 初始化图例显示控制 * * @memberof CalendarControlBase */ initShowLegend(): void; /** * 图例点击事件 * * @param {string} itemType 日历项类型 * @return {*} * @memberof CalendarControlBase */ legendTrigger(itemType: string): void; /** * 面板数据变化处理事件 * @param {any} item 当前数据 * @param {any} $event 面板事件数据 * * @memberof CalendarControlBase */ onPanelDataChange(item: any, $event: any): void; /** * 搜索获取日程事件 * * @param {*} [fetchInfo] 日期信息 * @param {*} [successCallback] 成功回调 * @return {*} * @memberof CalendarControlBase */ searchEvents(fetchInfo?: any, successCallback?: any): void; /** * 日期点击事件 * * @param {*} $event 日期信息 * @memberof CalendarControlBase */ onDateClick($event: any): void; /** * 时间轴点击事件 * * @param {*} item 项数据 * @memberof CalendarControlBase */ onTimeLineClick(item: any): void; /** * 处理日历日程选中样式 * * @param {*} item 项数据 * @memberof CalendarControlBase */ handleEventSelectStyle($event: any): void; /** * 日程点击事件 * * @param {*} $event calendar事件对象或event数据 * @param {*} isOriginData true:$event是原始event数据,false:是组件 * @param {*} $event timeline事件对象 * @memberof CalendarControlBase */ onEventClick($event: any, isOriginData?: boolean, $event2?: any): Promise; /** * 整合参数 * * @memberof AppFuncService */ processingParameter(context: any, appView: any, deResParameters: any[], parameters: any[]): Promise; /** * 日历刷新 * * @param {*} [args] 额外参数 * @memberof CalendarControlBase */ refresh(args?: any): void; /** * 日程拖动事件 * * @param {*} $event 事件信息 * @memberof CalendarControlBase */ onEventDrop($event: any): void; /** * 快速工具栏菜单项点击 * * @param {*} tag 菜单项标识 * @param {*} $event 事件源 * @memberof CalendarControlBase */ itemClick(tag: any, $event: any): void; /** * 时间点击 * * @param {*} $event 当前时间 * @param {*} jsEvent 原生事件对象 * @returns * @memberof CalendarControlBase */ onDayClick($event: any, jsEvent: any): void; /** * 计算节点右键权限 * * @param {*} data 日历项数据 * @param {*} appEntityName 应用实体名称 * @returns * @memberof CalendarControlBase */ computeNodeState(data: any, appEntityName: string): Promise; /** * 计算日历日程样式 * * @param info */ handleEventStyle(info?: any): void; /** * 事件绘制回调 * * @param {*} info 信息 * @memberof CalendarControlBase */ eventRender(info?: any): void; /** * 绘制右键菜单 * * @param {*} event * @returns * @memberof CalendarControlBase */ renderContextMenu(event: any): import("vue").VNode | null; /** * 绘制快速工具栏项 * * @returns * @memberof CalendarControlBase */ renderBarMenu(): JSX.Element; /** * 部件事件 * @param ctrl 部件 * @param action 行为 * @param data 数据 * * @memberof CalendarControlBase */ onCtrlEvent(controlname: string, action: string, data: any): void; /** * 设置按钮文本 * * @public * @memberof CalendarControlBase */ setButtonText(): void; /** * 监听语言变化 * * @public * @memberof CalendarControlBase */ onLocaleChange(newval: any, val: any): void; /** * 打开时间选择模态 * * @public * @memberof CalendarControlBase */ openDateSelect(): void; /** * 跳转到指定时间 * * @public * @memberof CalendarControlBase */ gotoDate(): void; /** * 获取事件key * * @param {*} event 事件对象 * @return {*} * @memberof CalendarControlBase */ getEventKey(event: any): any; /** * 获取编辑视图信息 * * @param {string} deName 视图名称 * @return {*} * @memberof CalendarControlBase */ getEditView(item: IPSSysCalendarItem): IPSAppView | null | undefined; /** * 计算部件所需参数 * * @param {*} controlInstance 部件模型对象 * @param {*} item 日历项数据 * @returns * @memberof CalendarControlBase */ computeTargetCtrlData(controlInstance: any, item?: any): { targetCtrlName: string; targetCtrlParam: any; targetCtrlEvent: any; }; /** * 日程排序 * * @memberof CalendarControlBase */ scheduleSort(): void; } //# sourceMappingURL=calendar-control-base.d.ts.map