2024-04-19 13:51:57 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* TabList is a helper component for Tabs component.
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/tabs/)
|
|
|
|
*
|
|
|
|
* @module tablist
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
import { VNode } from 'vue';
|
|
|
|
import { ComponentHooks } from '../basecomponent';
|
|
|
|
import { PassThroughOptions } from '../passthrough';
|
2024-05-16 14:05:43 +00:00
|
|
|
import { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
2024-04-19 13:51:57 +00:00
|
|
|
|
|
|
|
export declare type TabListPassThroughOptionType = TabListPassThroughAttributes | ((options: TabListPassThroughMethodOptions) => TabListPassThroughAttributes | string) | string | null | undefined;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) option method.
|
|
|
|
*/
|
|
|
|
export interface TabListPassThroughMethodOptions {
|
|
|
|
/**
|
|
|
|
* Defines instance.
|
|
|
|
*/
|
|
|
|
instance: any;
|
|
|
|
/**
|
|
|
|
* Defines valid properties.
|
|
|
|
*/
|
|
|
|
props: TabListProps;
|
|
|
|
/**
|
|
|
|
* Defines current options.
|
|
|
|
*/
|
|
|
|
context: TabListContext;
|
|
|
|
/**
|
|
|
|
* Defines valid attributes.
|
|
|
|
*/
|
|
|
|
attrs: any;
|
|
|
|
/**
|
|
|
|
* Defines parent options.
|
|
|
|
*/
|
|
|
|
parent: any;
|
|
|
|
/**
|
|
|
|
* Defines passthrough(pt) options in global config.
|
|
|
|
*/
|
|
|
|
global: object | undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) options.
|
|
|
|
* @see {@link TabListProps.pt}
|
|
|
|
*/
|
|
|
|
export interface TabListPassThroughOptions {
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the root's DOM element.
|
2024-04-19 13:51:57 +00:00
|
|
|
*/
|
|
|
|
root?: TabListPassThroughOptionType;
|
|
|
|
/**
|
|
|
|
* Used to pass attributes to the previous button component.
|
|
|
|
*/
|
|
|
|
previousButton?: TabListPassThroughOptionType;
|
|
|
|
/**
|
|
|
|
* Used to pass attributes to the next button component.
|
|
|
|
*/
|
|
|
|
nextButton?: TabListPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the list's DOM element.
|
2024-04-19 13:51:57 +00:00
|
|
|
*/
|
|
|
|
content?: TabListPassThroughOptionType;
|
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the inkbar's DOM element.
|
2024-04-19 13:51:57 +00:00
|
|
|
*/
|
|
|
|
inkbar?: TabListPassThroughOptionType;
|
|
|
|
/**
|
|
|
|
* Used to manage all lifecycle hooks.
|
|
|
|
* @see {@link BaseComponent.ComponentHooks}
|
|
|
|
*/
|
|
|
|
hooks?: ComponentHooks;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface TabListPassThroughAttributes {
|
|
|
|
[key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines valid properties in TabList component.
|
|
|
|
*/
|
|
|
|
export interface TabListProps {
|
|
|
|
/**
|
|
|
|
* It generates scoped CSS variables using design tokens for the component.
|
|
|
|
*/
|
|
|
|
dt?: DesignToken<any>;
|
|
|
|
/**
|
|
|
|
* Used to pass attributes to DOM elements inside the component.
|
|
|
|
* @type {TabListPassThroughOptions}
|
|
|
|
*/
|
|
|
|
pt?: PassThrough<TabListPassThroughOptions>;
|
|
|
|
/**
|
|
|
|
* Used to configure passthrough(pt) options of the component.
|
|
|
|
* @type {PassThroughOptions}
|
|
|
|
*/
|
|
|
|
ptOptions?: PassThroughOptions;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines current options in TabList component.
|
|
|
|
*/
|
|
|
|
export interface TabListContext {
|
|
|
|
[key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines valid slots in TabList slots.
|
|
|
|
*/
|
|
|
|
export interface TabListSlots {
|
|
|
|
/**
|
|
|
|
* Custom content template.
|
|
|
|
*/
|
|
|
|
default(): VNode[];
|
|
|
|
}
|
|
|
|
|
2024-05-16 14:05:43 +00:00
|
|
|
export interface TabListEmitsOptions {}
|
2024-05-16 10:50:43 +00:00
|
|
|
|
|
|
|
export declare type TabListEmits = EmitFn<TabListEmitsOptions>;
|
2024-04-19 13:51:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* **PrimeVue - TabList**
|
|
|
|
*
|
|
|
|
* _TabList is a helper component for Tabs component._
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/tabs/)
|
|
|
|
* --- ---
|
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
|
|
|
*
|
|
|
|
* @group Component
|
|
|
|
*
|
|
|
|
*/
|
2024-05-16 10:50:43 +00:00
|
|
|
declare const TabList: DefineComponent<TabListProps, TabListSlots, TabListEmits>;
|
2024-04-19 13:51:57 +00:00
|
|
|
|
|
|
|
declare module 'vue' {
|
|
|
|
export interface GlobalComponents {
|
2024-05-16 10:50:43 +00:00
|
|
|
TabList: GlobalComponentConstructor<TabListProps, TabListSlots, TabListEmits>;
|
2024-04-19 13:51:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default TabList;
|