import { IBzCalendarConfig, IBzCalendarNode } from '../../interface'; import { IBzCalendarOption } from '../../store'; import { IBzResourceAllocationController } from '../ibz-resource-allocation-controller/ibz-resource-allocation-controller'; /** * 日历帮助工具类 * * @export * @class IBzResourceUtilController */ export declare class IBzResourceUtilController { private $c; private s; /** * Creates an instance of IBzResourceUtilController. * @param {IBzResourceAllocationController} c * @memberof IBzResourceUtilController */ constructor(c: IBzResourceAllocationController); /** * 配置参数 * * @readonly * @type {IBzCalendarOption} * @memberof IBzResourceUtilController */ get option(): IBzCalendarOption; /** * 设置参数 * * @param {IBzCalendarConfig} opt * @return {*} {Promise} * @memberof IBzResourceAllocation */ setOption(opt: IBzCalendarConfig): void; /** * 设置数据集 * * @param {any[]} items * @return {*} {Promise} * @memberof IBzResourceAllocation */ setItems(items: any[]): void; /** * 设置数据项 * * @author chitanda * @date 2021-03-08 17:03:58 * @param {*} item */ setItem(item: any): void; /** * 设置选中项 * * @author chitanda * @date 2021-03-08 17:03:41 * @param {IBzCalendarNode} item */ setSelect(item: IBzCalendarNode): void; /** * 时间向前一个月 * * @memberof IBzResourceAllocation */ lastMonth(): void; /** * 时间向后一个月 * * @memberof IBzResourceAllocation */ nextMonth(): void; /** * 向前一周 * * @memberof IBzResourceAllocation */ lastWeek(): void; /** * 向前一周 * * @memberof IBzResourceAllocation */ nextWeek(): void; /** * 前一天 * * @memberof IBzResourceAllocation */ lastDay(): void; /** * 后一天 * * @memberof IBzResourceAllocation */ nextDay(): void; /** * 增加一天显示日期 * * @memberof IBzResourceAllocation */ addDisplayDay(): void; /** * 减少一天显示日期 * * @memberof IBzResourceAllocation */ reduceDisplayDay(): void; /** * 是否为锁定状态 * * @author chitanda * @date 2021-03-11 10:03:07 * @readonly * @type {boolean} */ get isLock(): boolean; /** * 锁定拖拽 * * @memberof IBzResourceAllocation */ lockDrag(): void; /** * 解锁拖拽 * * @memberof IBzResourceAllocation */ unlockDrag(): void; /** * 变更拖拽锁定状态 * * @memberof IBzResourceAllocation */ changeLockDragState(): void; /** * 是否已启用格式刷状态 * * @author chitanda * @date 2021-03-11 10:03:56 * @readonly * @type {boolean} */ get isBrush(): boolean; /** * 启用格式刷状态 * * @author chitanda * @date 2021-03-11 10:03:31 */ enableBrush(): void; /** * 禁用格式刷状态 * * @author chitanda * @date 2021-03-11 10:03:36 */ disableBrush(): void; /** * 是否启用高亮 * * @author chitanda * @date 2021-03-11 14:03:49 * @readonly * @type {boolean} */ get isHighlight(): boolean; /** * 启用高亮 * * @author chitanda * @date 2021-03-11 14:03:31 */ enableHighlight(): void; /** * 禁用高亮 * * @author chitanda * @date 2021-03-11 14:03:24 */ disableHighlight(): void; /** * 设置高亮颜色 * * @author chitanda * @date 2021-03-11 14:03:02 * @param {string} color */ setHighlightColor(color: string): void; /** * 获取当前选中数据 * * @author chitanda * @date 2021-03-09 19:03:08 * @return {*} {*} */ getSelect(): any; }