2023-03-06 07:22:29 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/confirmdialog/)
|
|
|
|
*
|
|
|
|
* @module confirmationservice
|
|
|
|
*
|
|
|
|
*/
|
2023-01-03 09:31:56 +00:00
|
|
|
import { Plugin } from 'vue';
|
2022-09-06 12:03:37 +00:00
|
|
|
import { ConfirmationOptions } from '../confirmationoptions';
|
|
|
|
|
|
|
|
declare const plugin: Plugin;
|
|
|
|
export default plugin;
|
|
|
|
|
2023-03-06 07:22:29 +00:00
|
|
|
/**
|
|
|
|
* Confirmation Service methods.
|
|
|
|
*
|
|
|
|
* @group Interfaces
|
|
|
|
*
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
export interface ConfirmationServiceMethods {
|
|
|
|
/**
|
|
|
|
* Displays the dialog using the confirmation object options.
|
|
|
|
* @param {ConfirmationOptions} options - Confirmation Object
|
|
|
|
*/
|
2023-03-06 07:22:29 +00:00
|
|
|
require: (options: ConfirmationOptions) => void;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Hides the dialog without invoking accept or reject callbacks.
|
|
|
|
*/
|
2023-03-06 07:22:29 +00:00
|
|
|
close: () => void;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare module 'vue/types/vue' {
|
|
|
|
interface Vue {
|
|
|
|
$confirm: ConfirmationServiceMethods;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module '@vue/runtime-core' {
|
|
|
|
interface ComponentCustomProperties {
|
|
|
|
$confirm: ConfirmationServiceMethods;
|
|
|
|
}
|
|
|
|
}
|