mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
91
components/lib/confirmdialog/ConfirmDialog.d.ts
vendored
Normal file
91
components/lib/confirmdialog/ConfirmDialog.d.ts
vendored
Normal file
|
@ -0,0 +1,91 @@
|
|||
/**
|
||||
*
|
||||
* ConfirmDialog uses a Dialog UI with confirmDialog method or <ConfirmDialog> tag.
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/confirmdialog)
|
||||
*
|
||||
* @module confirmdialog
|
||||
*
|
||||
*/
|
||||
import { VNode } from 'vue';
|
||||
import { ConfirmationOptions } from '../confirmationoptions';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
/**
|
||||
* Breakpoint metadata.
|
||||
*/
|
||||
export interface ConfirmDialogBreakpoints {
|
||||
/**
|
||||
* Breakpoint for responsive mode.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* <ConfirmDialog :breakpoints="{'960px': '75vw', '640px': '100vw'}" ... />
|
||||
*
|
||||
* Result:
|
||||
*
|
||||
* @media screen and (max-width: ${breakpoint[key]}) {
|
||||
* .p-dialog[attributeSelector] {
|
||||
* width: ${breakpoint[value]} !important;
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in ConfirmDialog component.
|
||||
*/
|
||||
export interface ConfirmDialogProps {
|
||||
/**
|
||||
* Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance.
|
||||
*/
|
||||
group?: string | undefined;
|
||||
/**
|
||||
* Object literal to define widths per screen size.
|
||||
* @see ConfirmDialogBreakpoints
|
||||
*/
|
||||
breakpoints?: ConfirmDialogBreakpoints;
|
||||
/**
|
||||
* Enables dragging to change the position using header.
|
||||
* @defaultValue true
|
||||
*/
|
||||
draggable?: boolean | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in ConfirmDialog component.
|
||||
*/
|
||||
export interface ConfirmDialogSlots {
|
||||
/**
|
||||
* Custom message template.
|
||||
* @param {Object} scope - message slot's params.
|
||||
*/
|
||||
message(scope: { message: ConfirmationOptions }): VNode[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid emits in ConfirmDialog component.
|
||||
*/
|
||||
export interface ConfirmDialogEmits {}
|
||||
|
||||
/**
|
||||
* **PrimeVue - ConfirmDialog**
|
||||
*
|
||||
* _ConfirmDialog uses a Dialog UI with confirmDialog method or <ConfirmDialog> tag._
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/confirmdialog/)
|
||||
* --- ---
|
||||
* 
|
||||
*
|
||||
* @group Component
|
||||
*/
|
||||
declare class ConfirmDialog extends ClassComponent<ConfirmDialogProps, ConfirmDialogSlots, ConfirmDialogEmits> {}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {
|
||||
ConfirmDialog: GlobalComponentConstructor<ConfirmDialog>;
|
||||
}
|
||||
}
|
||||
|
||||
export default ConfirmDialog;
|
Loading…
Add table
Add a link
Reference in a new issue