mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
api generator updates
This commit is contained in:
parent
c4fcf01413
commit
4d1e62b33a
27 changed files with 174 additions and 26 deletions
|
@ -31,6 +31,13 @@ const AvatarProps = [
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const AvatarSlots = [
|
||||||
|
{
|
||||||
|
name: 'icon',
|
||||||
|
description: 'Custom icon template.'
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
const AvatarEvents = [
|
const AvatarEvents = [
|
||||||
{
|
{
|
||||||
name: 'error',
|
name: 'error',
|
||||||
|
@ -43,6 +50,7 @@ module.exports = {
|
||||||
name: 'Avatar',
|
name: 'Avatar',
|
||||||
description: 'Avatar represents people using icons, labels and images.',
|
description: 'Avatar represents people using icons, labels and images.',
|
||||||
props: AvatarProps,
|
props: AvatarProps,
|
||||||
|
slots: AvatarSlots,
|
||||||
events: AvatarEvents
|
events: AvatarEvents
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -466,7 +466,7 @@ const CalendarSlots = [
|
||||||
description: 'Custom dropdown icon template.'
|
description: 'Custom dropdown icon template.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'previcon',
|
name: 'previousicon',
|
||||||
description: 'Custom previous icon template.'
|
description: 'Custom previous icon template.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -86,6 +86,10 @@ const CarouselProps = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const CarouselSlots = [
|
const CarouselSlots = [
|
||||||
|
{
|
||||||
|
name: 'header',
|
||||||
|
description: 'Custom content for the component header.'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'header',
|
name: 'header',
|
||||||
description: 'Custom content for the component header.'
|
description: 'Custom content for the component header.'
|
||||||
|
@ -99,7 +103,7 @@ const CarouselSlots = [
|
||||||
description: 'Custom content for the component item.'
|
description: 'Custom content for the component item.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'previcon',
|
name: 'previousicon',
|
||||||
description: 'Custom previous icon template.'
|
description: 'Custom previous icon template.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -284,6 +284,14 @@ const CascadeSelectSlots = [
|
||||||
name: 'indicator',
|
name: 'indicator',
|
||||||
description: 'Custom content for the dropdown indicator.'
|
description: 'Custom content for the dropdown indicator.'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'dropdownicon',
|
||||||
|
description: 'Custom dropdown icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'loadingicon',
|
||||||
|
description: 'Custom loading icon template.'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'optiongroupicon',
|
name: 'optiongroupicon',
|
||||||
description: 'Custom content for the option group icon.'
|
description: 'Custom content for the option group icon.'
|
||||||
|
|
|
@ -46,6 +46,10 @@ const ChipEvents = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const ChipSlots = [
|
const ChipSlots = [
|
||||||
|
{
|
||||||
|
name: 'icon',
|
||||||
|
description: 'Custom icon template of chip component.'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'removeicon',
|
name: 'removeicon',
|
||||||
description: 'Custom remove icon template of chip component.'
|
description: 'Custom remove icon template of chip component.'
|
||||||
|
|
|
@ -290,10 +290,22 @@ const ColumnSlots = [
|
||||||
name: 'filterapply',
|
name: 'filterapply',
|
||||||
description: "Custom content for the filter menu's apply section"
|
description: "Custom content for the filter menu's apply section"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'loading',
|
||||||
|
description: 'Custom loading template.'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'rowtogglericon',
|
name: 'rowtogglericon',
|
||||||
description: 'Custom row toggler icon template.'
|
description: 'Custom row toggler icon template.'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'rowtogglericon',
|
||||||
|
description: 'Custom row toggler icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'rowcheckboxicon',
|
||||||
|
description: 'Custom row checkbox icon template.'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'roweditoriniticon',
|
name: 'roweditoriniticon',
|
||||||
description: 'Custom row editor init icon template.'
|
description: 'Custom row editor init icon template.'
|
||||||
|
@ -331,8 +343,8 @@ const ColumnSlots = [
|
||||||
description: 'Custom header checkbox icon template.'
|
description: 'Custom header checkbox icon template.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'rowcheckboxicon',
|
name: 'rowreordericon',
|
||||||
description: 'Custom row checkbox icon template.'
|
description: 'Custom row reorder icon template.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,19 @@ const ConfirmDialogProps = [
|
||||||
const ConfirmDialogSlots = [
|
const ConfirmDialogSlots = [
|
||||||
{
|
{
|
||||||
name: 'message',
|
name: 'message',
|
||||||
description: 'Custom content for the component.'
|
description: 'Custom icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'icon',
|
||||||
|
description: 'Custom icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'accepticon',
|
||||||
|
description: 'Custom accept icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'rejecticon',
|
||||||
|
description: 'Custom reject icon template.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,18 @@ const ConfirmPopupSlots = [
|
||||||
{
|
{
|
||||||
name: 'message',
|
name: 'message',
|
||||||
description: 'Custom content for the component.'
|
description: 'Custom content for the component.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'icon',
|
||||||
|
description: 'Custom icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'accepticon',
|
||||||
|
description: 'Custom accept icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'rejecticon',
|
||||||
|
description: 'Custom reject icon template.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1142,6 +1142,10 @@ const DataTableSlots = [
|
||||||
name: 'groupfooter',
|
name: 'groupfooter',
|
||||||
description: "Custom content for the component's subgroup footer."
|
description: "Custom content for the component's subgroup footer."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'loading',
|
||||||
|
description: 'Custom loading template.'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'loadingicon',
|
name: 'loadingicon',
|
||||||
description: 'Custom loading icon template.'
|
description: 'Custom loading icon template.'
|
||||||
|
@ -1173,6 +1177,10 @@ const DataTableSlots = [
|
||||||
{
|
{
|
||||||
name: 'paginatorlastpagelinkicon',
|
name: 'paginatorlastpagelinkicon',
|
||||||
description: 'Custom paginator last page link icon template.'
|
description: 'Custom paginator last page link icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'empty',
|
||||||
|
description: 'Custom empty template.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -372,6 +372,22 @@ const DropdownSlots = [
|
||||||
{
|
{
|
||||||
name: 'loader',
|
name: 'loader',
|
||||||
description: 'Custom content for the virtual scroller loader items'
|
description: 'Custom content for the virtual scroller loader items'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'clearicon',
|
||||||
|
description: 'Custom clear icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'dropdownicon',
|
||||||
|
description: 'Custom dropdown icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'loadingicon',
|
||||||
|
description: 'Custom loading icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'filtericon',
|
||||||
|
description: 'Custom filter icon template.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -276,6 +276,14 @@ const FileUploadEvents = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const FileUploadSlots = [
|
const FileUploadSlots = [
|
||||||
|
{
|
||||||
|
name: 'header',
|
||||||
|
description: 'Custom header template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'content',
|
||||||
|
description: 'Custom content template.'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'empty',
|
name: 'empty',
|
||||||
description: 'Custom content when there is no selected file'
|
description: 'Custom content when there is no selected file'
|
||||||
|
|
|
@ -175,7 +175,7 @@ const GalleriaSlots = [
|
||||||
description: 'Custom close icon template.'
|
description: 'Custom close icon template.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'previtemicon',
|
name: 'previousitemicon',
|
||||||
description: 'Custom navigator previous item icon template.'
|
description: 'Custom navigator previous item icon template.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -183,7 +183,7 @@ const GalleriaSlots = [
|
||||||
description: 'Custom navigator next item icon template.'
|
description: 'Custom navigator next item icon template.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'prevthumbnailicon',
|
name: 'previousthumbnailicon',
|
||||||
description: 'Custom thumbnail previous icon template.'
|
description: 'Custom thumbnail previous icon template.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,8 +15,8 @@ const InlineMessageProps = [
|
||||||
|
|
||||||
const MessageSlots = [
|
const MessageSlots = [
|
||||||
{
|
{
|
||||||
name: 'messageicon',
|
name: 'icon',
|
||||||
description: 'Custom message icon template.'
|
description: 'Custom icon template.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -47,11 +47,15 @@ const InplaceEvents = [
|
||||||
const InplaceSlots = [
|
const InplaceSlots = [
|
||||||
{
|
{
|
||||||
name: 'display',
|
name: 'display',
|
||||||
description: 'Output content'
|
description: 'Custom display template.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'content',
|
name: 'content',
|
||||||
description: 'Actual content'
|
description: 'Custom content template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'closeicon',
|
||||||
|
description: 'Custom close icon template.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -448,6 +448,14 @@ const MultiSelectSlots = [
|
||||||
{
|
{
|
||||||
name: 'itemcheckboxicon',
|
name: 'itemcheckboxicon',
|
||||||
description: 'Custom item checkbox icon template.'
|
description: 'Custom item checkbox icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'loadingicon',
|
||||||
|
description: 'Custom loading icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'dropdownicon',
|
||||||
|
description: 'Custom dropdown icon template.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -80,11 +80,11 @@ const PaginatorEvents = [
|
||||||
|
|
||||||
const PaginatorSlots = [
|
const PaginatorSlots = [
|
||||||
{
|
{
|
||||||
name: 'left',
|
name: 'start',
|
||||||
description: "Custom content for the component's left side."
|
description: "Custom content for the component's left side."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'right',
|
name: 'end',
|
||||||
description: "Custom content for the component's right side."
|
description: "Custom content for the component's right side."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -172,6 +172,10 @@ const PickListEvents = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const PickListSlots = [
|
const PickListSlots = [
|
||||||
|
{
|
||||||
|
name: 'header',
|
||||||
|
description: 'Custom header template.'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'sourceheader',
|
name: 'sourceheader',
|
||||||
description: "Custom content for the component's source header."
|
description: "Custom content for the component's source header."
|
||||||
|
|
|
@ -49,6 +49,21 @@ const RatingProps = [
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const RatingSlots = [
|
||||||
|
{
|
||||||
|
name: 'cancelicon',
|
||||||
|
description: 'Custom cancel icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'onicon',
|
||||||
|
description: 'Custom on icon template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'officon',
|
||||||
|
description: 'Custom off icon template.'
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
const RatingEvents = [
|
const RatingEvents = [
|
||||||
{
|
{
|
||||||
name: 'change',
|
name: 'change',
|
||||||
|
@ -73,6 +88,7 @@ module.exports = {
|
||||||
name: 'rating',
|
name: 'rating',
|
||||||
description: 'Rating component is a star based selection input.',
|
description: 'Rating component is a star based selection input.',
|
||||||
props: RatingProps,
|
props: RatingProps,
|
||||||
|
slots: RatingSlots,
|
||||||
events: RatingEvents
|
events: RatingEvents
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -80,6 +80,10 @@ const SidebarSlots = [
|
||||||
{
|
{
|
||||||
name: 'header',
|
name: 'header',
|
||||||
description: 'Custom content for the component header.'
|
description: 'Custom content for the component header.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'closeicon',
|
||||||
|
description: 'Custom close icon template.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -137,8 +137,12 @@ const SpeedDialSlots = [
|
||||||
description: 'Custom content for the item'
|
description: 'Custom content for the item'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'toggle',
|
name: 'button',
|
||||||
description: 'toggle: toggle metadata'
|
description: 'Custom button template.'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'icon',
|
||||||
|
description: 'Custom icon template.'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,10 @@ const SplitButtonEvents = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const SplitButtonSlots = [
|
const SplitButtonSlots = [
|
||||||
|
{
|
||||||
|
name: 'icon',
|
||||||
|
description: 'Custom icon template.'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'menubuttonicon',
|
name: 'menubuttonicon',
|
||||||
description: 'Custom menu button icon template.'
|
description: 'Custom menu button icon template.'
|
||||||
|
|
|
@ -25,10 +25,18 @@ const TagProps = [
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const TagSlots = [
|
||||||
|
{
|
||||||
|
name: 'icon',
|
||||||
|
description: 'custom icon template.'
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
tag: {
|
tag: {
|
||||||
name: 'Tag',
|
name: 'Tag',
|
||||||
description: 'Tag component is used to categorize content.',
|
description: 'Tag component is used to categorize content.',
|
||||||
props: TagProps
|
props: TagProps,
|
||||||
|
slots: TagSlots
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -109,11 +109,19 @@ const ToggleButtonEvents = [
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const ToggleButtonSlots = [
|
||||||
|
{
|
||||||
|
name: 'icon',
|
||||||
|
description: 'custom icon template.'
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
togglebutton: {
|
togglebutton: {
|
||||||
name: 'ToggleButton',
|
name: 'ToggleButton',
|
||||||
description: 'ToggleButton is used to select a boolean value using a button.',
|
description: 'ToggleButton is used to select a boolean value using a button.',
|
||||||
props: ToggleButtonProps,
|
props: ToggleButtonProps,
|
||||||
|
slots: ToggleButtonSlots,
|
||||||
events: ToggleButtonEvents
|
events: ToggleButtonEvents
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,6 +21,10 @@ const ToolbarSlots = [
|
||||||
{
|
{
|
||||||
name: 'end',
|
name: 'end',
|
||||||
description: "Custom content for the component's right side"
|
description: "Custom content for the component's right side"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'center',
|
||||||
|
description: "Custom content for the component's center"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -199,14 +199,6 @@ const TreeSelectSlots = [
|
||||||
name: 'triggericon',
|
name: 'triggericon',
|
||||||
description: 'Custom content for the dropdown indicator'
|
description: 'Custom content for the dropdown indicator'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'loadingicon',
|
|
||||||
description: 'Custom loading icon template.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'searchicon',
|
|
||||||
description: 'Custom search icon template.'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'itemtogglericon',
|
name: 'itemtogglericon',
|
||||||
description: 'Custom item toggler icon template.'
|
description: 'Custom item toggler icon template.'
|
||||||
|
|
2
components/lib/avatar/Avatar.d.ts
vendored
2
components/lib/avatar/Avatar.d.ts
vendored
|
@ -55,7 +55,7 @@ export interface AvatarSlots {
|
||||||
*/
|
*/
|
||||||
default(): VNode[];
|
default(): VNode[];
|
||||||
/**
|
/**
|
||||||
* Content can easily be customized with the default slot instead of using the built-in modes.
|
* Custom icon template.
|
||||||
*/
|
*/
|
||||||
icon(): VNode[];
|
icon(): VNode[];
|
||||||
}
|
}
|
||||||
|
|
2
components/lib/scrolltop/ScrollTop.d.ts
vendored
2
components/lib/scrolltop/ScrollTop.d.ts
vendored
|
@ -26,6 +26,7 @@ export interface ScrollTopProps {
|
||||||
threshold?: number | undefined;
|
threshold?: number | undefined;
|
||||||
/**
|
/**
|
||||||
* Icon to display.
|
* Icon to display.
|
||||||
|
* @deprecated since v3.27.0. Use 'icon' slot.
|
||||||
*/
|
*/
|
||||||
icon?: string | undefined;
|
icon?: string | undefined;
|
||||||
/**
|
/**
|
||||||
|
@ -41,7 +42,6 @@ export interface ScrollTopProps {
|
||||||
export interface ScrollTopSlots {
|
export interface ScrollTopSlots {
|
||||||
/**
|
/**
|
||||||
* Custom scrolltop icon template.
|
* Custom scrolltop icon template.
|
||||||
* @deprecated since v3.27.0. Use 'icon' slot.
|
|
||||||
*/
|
*/
|
||||||
icon(): VNode[];
|
icon(): VNode[];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue