{"version":3,"file":"popconfirm.mjs","names":[],"sources":["../../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import { buttonTypes } from '@element-plus/components/button'\nimport { QuestionFilled } from '@element-plus/icons-vue'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport {\n  useTooltipContentProps,\n  useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { ButtonType } from '@element-plus/components/button'\nimport type {\n  ElTooltipContentProps,\n  ElTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Popconfirm from './popconfirm.vue'\n\nexport interface PopconfirmProps {\n  /**\n   * @description Title\n   */\n  title?: string\n  /**\n   * @description Confirm button text\n   */\n  confirmButtonText?: string\n  /**\n   * @description Cancel button text\n   */\n  cancelButtonText?: string\n  /**\n   * @description Confirm button type\n   */\n  confirmButtonType?: ButtonType\n  /**\n   * @description Cancel button type\n   */\n  cancelButtonType?: ButtonType\n  /**\n   * @description Icon Component\n   */\n  icon?: IconPropType\n  /**\n   * @description Icon color\n   */\n  iconColor?: string\n  /**\n   * @description is hide Icon\n   */\n  hideIcon?: boolean\n  /**\n   * @description delay of disappear, in millisecond\n   */\n  hideAfter?: number\n  /**\n   * @description Tooltip theme, built-in theme: `dark` / `light`\n   */\n  effect?: ElTooltipContentProps['effect']\n  /**\n   * @description whether popconfirm is teleported to the body\n   */\n  teleported?: ElTooltipContentProps['teleported']\n  /**\n   * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n   */\n  persistent?: ElTooltipContentProps['persistent']\n  /**\n   * @description popconfirm width, min width 150px\n   */\n  width?: string | number\n  /**\n   * @description Indicates whether virtual triggering is enabled\n   */\n  virtualTriggering?: ElTooltipTriggerProps['virtualTriggering']\n  /**\n   * @description Indicates the reference element to which the popper is attached\n   */\n  virtualRef?: ElTooltipTriggerProps['virtualRef']\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopconfirmProps` instead.\n */\nexport const popconfirmProps = buildProps({\n  /**\n   * @description Title\n   */\n  title: String,\n  /**\n   * @description Confirm button text\n   */\n  confirmButtonText: String,\n  /**\n   * @description Cancel button text\n   */\n  cancelButtonText: String,\n  /**\n   * @description Confirm button type\n   */\n  confirmButtonType: {\n    type: String,\n    values: buttonTypes,\n    default: 'primary',\n  },\n  /**\n   * @description Cancel button type\n   */\n  cancelButtonType: {\n    type: String,\n    values: buttonTypes,\n    default: 'text',\n  },\n  /**\n   * @description Icon Component\n   */\n  icon: {\n    type: iconPropType,\n    default: () => QuestionFilled,\n  },\n  /**\n   * @description Icon color\n   */\n  iconColor: {\n    type: String,\n    default: '#f90',\n  },\n  /**\n   * @description is hide Icon\n   */\n  hideIcon: Boolean,\n  /**\n   * @description delay of disappear, in millisecond\n   */\n  hideAfter: {\n    type: Number,\n    default: 200,\n  },\n  /**\n   * @description Tooltip theme, built-in theme: `dark` / `light`\n   */\n  effect: {\n    ...useTooltipContentProps.effect,\n    default: 'light',\n  },\n  /**\n   * @description whether popconfirm is teleported to the body\n   */\n  teleported: useTooltipContentProps.teleported,\n  /**\n   * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n   */\n  persistent: useTooltipContentProps.persistent,\n  /**\n   * @description popconfirm width, min width 150px\n   */\n  width: {\n    type: [String, Number],\n    default: 150,\n  },\n  virtualTriggering: useTooltipTriggerProps.virtualTriggering,\n  virtualRef: useTooltipTriggerProps.virtualRef,\n} as const)\n\nexport const popconfirmEmits = {\n  /**\n   * @description triggers when click confirm button\n   */\n  confirm: (e: MouseEvent) => e instanceof MouseEvent,\n  /**\n   * @description triggers when click cancel button\n   */\n  cancel: (e: MouseEvent) => e instanceof MouseEvent,\n}\n\nexport type PopconfirmEmits = typeof popconfirmEmits\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopconfirmProps` instead.\n */\nexport type PopconfirmPropsPublic = ExtractPublicPropTypes<\n  typeof popconfirmProps\n>\n\nexport type PopconfirmInstance = InstanceType<typeof Popconfirm> & unknown\n"],"mappings":";;;;;;;;;;;AAmFA,MAAa,kBAAkB,WAAW;CAIxC,OAAO;CAIP,mBAAmB;CAInB,kBAAkB;CAIlB,mBAAmB;EACjB,MAAM;EACN,QAAQ;EACR,SAAS;EACV;CAID,kBAAkB;EAChB,MAAM;EACN,QAAQ;EACR,SAAS;EACV;CAID,MAAM;EACJ,MAAM;EACN,eAAe;EAChB;CAID,WAAW;EACT,MAAM;EACN,SAAS;EACV;CAID,UAAU;CAIV,WAAW;EACT,MAAM;EACN,SAAS;EACV;CAID,QAAQ;EACN,GAAG,uBAAuB;EAC1B,SAAS;EACV;CAID,YAAY,uBAAuB;CAInC,YAAY,uBAAuB;CAInC,OAAO;EACL,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;CACD,mBAAmB,uBAAuB;CAC1C,YAAY,uBAAuB;CACpC,CAAU;AAEX,MAAa,kBAAkB;CAI7B,UAAU,MAAkB,aAAa;CAIzC,SAAS,MAAkB,aAAa;CACzC"}