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
102
components/lib/fieldset/Fieldset.d.ts
vendored
Executable file
102
components/lib/fieldset/Fieldset.d.ts
vendored
Executable file
|
@ -0,0 +1,102 @@
|
|||
/**
|
||||
*
|
||||
* Fieldset is a grouping component with the optional content toggle feature.
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/fieldset/)
|
||||
*
|
||||
* @module fieldset
|
||||
*
|
||||
*/
|
||||
import { AnchorHTMLAttributes, VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
/**
|
||||
* Custom toggle event.
|
||||
* @see {@link FieldsetEmits.toggle}
|
||||
*/
|
||||
export interface FieldsetToggleEvent {
|
||||
/**
|
||||
* Browser event.
|
||||
*/
|
||||
originalEvent: Event;
|
||||
/**
|
||||
* Collapsed state as a boolean
|
||||
*/
|
||||
value: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Fieldset component.
|
||||
*/
|
||||
export interface FieldsetProps {
|
||||
/**
|
||||
* Header text of the fieldset.
|
||||
*/
|
||||
legend?: string | undefined;
|
||||
/**
|
||||
* When specified, content can toggled by clicking the legend.
|
||||
* @defaultValue false
|
||||
*/
|
||||
toggleable?: boolean | undefined;
|
||||
/**
|
||||
* Defines the default visibility state of the content.
|
||||
* @defaultValue false
|
||||
*/
|
||||
collapsed?: boolean | undefined;
|
||||
/**
|
||||
* Uses to pass the custom value to read for the AnchorHTMLAttributes inside the component.
|
||||
*/
|
||||
toggleButtonProps?: AnchorHTMLAttributes | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in Fieldset slots.
|
||||
*/
|
||||
export interface FieldsetSlots {
|
||||
/**
|
||||
* Default content slot.
|
||||
*/
|
||||
default: () => VNode[];
|
||||
/**
|
||||
* Custom legend template.
|
||||
*/
|
||||
legend: () => VNode[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid emits in Fildset component.
|
||||
*/
|
||||
export interface FieldsetEmits {
|
||||
/**
|
||||
* Emitted when the collapsed changes.
|
||||
* @param {boolean} value - New value.
|
||||
*/
|
||||
'update:collapsed'(value: boolean): void;
|
||||
/**
|
||||
* Callback to invoke when a tab gets expanded or collapsed.
|
||||
* @param {FieldsetToggleEvent} event - Custom toggle event.
|
||||
*/
|
||||
toggle(event: FieldsetToggleEvent): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* **PrimeVue - Fieldset**
|
||||
*
|
||||
* _Fieldset is a grouping component with the optional content toggle feature._
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/fieldset/)
|
||||
* --- ---
|
||||
* 
|
||||
*
|
||||
* @group Component
|
||||
*
|
||||
*/
|
||||
declare class Fieldset extends ClassComponent<FieldsetProps, FieldsetSlots, FieldsetEmits> {}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {
|
||||
Fieldset: GlobalComponentConstructor<Fieldset>;
|
||||
}
|
||||
}
|
||||
|
||||
export default Fieldset;
|
Loading…
Add table
Add a link
Reference in a new issue