UNPKG

@bitrix24/b24ui-nuxt

Version:

Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE

47 lines (46 loc) 2.79 kB
import { ContextMenu } from 'reka-ui/namespaced'; import type { ContextMenuContentProps as RekaContextMenuContentProps } from 'reka-ui'; import type { AppConfig } from '@nuxt/schema'; import type theme from '#build/b24ui/context-menu'; import type { ContextMenuItem, ContextMenuSlots, IconComponent } from '../types'; import type { ArrayOrNested, GetItemKeys } from '../types/utils'; import type { ComponentConfig } from '../types/tv'; type ContextMenu = ComponentConfig<typeof theme, AppConfig, 'contextMenu'>; interface ContextMenuContentProps<T extends ArrayOrNested<ContextMenuItem>> extends Omit<RekaContextMenuContentProps, 'as' | 'asChild' | 'forceMount'> { items?: T; portal?: boolean | string | HTMLElement; sub?: boolean; labelKey: GetItemKeys<T>; descriptionKey: GetItemKeys<T>; /** * @IconComponent */ checkedIcon?: IconComponent; /** * @IconComponent */ loadingIcon?: IconComponent; /** * @IconComponent */ externalIcon?: boolean | IconComponent; class?: any; b24ui: ContextMenu['b24ui']; b24uiOverride?: ContextMenu['slots']; } declare const __VLS_export: <T extends ArrayOrNested<ContextMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{ props: __VLS_PrettifyLocal<ContextMenuContentProps<T> & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("reka-ui").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("reka-ui").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void)>>> & import("vue").PublicProps & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: {}) => void; attrs: any; slots: ContextMenuSlots<T>; emit: ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("reka-ui").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("reka-ui").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void); }>) => import("vue").VNode & { __ctx?: Awaited<typeof __VLS_setup>; }; declare const _default: typeof __VLS_export; export default _default; type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K]; } & {};