UNPKG

@aplus-frontend/ui

Version:

188 lines (187 loc) 6.09 kB
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue'; import { ApDraggableGridItemBase } from './interface'; export * from './interface'; declare const ApDraggableGrid: { new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{ gridList: { type: PropType<Array< ApDraggableGridItemBase>>; default: () => never[]; }; request: { type: PropType<() => Promise< ApDraggableGridItemBase[]>>; default: null; }; gridWidth: { type: (NumberConstructor | StringConstructor)[]; default: string; }; gridItemHeight: { type: NumberConstructor; default: number; }; gridItemShadow: { type: StringConstructor; default: string; }; gapWidth: { type: NumberConstructor; default: number; }; disableDrag: { type: BooleanConstructor; default: boolean; }; customWrapper: { type: StringConstructor; default: string; }; }>> & Readonly<{ onOnGridListChange?: ((args_0: ApDraggableGridItemBase[]) => any) | undefined; }>, { setGridItems: (items: ApDraggableGridItemBase[]) => void; getGridItems: () => ApDraggableGridItemBase[]; refreshGrid: () => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { onGridListChange: (args_0: ApDraggableGridItemBase[]) => any; }, PublicProps, { request: () => Promise< ApDraggableGridItemBase[]>; gridList: ApDraggableGridItemBase[]; gridWidth: string | number; gridItemHeight: number; gridItemShadow: string; gapWidth: number; disableDrag: boolean; customWrapper: string; }, true, {}, {}, GlobalComponents, GlobalDirectives, string, { gridContainer: HTMLDivElement; }, any, ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly< ExtractPropTypes<{ gridList: { type: PropType<Array< ApDraggableGridItemBase>>; default: () => never[]; }; request: { type: PropType<() => Promise< ApDraggableGridItemBase[]>>; default: null; }; gridWidth: { type: (NumberConstructor | StringConstructor)[]; default: string; }; gridItemHeight: { type: NumberConstructor; default: number; }; gridItemShadow: { type: StringConstructor; default: string; }; gapWidth: { type: NumberConstructor; default: number; }; disableDrag: { type: BooleanConstructor; default: boolean; }; customWrapper: { type: StringConstructor; default: string; }; }>> & Readonly<{ onOnGridListChange?: ((args_0: ApDraggableGridItemBase[]) => any) | undefined; }>, { setGridItems: (items: ApDraggableGridItemBase[]) => void; getGridItems: () => ApDraggableGridItemBase[]; refreshGrid: () => void; }, {}, {}, {}, { request: () => Promise< ApDraggableGridItemBase[]>; gridList: ApDraggableGridItemBase[]; gridWidth: string | number; gridItemHeight: number; gridItemShadow: string; gapWidth: number; disableDrag: boolean; customWrapper: string; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & ComponentOptionsBase<Readonly< ExtractPropTypes<{ gridList: { type: PropType<Array< ApDraggableGridItemBase>>; default: () => never[]; }; request: { type: PropType<() => Promise< ApDraggableGridItemBase[]>>; default: null; }; gridWidth: { type: (NumberConstructor | StringConstructor)[]; default: string; }; gridItemHeight: { type: NumberConstructor; default: number; }; gridItemShadow: { type: StringConstructor; default: string; }; gapWidth: { type: NumberConstructor; default: number; }; disableDrag: { type: BooleanConstructor; default: boolean; }; customWrapper: { type: StringConstructor; default: string; }; }>> & Readonly<{ onOnGridListChange?: ((args_0: ApDraggableGridItemBase[]) => any) | undefined; }>, { setGridItems: (items: ApDraggableGridItemBase[]) => void; getGridItems: () => ApDraggableGridItemBase[]; refreshGrid: () => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { onGridListChange: (args_0: ApDraggableGridItemBase[]) => any; }, string, { request: () => Promise< ApDraggableGridItemBase[]>; gridList: ApDraggableGridItemBase[]; gridWidth: string | number; gridItemHeight: number; gridItemShadow: string; gapWidth: number; disableDrag: boolean; customWrapper: string; }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => { $slots: { item?(_: { item: { isDragging: boolean; isOverlay: boolean; span: number; row: number; col: number; showHeight?: number | string | undefined; height: number | string; module: string; }; index: number; }): any; }; }) & ( Plugin & (new (...args: any[]) => { $props: { onClick?: () => void; }; })); export { ApDraggableGrid };