mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +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
101
components/lib/inplace/Inplace.d.ts
vendored
Executable file
101
components/lib/inplace/Inplace.d.ts
vendored
Executable file
|
@ -0,0 +1,101 @@
|
|||
/**
|
||||
*
|
||||
* Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content.
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/inplace)
|
||||
*
|
||||
* @module inplace
|
||||
*
|
||||
*/
|
||||
import { ButtonHTMLAttributes, HTMLAttributes, VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
/**
|
||||
* Defines valid properties in Inplace component.
|
||||
*/
|
||||
export interface InplaceProps {
|
||||
/**
|
||||
* Displays a button to switch back to display mode.
|
||||
* @defaultValue false
|
||||
*/
|
||||
closable?: boolean | undefined;
|
||||
/**
|
||||
* Whether the content is displayed or not.
|
||||
* @defaultValue false
|
||||
*/
|
||||
active?: boolean | undefined;
|
||||
/**
|
||||
* When present, it specifies that the element should be disabled.
|
||||
* @defaultValue false
|
||||
*/
|
||||
disabled?: boolean | undefined;
|
||||
/**
|
||||
* Icon to display in the close button.
|
||||
* @defaultValue pi pi-times
|
||||
*/
|
||||
closeIcon?: string | undefined;
|
||||
/**
|
||||
* Uses to pass all properties of the HTMLDivElement to display container.
|
||||
*/
|
||||
displayProps?: HTMLAttributes | undefined;
|
||||
/**
|
||||
* Uses to pass all properties of the HTMLButtonElement to the close button.
|
||||
*/
|
||||
closeButtonProps?: ButtonHTMLAttributes | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in Inplace component.
|
||||
*/
|
||||
export interface InplaceSlots {
|
||||
/**
|
||||
* Custom display template.
|
||||
*/
|
||||
display(): VNode[];
|
||||
/**
|
||||
* Custom content template.
|
||||
*/
|
||||
content(): VNode[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid emits in Inplace component.
|
||||
*/
|
||||
export interface InplaceEmits {
|
||||
/**
|
||||
* Emitted when the active changes.
|
||||
* @param {boolean} value - New value.
|
||||
*/
|
||||
'update:active'(value: boolean): void;
|
||||
/**
|
||||
* Callback to invoke when inplace is opened.
|
||||
* @param {Event} event - Browser event.
|
||||
*/
|
||||
open(event: Event): void;
|
||||
/**
|
||||
* Callback to invoke when inplace is closed.
|
||||
* @param {Event} event - Browser event.
|
||||
*/
|
||||
close(event: Event): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* **PrimeVue - Inplace**
|
||||
*
|
||||
* _Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content._
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/inplace/)
|
||||
* --- ---
|
||||
* 
|
||||
*
|
||||
* @group Component
|
||||
*/
|
||||
declare class Inplace extends ClassComponent<InplaceProps, InplaceSlots, InplaceEmits> {}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {
|
||||
Inplace: GlobalComponentConstructor<Inplace>;
|
||||
}
|
||||
}
|
||||
|
||||
export default Inplace;
|
Loading…
Add table
Add a link
Reference in a new issue