import { TreeSelectionKeys } from 'primevue/tree'; export interface SelectTreeDialogProps { visible?: boolean; type?: 'Group' | 'Category'; /** * Set custom query params for group tree. * * By default, query params has been determined by the path */ groupParams?: TreeQueryParams; header?: string; subHeader?: string; selectionMode?: 'single' | 'checkbox'; /** * For checkbox selection, current behavior is preventing select if there is no node selected. * * @default true */ allowEmptySelection?: boolean; /** * The previously selected tree key to be displayed again. */ keys?: number[]; /** * The lists to be displayed in the dialog. */ lists?: (string | object)[]; /** * The label of the list if your list item is an object. * Choose a property from the item to be displayed on the list. */ listLabel?: string; /** * Disable node 'All' selection */ disableNodeAll?: boolean; disableKeys?: number[]; exactDisableKey?: number; /** * Defines the tree is readonly and disabled. */ readonly?: boolean; /** * Defines the group tree to showing disposable groups. */ showDisposableGroups?: boolean; /** * Defines the tree to be flattened and shows disposable only */ flattenDisposableNode?: boolean; /** * Defines the group tree to disable excluded keys */ excludedKeys?: number[]; } type TreeSelectPayload = { keys: TreeSelectionKeys | undefined; selectedNodes: TreeNode[] | undefined; singleNode: TreeNode | undefined; }; export type SelectTreeDialogEmits = { 'update:visible': [state: boolean]; 'select': [keys?: TreeSelectPayload]; 'hide': []; }; /** * **TSVue v2 - SelectTreeDialog** * * --- --- * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png) * * @group components */ declare class SelectTreeDialog extends ClassComponent< SelectTreeDialogProps, Record, SelectTreeDialogEmits > {} declare module '@vue/runtime-core' { interface GlobalComponents { SelectTreeDialog: GlobalComponentConstructor; } } export default SelectTreeDialog;