primevue-mirror/components/lib/config/PrimeVue.d.ts

377 lines
16 KiB
TypeScript
Raw Normal View History

2022-12-08 11:04:25 +00:00
import { Plugin } from 'vue';
2023-05-03 14:40:21 +00:00
import { AccordionPassThroughOptions } from '../accordion';
import { AccordionTabPassThroughOptions } from '../accordiontab';
import { AnimateOnScrollDirectivePassThroughOptions } from '../animateonscroll';
2023-05-05 06:40:09 +00:00
import { AutoCompletePassThroughOptions } from '../autocomplete';
2023-05-03 14:40:21 +00:00
import { AvatarPassThroughOptions } from '../avatar';
2023-07-24 11:28:57 +00:00
import { AvatarGroupPassThroughOptions } from '../avatargroup';
2023-05-03 14:40:21 +00:00
import { BadgePassThroughOptions } from '../badge';
2023-06-23 14:51:42 +00:00
import { BadgeDirectivePassThroughOptions } from '../badgedirective';
2023-05-03 14:40:21 +00:00
import { BlockUIPassThroughOptions } from '../blockui';
import { BreadcrumbPassThroughOptions } from '../breadcrumb';
import { ButtonPassThroughOptions } from '../button';
2023-05-04 14:50:30 +00:00
import { CalendarPassThroughOptions } from '../calendar';
import { CardPassThroughOptions } from '../card';
2023-05-04 07:46:18 +00:00
import { CarouselPassThroughOptions } from '../carousel';
2023-05-05 08:45:08 +00:00
import { CascadeSelectPassThroughOptions } from '../cascadeselect';
2023-05-03 14:40:21 +00:00
import { ChartPassThroughOptions } from '../chart';
2023-05-05 09:09:09 +00:00
import { CheckboxPassThroughOptions } from '../checkbox';
2023-05-03 14:40:21 +00:00
import { ChipPassThroughOptions } from '../chip';
2023-05-05 09:36:30 +00:00
import { ChipsPassThroughOptions } from '../chips';
2023-05-05 09:53:13 +00:00
import { ColorPickerPassThroughOptions } from '../colorpicker';
2023-07-24 11:28:57 +00:00
import { ColumnPassThroughOptions } from '../column';
2023-05-10 11:39:25 +00:00
import { ColumnGroupPassThroughOptions } from '../columngroup';
2023-05-03 14:40:21 +00:00
import { ConfirmDialogPassThroughOptions } from '../confirmdialog';
import { ConfirmPopupPassThroughOptions } from '../confirmpopup';
import { ContextMenuPassThroughOptions } from '../contextmenu';
2023-05-08 14:08:06 +00:00
import { DataTablePassThroughOptions } from '../datatable';
import { DataViewPassThroughOptions } from '../dataview';
import { DataViewLayoutOptionsPassThroughOptions } from '../dataviewlayoutoptions';
2023-05-03 14:40:21 +00:00
import { DeferredContentPassThroughOptions } from '../deferredcontent';
import { DialogPassThroughOptions } from '../dialog';
import { DividerPassThroughOptions } from '../divider';
import { DockPassThroughOptions } from '../dock';
2023-05-07 20:37:26 +00:00
import { DropdownPassThroughOptions } from '../dropdown';
2023-05-05 10:15:25 +00:00
import { EditorPassThroughOptions } from '../editor';
2023-05-03 14:40:21 +00:00
import { FieldsetPassThroughOptions } from '../fieldset';
import { FileUploadPassThroughOptions } from '../fileupload';
2023-06-23 14:51:42 +00:00
import { FocusTrapDirectivePassThroughOptions } from '../focustrap';
2023-05-04 08:29:52 +00:00
import { GalleriaPassThroughOptions } from '../galleria';
2023-05-04 07:45:01 +00:00
import { ImagePassThroughOptions } from '../image';
2023-05-03 14:40:21 +00:00
import { InlineMessagePassThroughOptions } from '../inlinemessage';
import { InplacePassThroughOptions } from '../inplace';
2023-05-05 11:08:41 +00:00
import { InputMaskPassThroughOptions } from '../inputmask';
2023-05-05 12:56:22 +00:00
import { InputNumberPassThroughOptions } from '../inputnumber';
2023-05-05 13:10:07 +00:00
import { InputSwitchPassThroughOptions } from '../inputswitch';
2023-05-05 12:53:35 +00:00
import { InputTextPassThroughOptions } from '../inputtext';
2023-05-05 14:13:58 +00:00
import { KnobPassThroughOptions } from '../knob';
2023-05-07 21:07:47 +00:00
import { ListboxPassThroughOptions } from '../listbox';
2023-05-03 14:40:21 +00:00
import { MegaMenuPassThroughOptions } from '../megamenu';
import { MenuPassThroughOptions } from '../menu';
import { MenubarPassThroughOptions } from '../menubar';
import { MessagePassThroughOptions } from '../message';
2023-05-08 07:00:16 +00:00
import { MultiSelectPassThroughOptions } from '../multiselect';
2023-05-09 16:03:01 +00:00
import { OrderListPassThroughOptions } from '../orderlist';
2023-05-10 08:07:14 +00:00
import { OrganizationChartPassThroughOptions } from '../organizationchart';
2023-05-03 14:40:21 +00:00
import { OverlayPanelPassThroughOptions } from '../overlaypanel';
2023-05-08 09:35:25 +00:00
import { PaginatorPassThroughOptions } from '../paginator';
import { PanelPassThroughOptions } from '../panel';
2023-05-03 14:40:21 +00:00
import { PanelMenuPassThroughOptions } from '../panelmenu';
import { PassThroughOptions } from '../passthrough';
2023-05-05 14:58:54 +00:00
import { PasswordPassThroughOptions } from '../password';
2023-05-09 22:03:24 +00:00
import { PickListPassThroughOptions } from '../picklist';
2023-05-03 14:40:21 +00:00
import { ProgressBarPassThroughOptions } from '../progressbar';
import { ProgressSpinnerPassThroughOptions } from '../progressspinner';
2023-05-05 15:20:34 +00:00
import { RadioButtonPassThroughOptions } from '../radiobutton';
2023-07-24 11:28:57 +00:00
import { RatingPassThroughOptions } from '../rating';
2023-06-23 14:51:42 +00:00
import { RippleDirectivePassThroughOptions } from '../ripple';
2023-05-10 11:39:25 +00:00
import { RowPassThroughOptions } from '../row';
2023-05-03 14:40:21 +00:00
import { ScrollPanelPassThroughOptions } from '../scrollpanel';
import { ScrollTopPassThroughOptions } from '../scrolltop';
2023-05-07 06:29:10 +00:00
import { SelectButtonPassThroughOptions } from '../selectbutton';
2023-05-03 14:40:21 +00:00
import { SidebarPassThroughOptions } from '../sidebar';
import { SkeletonPassThroughOptions } from '../skeleton';
2023-07-24 11:28:57 +00:00
import { SliderPassThroughOptions } from '../slider';
2023-05-03 14:40:21 +00:00
import { SpeedDialPassThroughOptions } from '../speeddial';
import { SplitButtonPassThroughOptions } from '../splitbutton';
import { SplitterPassThroughOptions } from '../splitter';
2023-07-24 11:28:57 +00:00
import { SplitterPanelPassThroughOptions } from '../splitterpanel';
2023-06-23 14:51:42 +00:00
import { StepsPassThroughOptions } from '../steps';
import { StyleClassDirectivePassThroughOptions } from '../styleclass';
2023-05-03 14:40:21 +00:00
import { TabMenuPassThroughOptions } from '../tabmenu';
import { TabPanelPassThroughOptions } from '../tabpanel';
import { TabViewPassThroughOptions } from '../tabview';
import { TagPassThroughOptions } from '../tag';
import { TerminalPassThroughOptions } from '../terminal';
2023-05-07 06:29:10 +00:00
import { TextareaPassThroughOptions } from '../textarea';
2023-05-03 14:40:21 +00:00
import { TieredMenuPassThroughOptions } from '../tieredmenu';
2023-05-10 07:28:34 +00:00
import { TimelinePassThroughOptions } from '../timeline';
2023-05-03 14:40:21 +00:00
import { ToastPassThroughOptions } from '../toast';
2023-07-24 11:28:57 +00:00
import { ToggleButtonPassThroughOptions } from '../togglebutton';
2023-05-03 14:40:21 +00:00
import { ToolbarPassThroughOptions } from '../toolbar';
2023-07-06 11:09:01 +00:00
import { TooltipDirectivePassThroughOptions } from '../tooltip';
2023-05-07 19:21:37 +00:00
import { TreePassThroughOptions } from '../tree';
2023-05-07 19:51:06 +00:00
import { TreeSelectPassThroughOptions } from '../treeselect';
2023-05-11 08:11:49 +00:00
import { TreeTablePassThroughOptions } from '../treetable';
2023-07-24 11:28:57 +00:00
import { TriStateCheckboxPassThroughOptions } from '../tristatecheckbox';
import { DefaultPassThrough, PassThrough } from '../ts-helpers';
2023-05-05 06:37:18 +00:00
import { VirtualScrollerPassThroughOptions } from '../virtualscroller';
export interface PrimeVueConfiguration {
ripple?: boolean;
inputStyle?: 'filled' | 'outlined' | undefined;
locale?: PrimeVueLocaleOptions;
filterMatchModeOptions?: any;
zIndex?: PrimeVueZIndexOptions;
pt?: PassThrough<PrimeVuePTOptions>;
ptOptions?: PassThroughOptions;
2023-05-16 10:43:21 +00:00
unstyled?: boolean;
csp?: PrimeVueCSPOptions;
}
export declare const defaultOptions: PrimeVueConfiguration;
export interface PrimeVueZIndexOptions {
modal?: number;
overlay?: number;
menu?: number;
tooltip?: number;
}
export interface PrimeVueCSPOptions {
nonce?: string;
}
export interface PrimeVuePTOptions {
accordion?: DefaultPassThrough<AccordionPassThroughOptions>;
accordiontab?: DefaultPassThrough<AccordionTabPassThroughOptions>;
autocomplete?: DefaultPassThrough<AutoCompletePassThroughOptions>;
avatar?: DefaultPassThrough<AvatarPassThroughOptions>;
avatargroup?: DefaultPassThrough<AvatarGroupPassThroughOptions>;
badge?: DefaultPassThrough<BadgePassThroughOptions>;
blockui?: DefaultPassThrough<BlockUIPassThroughOptions>;
breadcrumb?: DefaultPassThrough<BreadcrumbPassThroughOptions>;
button?: DefaultPassThrough<ButtonPassThroughOptions>;
calendar?: DefaultPassThrough<CalendarPassThroughOptions>;
card?: DefaultPassThrough<CardPassThroughOptions>;
carousel?: DefaultPassThrough<CarouselPassThroughOptions>;
cascadeselect?: DefaultPassThrough<CascadeSelectPassThroughOptions>;
chart?: DefaultPassThrough<ChartPassThroughOptions>;
checkbox?: DefaultPassThrough<CheckboxPassThroughOptions>;
chip?: DefaultPassThrough<ChipPassThroughOptions>;
chips?: DefaultPassThrough<ChipsPassThroughOptions>;
colorpicker?: DefaultPassThrough<ColorPickerPassThroughOptions>;
column?: DefaultPassThrough<ColumnPassThroughOptions>;
columngroup?: DefaultPassThrough<ColumnGroupPassThroughOptions>;
confirmdialog?: DefaultPassThrough<ConfirmDialogPassThroughOptions>;
confirmpopup?: DefaultPassThrough<ConfirmPopupPassThroughOptions>;
contextmenu?: DefaultPassThrough<ContextMenuPassThroughOptions>;
datatable?: DefaultPassThrough<DataTablePassThroughOptions>;
dataview?: DefaultPassThrough<DataViewPassThroughOptions>;
dataviewlayoutoptions?: DefaultPassThrough<DataViewLayoutOptionsPassThroughOptions>;
deferredcontent?: DefaultPassThrough<DeferredContentPassThroughOptions>;
divider?: DefaultPassThrough<DividerPassThroughOptions>;
dialog?: DefaultPassThrough<DialogPassThroughOptions>;
dock?: DefaultPassThrough<DockPassThroughOptions>;
dropdown?: DefaultPassThrough<DropdownPassThroughOptions>;
dynamicdialog?: DefaultPassThrough<DialogPassThroughOptions>;
editor?: DefaultPassThrough<EditorPassThroughOptions>;
fieldset?: DefaultPassThrough<FieldsetPassThroughOptions>;
fileupload?: DefaultPassThrough<FileUploadPassThroughOptions>;
galleria?: DefaultPassThrough<GalleriaPassThroughOptions>;
image?: DefaultPassThrough<ImagePassThroughOptions>;
inlinemessage?: DefaultPassThrough<InlineMessagePassThroughOptions>;
inplace?: DefaultPassThrough<InplacePassThroughOptions>;
inputmask?: DefaultPassThrough<InputMaskPassThroughOptions>;
inputnumber?: DefaultPassThrough<InputNumberPassThroughOptions>;
inputswitch?: DefaultPassThrough<InputSwitchPassThroughOptions>;
inputtext?: DefaultPassThrough<InputTextPassThroughOptions>;
knob?: DefaultPassThrough<KnobPassThroughOptions>;
listbox?: DefaultPassThrough<ListboxPassThroughOptions>;
megamenu?: DefaultPassThrough<MegaMenuPassThroughOptions>;
menu?: DefaultPassThrough<MenuPassThroughOptions>;
menubar?: DefaultPassThrough<MenubarPassThroughOptions>;
message?: DefaultPassThrough<MessagePassThroughOptions>;
multiselect?: DefaultPassThrough<MultiSelectPassThroughOptions>;
orderlist?: DefaultPassThrough<OrderListPassThroughOptions>;
organizationchart?: DefaultPassThrough<OrganizationChartPassThroughOptions>;
overlaypanel?: DefaultPassThrough<OverlayPanelPassThroughOptions>;
paginator?: DefaultPassThrough<PaginatorPassThroughOptions>;
panel?: DefaultPassThrough<PanelPassThroughOptions>;
panelmenu?: DefaultPassThrough<PanelMenuPassThroughOptions>;
password?: DefaultPassThrough<PasswordPassThroughOptions>;
picklist?: DefaultPassThrough<PickListPassThroughOptions>;
progressbar?: DefaultPassThrough<ProgressBarPassThroughOptions>;
progressspinner?: DefaultPassThrough<ProgressSpinnerPassThroughOptions>;
radiobutton?: DefaultPassThrough<RadioButtonPassThroughOptions>;
rating?: DefaultPassThrough<RatingPassThroughOptions>;
row?: DefaultPassThrough<RowPassThroughOptions>;
scrollpanel?: DefaultPassThrough<ScrollPanelPassThroughOptions>;
scrolltop?: DefaultPassThrough<ScrollTopPassThroughOptions>;
sidebar?: DefaultPassThrough<SidebarPassThroughOptions>;
skeleton?: DefaultPassThrough<SkeletonPassThroughOptions>;
slider?: DefaultPassThrough<SliderPassThroughOptions>;
speeddial?: DefaultPassThrough<SpeedDialPassThroughOptions>;
selectbutton?: DefaultPassThrough<SelectButtonPassThroughOptions>;
splitbutton?: DefaultPassThrough<SplitButtonPassThroughOptions>;
splitter?: DefaultPassThrough<SplitterPassThroughOptions>;
splitterpanel?: DefaultPassThrough<SplitterPanelPassThroughOptions>;
steps?: DefaultPassThrough<StepsPassThroughOptions>;
tabmenu?: DefaultPassThrough<TabMenuPassThroughOptions>;
tabpanel?: DefaultPassThrough<TabPanelPassThroughOptions>;
tabview?: DefaultPassThrough<TabViewPassThroughOptions>;
tag?: DefaultPassThrough<TagPassThroughOptions>;
terminal?: DefaultPassThrough<TerminalPassThroughOptions>;
textarea?: DefaultPassThrough<TextareaPassThroughOptions>;
tieredmenu?: DefaultPassThrough<TieredMenuPassThroughOptions>;
timeline?: DefaultPassThrough<TimelinePassThroughOptions>;
toast?: DefaultPassThrough<ToastPassThroughOptions>;
togglebutton?: DefaultPassThrough<ToggleButtonPassThroughOptions>;
toolbar?: DefaultPassThrough<ToolbarPassThroughOptions>;
tree?: DefaultPassThrough<TreePassThroughOptions>;
treeselect?: DefaultPassThrough<TreeSelectPassThroughOptions>;
tristatecheckbox?: DefaultPassThrough<TriStateCheckboxPassThroughOptions>;
treetable?: DefaultPassThrough<TreeTablePassThroughOptions>;
virtualscroller?: DefaultPassThrough<VirtualScrollerPassThroughOptions>;
2023-07-06 11:09:01 +00:00
directives?: {
badge?: BadgeDirectivePassThroughOptions;
tooltip?: TooltipDirectivePassThroughOptions;
styleclass?: StyleClassDirectivePassThroughOptions;
focustrap?: FocusTrapDirectivePassThroughOptions;
ripple?: RippleDirectivePassThroughOptions;
animate?: AnimateOnScrollDirectivePassThroughOptions;
2023-07-06 11:09:01 +00:00
};
global?: {
css?: (options: any) => string | string | undefined;
};
}
export interface PrimeVueLocaleAriaOptions {
2022-07-18 10:36:43 +00:00
trueLabel?: string;
falseLabel?: string;
nullLabel?: string;
star?: string;
stars?: string;
selectAll?: string;
unselectAll?: string;
close?: string;
2022-09-14 11:26:01 +00:00
previous?: string;
next?: string;
2022-12-08 11:04:25 +00:00
navigation?: string;
scrollTop?: string;
moveUp?: string;
moveTop?: string;
moveDown?: string;
moveBottom?: string;
moveToTarget?: string;
moveToSource?: string;
moveAllToTarget?: string;
moveAllToSource?: string;
pageLabel?: string;
firstPageLabel?: string;
lastPageLabel?: string;
nextPageLabel?: string;
prevPageLabel?: string;
rowsPerPageLabel?: string;
jumpToPageDropdownLabel?: string;
jumpToPageInputLabel?: string;
selectRow?: string;
unselectRow?: string;
expandRow?: string;
collapseRow?: string;
showFilterMenu?: string;
hideFilterMenu?: string;
filterOperator?: string;
filterConstraint?: string;
editRow?: string;
saveEdit?: string;
cancelEdit?: string;
listView?: string;
gridView?: string;
slide?: string;
slideNumber?: string;
zoomImage?: string;
zoomIn?: string;
zoomOut?: string;
rotateRight?: string;
rotateLeft?: string;
2022-07-18 10:36:43 +00:00
}
export interface PrimeVueLocaleOptions {
2021-02-16 13:07:15 +00:00
startsWith?: string;
contains?: string;
notContains?: string;
endsWith?: string;
2021-02-16 13:07:15 +00:00
equals?: string;
notEquals?: string;
noFilter?: string;
lt?: string;
lte?: string;
gt?: string;
gte?: string;
dateIs?: string;
dateIsNot?: string;
dateBefore?: string;
dateAfter?: string;
clear?: string;
apply?: string;
matchAll?: string;
matchAny?: string;
addRule?: string;
removeRule?: string;
accept?: string;
reject?: string;
choose?: string;
upload?: string;
cancel?: string;
2022-12-08 11:04:25 +00:00
completed?: string;
pending?: string;
fileSizeTypes: string[];
dayNames: string[];
dayNamesShort: string[];
dayNamesMin: string[];
monthNames: string[];
monthNamesShort: string[];
chooseYear?: string;
chooseMonth?: string;
chooseDate?: string;
prevDecade?: string;
nextDecade?: string;
prevYear?: string;
nextYear?: string;
prevMonth?: string;
nextMonth?: string;
prevHour?: string;
nextHour?: string;
prevMinute?: string;
nextMinute?: string;
prevSecond?: string;
nextSecond?: string;
am?: string;
pm?: string;
today?: string;
weekHeader?: string;
firstDayOfWeek?: number;
showMonthAfterYear?: boolean;
dateFormat?: string;
weak?: string;
medium?: string;
strong?: string;
passwordPrompt?: string;
2021-02-16 13:07:15 +00:00
emptyFilterMessage?: string;
searchMessage?: string;
selectionMessage?: string;
emptySelectionMessage?: string;
emptySearchMessage?: string;
2021-02-16 13:07:15 +00:00
emptyMessage?: string;
2022-07-18 10:36:43 +00:00
aria?: PrimeVueLocaleAriaOptions;
}
export type PrimeVueChangeTheme = (currentTheme: string, newTheme: string, linkElementId: string, callback?: Function) => void;
export declare function usePrimeVue(): {
config: PrimeVueConfiguration;
changeTheme: PrimeVueChangeTheme;
};
declare const plugin: Plugin;
export default plugin;
declare module 'vue/types/vue' {
interface Vue {
2020-12-10 12:38:14 +00:00
$primevue: {
config: PrimeVueConfiguration;
changeTheme: PrimeVueChangeTheme;
2022-09-14 11:26:01 +00:00
};
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$primevue: {
config: PrimeVueConfiguration;
changeTheme: PrimeVueChangeTheme;
2022-09-14 11:26:01 +00:00
};
}
}