{"version":3,"file":"popconfirm.mjs","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import { MessageQuestion } from '@vuesax-alpha/icons-vue'\nimport { buildProps, iconPropType } from '@vuesax-alpha/utils'\nimport { popperContentProps } from '@vuesax-alpha/components/popper'\nimport { useColorProp } from '@vuesax-alpha/hooks'\nimport { buttonSizes, buttonTypes } from '@vuesax-alpha/components/button'\nimport { tooltipProps } from '@vuesax-alpha/components/tooltip'\nimport type { ExtractPropTypes } from 'vue'\nimport type Popconfirm from './popconfirm.vue'\n\nexport const popconfirmProps = buildProps({\n  animation: tooltipProps.animation,\n  /**\n   * @description Title\n   */\n  title: { type: String },\n  /**\n   * @description Confirm button text\n   */\n  confirmButtonText: { type: String },\n  /**\n   * @description Cancel button text\n   */\n  cancelButtonText: { type: String },\n  /**\n   * @description Confirm button color\n   */\n  confirmButtonColor: {\n    ...useColorProp,\n    default: 'primary',\n  },\n  confirmButtonType: {\n    type: String,\n    values: buttonTypes,\n    default: 'flat',\n  },\n  confirmButtonSize: {\n    type: String,\n    values: buttonSizes,\n    default: 'small',\n  },\n  /**\n   * @description Cancel button color\n   */\n  cancelButtonColor: {\n    ...useColorProp,\n    default: 'text',\n  },\n  cancelButtonType: {\n    type: String,\n    values: buttonTypes,\n    default: 'transparent',\n  },\n  cancelButtonSize: {\n    type: String,\n    values: buttonSizes,\n    default: 'small',\n  },\n  /**\n   * @description Icon Component\n   */\n  icon: {\n    type: iconPropType,\n    default: () => MessageQuestion,\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: {\n    type: Boolean,\n    default: false,\n  },\n  /**\n   * @description delay of disappear, in millisecond\n   */\n  hideAfter: {\n    type: Number,\n    default: 200,\n  },\n  /**\n   * @description whether popconfirm is teleported to the body\n   */\n  teleported: popperContentProps.teleported,\n  /**\n   * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n   */\n  persistent: popperContentProps.persistent,\n  /**\n   * @description popconfirm width, min width 150px\n   */\n  width: {\n    type: [String, Number],\n    default: 200,\n  },\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\nexport type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>\n\nexport type PopconfirmInstance = InstanceType<typeof Popconfirm>\n"],"names":[],"mappings":";;;;;;;;;;;;;AASO,MAAM,kBAAkB,UAAW,CAAA;AAAA,EACxC,WAAW,YAAa,CAAA,SAAA;AAAA,EAIxB,KAAA,EAAO,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,EAItB,iBAAA,EAAmB,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,EAIlC,gBAAA,EAAkB,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,EAIjC,kBAAoB,EAAA;AAAA,IAClB,GAAG,YAAA;AAAA,IACH,OAAS,EAAA,SAAA;AAAA,GACX;AAAA,EACA,iBAAmB,EAAA;AAAA,IACjB,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,WAAA;AAAA,IACR,OAAS,EAAA,MAAA;AAAA,GACX;AAAA,EACA,iBAAmB,EAAA;AAAA,IACjB,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,WAAA;AAAA,IACR,OAAS,EAAA,OAAA;AAAA,GACX;AAAA,EAIA,iBAAmB,EAAA;AAAA,IACjB,GAAG,YAAA;AAAA,IACH,OAAS,EAAA,MAAA;AAAA,GACX;AAAA,EACA,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,WAAA;AAAA,IACR,OAAS,EAAA,aAAA;AAAA,GACX;AAAA,EACA,gBAAkB,EAAA;AAAA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