import { ExtractPropTypes } from 'vue'; import { dialogBoxProps, $constants } from '@/dialog-box/src'; import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams, ISharedRenderlessParamHooks } from './shared.type.js'; /** * Copyright (c) 2022 - present ZsapVue Authors. * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd. * * Use of this source code is governed by an MIT-style license. * * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS. * */ declare const computedAnimationName: ({ constants, props }: Pick) => () => string; declare const computedStyle: ({ props, state, designConfig }: Pick) => () => IDialogBoxStyle; declare const computedBodyStyle: ({ props }: Pick) => () => { maxHeight?: string | undefined; }; declare const watchVisible: ({ api, constants, emit, nextTick, parent, props, vm, state }: Pick) => (val: boolean) => void; declare const mounted: ({ api, parent, props }: Pick) => () => void; declare const unMounted: ({ api, parent, props }: Pick) => () => void; declare const useMouseEventDown: ({ state }: Pick) => (event: MouseEvent) => void; declare const useMouseEventUp: ({ state }: Pick) => (event: MouseEvent) => void; declare const handleWrapperClick: ({ api, props, state }: Pick) => () => void; declare const handleClose: ({ api, constants, emit, parent, props }: Pick) => (type?: string) => void; declare const hide: ({ api, emit, state, props }: Pick) => (cancel?: boolean) => void; declare const handleConfirm: ({ api, emit }: Pick) => () => void; declare const handleCancel: ({ api, emit }: Pick) => () => void; declare const updatePopper: ({ api, constants }: Pick) => () => void; declare const afterEnter: (emit: IDialogBoxRenderlessParams['emit']) => () => void; declare const afterLeave: (emit: IDialogBoxRenderlessParams['emit']) => () => void; declare const handleDrag: ({ parent, props, state, emit }: Pick) => (event: MouseEvent) => void; declare const showScrollbar: (lockScrollClass: string) => () => void; declare const hideScrollbar: (lockScrollClass: string) => () => void; /** * Copyright (c) 2022 - present ZsapVue Authors. * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd. * * Use of this source code is governed by an MIT-style license. * * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS. * */ type IDialogBoxProps = ExtractPropTypes; type IDialogBoxConstants = typeof $constants; interface IDialogBoxState { emitter: ReturnType['emitter']>; key: number; x: number | string | null; y: number | string | null; top: number | string | null; left: number | string | null; max: number | string | null; move: boolean; closed: boolean; dragable: boolean; isFull: boolean; style: { [key: string]: string | number; }; bodyStyle: { [key: string]: string | number; }; animationName: string; opened?: boolean; rendered?: boolean; mouseUpWrapperFlag: boolean; mouseDownWrapperFlag: boolean; } interface IDialogBoxApi { state: IDialogBoxState; open: (options: any) => void; close: () => void; broadcast: ISharedRenderlessParamUtils['broadcast']; handleCancel: ReturnType; handleConfirm: ReturnType; updatePopper: ReturnType; handleWrapperClick: ReturnType; useMouseEventDown: ReturnType; useMouseEventUp: ReturnType; hide: ReturnType; handleClose: ReturnType; watchVisible: ReturnType; computedStyle: ReturnType; computedBodyStyle: ReturnType; mounted: ReturnType; unMounted: ReturnType; computedAnimationName: ReturnType; afterEnter: ReturnType; afterLeave: ReturnType; hideScrollbar: ReturnType; showScrollbar: ReturnType; handleDrag: ReturnType; } type IDialogBoxRenderlessParams = ISharedRenderlessFunctionParams & { api: IDialogBoxApi; props: IDialogBoxProps; state: IDialogBoxState; }; type IDialogBoxRenderlessParamUtils = ISharedRenderlessParamUtils; type IDialogBoxMergeStateParam = Pick & { usePopups: object; }; type IDialogBoxInitApiParam = Pick & { usePopups: object; lockScrollClass: string; }; interface IDialogBoxInitWatchParam { watch: ISharedRenderlessParamHooks['watch']; state: IDialogBoxState; api: IDialogBoxApi; props: IDialogBoxProps; } interface IDialogBoxStyle { width?: string | number; height?: string | number; maxHeight?: string | number; top?: string | number; right?: string | number; left?: string | number; } export { IDialogBoxApi, IDialogBoxConstants, IDialogBoxInitApiParam, IDialogBoxInitWatchParam, IDialogBoxMergeStateParam, IDialogBoxProps, IDialogBoxRenderlessParamUtils, IDialogBoxRenderlessParams, IDialogBoxState, IDialogBoxStyle };