/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { IBzResourceUtilController } from "./controller/ibz-resource-util-controller/ibz-resource-util-controller"; import { DateSplitItem, IBzCalendarNode, IBzResourceNode } from "./interface"; import { IBzResourceAllocationController } from "./controller"; import { Dayjs } from "dayjs"; export namespace Components { interface IbzResourceAllocation { /** * 格式刷调用 * @author chitanda * @date 2021-03-11 10:03:11 */ "brushItem": (item: any) => void; /** * 计算项是否高亮 * @author chitanda * @date 2021-03-11 14:03:55 */ "calcHighlight": (item: any) => boolean; /** * 计算项样式 * @author chitanda * @date 2021-03-08 15:03:37 */ "calcItemStyle": (item: any) => any; /** * 新建数据项回调 * @author chitanda * @date 2021-03-08 20:03:22 */ "createItem": (resourceId: string, startDate: string, endDate: string) => void; /** * 删除项 * @author chitanda * @date 2021-03-08 14:03:23 */ "deleteItem": (item: any) => void; /** * 项变更 * @author chitanda * @date 2021-03-08 14:03:27 */ "itemChange": (item: any) => void; /** * 项右键菜单点击 * @author chitanda * @date 2021-03-18 19:03:03 */ "itemContextClick": (e: MouseEvent, item: IBzCalendarNode) => void; /** * 资源右键菜单点击 * @author chitanda * @date 2021-03-18 19:03:01 */ "resourceContextClick": (e: MouseEvent, item: IBzResourceNode) => void; /** * 资源时间区域右键菜单点击 * @author chitanda * @date 2021-03-19 16:03:16 */ "resourceTimeContentClick": (e: MouseEvent, item: IBzResourceNode, start: string) => void; /** * 选中项 * @author chitanda * @date 2021-03-08 15:03:51 */ "selectItem": (item?: any) => void; /** * 显示时间发生变化 * @author chitanda * @date 2021-03-09 18:03:31 */ "showDateChange": (startDate: string, endDate: string) => void; /** * 工具类 * @type {IBzResourceUtilController} * @memberof IBzResourceAllocation */ "util": IBzResourceUtilController; } interface IbzResourceAllocationArea { "$c": IBzResourceAllocationController; /** * 背景视图 * @author chitanda * @date 2021-03-13 18:03:04 * @type {HTMLIbzResourceAllocationViewElement} */ "viewRef": HTMLIbzResourceAllocationViewElement; } interface IbzResourceAllocationView { /** * 容器的高 * @author chitanda * @date 2021-03-13 14:03:40 * @type {number} */ "canvasHeight": number; /** * 容器宽 * @author chitanda * @date 2021-03-13 17:03:00 * @type {number} */ "canvasWidth": number; /** * 小时分割 * @author chitanda * @date 2021-03-13 14:03:58 * @type {string[]} */ "hourSplits": string[]; /** * 行高 * @author chitanda * @date 2021-03-13 14:03:47 * @type {number} */ "lineHeight": number; /** * 行宽 * @author chitanda * @date 2021-03-13 14:03:08 * @type {number} */ "lineWidth": number; /** * 月度时间分割 * @author chitanda * @date 2021-03-13 14:03:33 * @type {Map} */ "monthDateSplits": Map; /** * 日历内容区,Y轴滚动高度 * @author chitanda * @date 2021-03-13 18:03:05 * @type {number} */ "offsetScrollY": number; /** * 显示资源 * @author chitanda * @date 2021-03-13 14:03:52 * @type {IBzResourceNode[]} */ "resources": IBzResourceNode[]; /** * 标题 * @author chitanda * @date 2021-03-13 17:03:59 * @type {string} */ "viewTitle": string; } interface IbzResourceDragItem { "$c": IBzResourceAllocationController; /** * 当前正在拖拽的项 * @author chitanda * @date 2021-03-14 09:03:17 * @type {IBzResourceNode} */ "item": IBzCalendarNode; /** * 移动位置 * @author chitanda * @date 2021-03-14 13:03:28 * @param y y轴需要移动的距离 * @return {Promise} */ "move": (y: number) => Promise; /** * 当前所在资源 * @author chitanda * @date 2021-03-14 13:03:34 * @type {IBzResourceNode} */ "resource": IBzResourceNode; /** * 指定起始时间 * @author chitanda * @date 2021-03-14 13:03:41 * @type {Dayjs} */ "startTime": Dayjs; } interface IbzResourceItem { "$c": IBzResourceAllocationController; /** * 属于当前项,日历跨度的第几天 * @type {number} * @memberof IBzResourceItem */ "i": number; "item": IBzCalendarNode; /** * 拖拽结束 * @memberof IBzResourceItem */ "itemDragEnd": () => void; /** * 拖拽结束 * @memberof IBzResourceItem */ "itemDragStart": () => void; /** * 拖拽开始时缓存的旧值 * @author chitanda * @date 2021-03-08 14:03:20 * @type {IBzCalendarNode} */ "oldItem"?: IBzCalendarNode; /** * 此输入项值变更,重新计算配置 * @type {number} * @memberof IBzResourceItem */ "recalculate": number; /** * 通知容器刷新重绘 * @memberof IBzResourceItem */ "refresh": () => void; } interface IbzResourceItemContainer { "$c": IBzResourceAllocationController; "item": IBzCalendarNode; /** * 强制更新组件 * @author chitanda * @date 2021-03-11 12:03:12 * @return {Promise} */ "tick": () => Promise; } interface IbzResourceNewItem { "$c": IBzResourceAllocationController; "changePosition": (offset: { x: number; y: number; }) => Promise; /** * 隐藏当前 * @author chitanda * @date 2021-03-08 20:03:17 */ "hiddenSelf": () => Promise; } } declare global { interface HTMLIbzResourceAllocationElement extends Components.IbzResourceAllocation, HTMLStencilElement { } var HTMLIbzResourceAllocationElement: { prototype: HTMLIbzResourceAllocationElement; new (): HTMLIbzResourceAllocationElement; }; interface HTMLIbzResourceAllocationAreaElement extends Components.IbzResourceAllocationArea, HTMLStencilElement { } var HTMLIbzResourceAllocationAreaElement: { prototype: HTMLIbzResourceAllocationAreaElement; new (): HTMLIbzResourceAllocationAreaElement; }; interface HTMLIbzResourceAllocationViewElement extends Components.IbzResourceAllocationView, HTMLStencilElement { } var HTMLIbzResourceAllocationViewElement: { prototype: HTMLIbzResourceAllocationViewElement; new (): HTMLIbzResourceAllocationViewElement; }; interface HTMLIbzResourceDragItemElement extends Components.IbzResourceDragItem, HTMLStencilElement { } var HTMLIbzResourceDragItemElement: { prototype: HTMLIbzResourceDragItemElement; new (): HTMLIbzResourceDragItemElement; }; interface HTMLIbzResourceItemElement extends Components.IbzResourceItem, HTMLStencilElement { } var HTMLIbzResourceItemElement: { prototype: HTMLIbzResourceItemElement; new (): HTMLIbzResourceItemElement; }; interface HTMLIbzResourceItemContainerElement extends Components.IbzResourceItemContainer, HTMLStencilElement { } var HTMLIbzResourceItemContainerElement: { prototype: HTMLIbzResourceItemContainerElement; new (): HTMLIbzResourceItemContainerElement; }; interface HTMLIbzResourceNewItemElement extends Components.IbzResourceNewItem, HTMLStencilElement { } var HTMLIbzResourceNewItemElement: { prototype: HTMLIbzResourceNewItemElement; new (): HTMLIbzResourceNewItemElement; }; interface HTMLElementTagNameMap { "ibz-resource-allocation": HTMLIbzResourceAllocationElement; "ibz-resource-allocation-area": HTMLIbzResourceAllocationAreaElement; "ibz-resource-allocation-view": HTMLIbzResourceAllocationViewElement; "ibz-resource-drag-item": HTMLIbzResourceDragItemElement; "ibz-resource-item": HTMLIbzResourceItemElement; "ibz-resource-item-container": HTMLIbzResourceItemContainerElement; "ibz-resource-new-item": HTMLIbzResourceNewItemElement; } } declare namespace LocalJSX { interface IbzResourceAllocation { /** * 格式刷调用 * @author chitanda * @date 2021-03-11 10:03:11 */ "brushItem"?: (item: any) => void; /** * 计算项是否高亮 * @author chitanda * @date 2021-03-11 14:03:55 */ "calcHighlight"?: (item: any) => boolean; /** * 计算项样式 * @author chitanda * @date 2021-03-08 15:03:37 */ "calcItemStyle"?: (item: any) => any; /** * 新建数据项回调 * @author chitanda * @date 2021-03-08 20:03:22 */ "createItem"?: (resourceId: string, startDate: string, endDate: string) => void; /** * 删除项 * @author chitanda * @date 2021-03-08 14:03:23 */ "deleteItem"?: (item: any) => void; /** * 项变更 * @author chitanda * @date 2021-03-08 14:03:27 */ "itemChange"?: (item: any) => void; /** * 项右键菜单点击 * @author chitanda * @date 2021-03-18 19:03:03 */ "itemContextClick"?: (e: MouseEvent, item: IBzCalendarNode) => void; /** * 加载完毕 * @memberof IBzResourceAllocation */ "onDid-load"?: (event: CustomEvent) => void; /** * 资源右键菜单点击 * @author chitanda * @date 2021-03-18 19:03:01 */ "resourceContextClick"?: (e: MouseEvent, item: IBzResourceNode) => void; /** * 资源时间区域右键菜单点击 * @author chitanda * @date 2021-03-19 16:03:16 */ "resourceTimeContentClick"?: (e: MouseEvent, item: IBzResourceNode, start: string) => void; /** * 选中项 * @author chitanda * @date 2021-03-08 15:03:51 */ "selectItem"?: (item?: any) => void; /** * 显示时间发生变化 * @author chitanda * @date 2021-03-09 18:03:31 */ "showDateChange"?: (startDate: string, endDate: string) => void; /** * 工具类 * @type {IBzResourceUtilController} * @memberof IBzResourceAllocation */ "util"?: IBzResourceUtilController; } interface IbzResourceAllocationArea { "$c"?: IBzResourceAllocationController; /** * 背景视图 * @author chitanda * @date 2021-03-13 18:03:04 * @type {HTMLIbzResourceAllocationViewElement} */ "viewRef"?: HTMLIbzResourceAllocationViewElement; } interface IbzResourceAllocationView { /** * 容器的高 * @author chitanda * @date 2021-03-13 14:03:40 * @type {number} */ "canvasHeight"?: number; /** * 容器宽 * @author chitanda * @date 2021-03-13 17:03:00 * @type {number} */ "canvasWidth"?: number; /** * 小时分割 * @author chitanda * @date 2021-03-13 14:03:58 * @type {string[]} */ "hourSplits"?: string[]; /** * 行高 * @author chitanda * @date 2021-03-13 14:03:47 * @type {number} */ "lineHeight"?: number; /** * 行宽 * @author chitanda * @date 2021-03-13 14:03:08 * @type {number} */ "lineWidth"?: number; /** * 月度时间分割 * @author chitanda * @date 2021-03-13 14:03:33 * @type {Map} */ "monthDateSplits"?: Map; /** * 日历内容区,Y轴滚动高度 * @author chitanda * @date 2021-03-13 18:03:05 * @type {number} */ "offsetScrollY"?: number; /** * 显示资源 * @author chitanda * @date 2021-03-13 14:03:52 * @type {IBzResourceNode[]} */ "resources"?: IBzResourceNode[]; /** * 标题 * @author chitanda * @date 2021-03-13 17:03:59 * @type {string} */ "viewTitle"?: string; } interface IbzResourceDragItem { "$c"?: IBzResourceAllocationController; /** * 当前正在拖拽的项 * @author chitanda * @date 2021-03-14 09:03:17 * @type {IBzResourceNode} */ "item"?: IBzCalendarNode; /** * 当前所在资源 * @author chitanda * @date 2021-03-14 13:03:34 * @type {IBzResourceNode} */ "resource"?: IBzResourceNode; /** * 指定起始时间 * @author chitanda * @date 2021-03-14 13:03:41 * @type {Dayjs} */ "startTime"?: Dayjs; } interface IbzResourceItem { "$c"?: IBzResourceAllocationController; /** * 属于当前项,日历跨度的第几天 * @type {number} * @memberof IBzResourceItem */ "i"?: number; "item"?: IBzCalendarNode; /** * 拖拽结束 * @memberof IBzResourceItem */ "itemDragEnd"?: () => void; /** * 拖拽结束 * @memberof IBzResourceItem */ "itemDragStart"?: () => void; /** * 拖拽开始时缓存的旧值 * @author chitanda * @date 2021-03-08 14:03:20 * @type {IBzCalendarNode} */ "oldItem"?: IBzCalendarNode; /** * 此输入项值变更,重新计算配置 * @type {number} * @memberof IBzResourceItem */ "recalculate"?: number; /** * 通知容器刷新重绘 * @memberof IBzResourceItem */ "refresh"?: () => void; } interface IbzResourceItemContainer { "$c"?: IBzResourceAllocationController; "item"?: IBzCalendarNode; } interface IbzResourceNewItem { "$c"?: IBzResourceAllocationController; } interface IntrinsicElements { "ibz-resource-allocation": IbzResourceAllocation; "ibz-resource-allocation-area": IbzResourceAllocationArea; "ibz-resource-allocation-view": IbzResourceAllocationView; "ibz-resource-drag-item": IbzResourceDragItem; "ibz-resource-item": IbzResourceItem; "ibz-resource-item-container": IbzResourceItemContainer; "ibz-resource-new-item": IbzResourceNewItem; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "ibz-resource-allocation": LocalJSX.IbzResourceAllocation & JSXBase.HTMLAttributes; "ibz-resource-allocation-area": LocalJSX.IbzResourceAllocationArea & JSXBase.HTMLAttributes; "ibz-resource-allocation-view": LocalJSX.IbzResourceAllocationView & JSXBase.HTMLAttributes; "ibz-resource-drag-item": LocalJSX.IbzResourceDragItem & JSXBase.HTMLAttributes; "ibz-resource-item": LocalJSX.IbzResourceItem & JSXBase.HTMLAttributes; "ibz-resource-item-container": LocalJSX.IbzResourceItemContainer & JSXBase.HTMLAttributes; "ibz-resource-new-item": LocalJSX.IbzResourceNewItem & JSXBase.HTMLAttributes; } } }