pull/5880/head
Mert Sincan 2024-06-12 01:02:09 +01:00
parent c0e6ed737f
commit 6c9571f14a
4 changed files with 22 additions and 7 deletions

View File

@ -1,6 +1,6 @@
import { Plugin } from 'vue'; import { Plugin } from 'vue';
export interface PrimeVueConfiguration<PrimeVuePTOptions = any, PassThroughOptions = any> { export interface PrimeVueConfiguration {
ripple?: boolean; ripple?: boolean;
/** /**
* @deprecated since v4.0. Use 'inputVariant' instead. * @deprecated since v4.0. Use 'inputVariant' instead.
@ -12,8 +12,8 @@ export interface PrimeVueConfiguration<PrimeVuePTOptions = any, PassThroughOptio
zIndex?: PrimeVueZIndexOptions; zIndex?: PrimeVueZIndexOptions;
theme?: any; theme?: any;
unstyled?: boolean; unstyled?: boolean;
pt?: PrimeVuePTOptions; pt?: any;
ptOptions?: PassThroughOptions; ptOptions?: any;
csp?: PrimeVueCSPOptions; csp?: PrimeVueCSPOptions;
} }

View File

@ -1,5 +1,5 @@
import type { DefaultPassThrough, PassThrough } from '@primevue/core'; import type { DefaultPassThrough, PassThrough } from '@primevue/core';
import type { PrimeVueConfiguration as PrimeVueCoreConfiguration } from '@primevue/core/config'; import type { PrimeVueCSPOptions, PrimeVueLocaleOptions, PrimeVueZIndexOptions } from '@primevue/core/config';
import type { AccordionPassThroughOptions } from 'primevue/accordion'; import type { AccordionPassThroughOptions } from 'primevue/accordion';
import type { AccordionContentPassThroughOptions } from 'primevue/accordioncontent'; import type { AccordionContentPassThroughOptions } from 'primevue/accordioncontent';
import type { AccordionHeaderPassThroughOptions } from 'primevue/accordionheader'; import type { AccordionHeaderPassThroughOptions } from 'primevue/accordionheader';
@ -110,7 +110,22 @@ import type { VirtualScrollerPassThroughOptions } from 'primevue/virtualscroller
export * from '@primevue/core/config'; export * from '@primevue/core/config';
export interface PrimeVueConfiguration extends PrimeVueCoreConfiguration<PassThrough<PrimeVuePTOptions>, PassThroughOptions> {} export interface PrimeVueConfiguration {
ripple?: boolean;
/**
* @deprecated since v4.0. Use 'inputVariant' instead.
*/
inputStyle?: 'filled' | 'outlined' | undefined;
inputVariant?: 'filled' | 'outlined' | undefined;
locale?: PrimeVueLocaleOptions;
filterMatchModeOptions?: any;
zIndex?: PrimeVueZIndexOptions;
theme?: any;
unstyled?: boolean;
pt?: PassThrough<PrimeVuePTOptions>;
ptOptions?: PassThroughOptions;
csp?: PrimeVueCSPOptions;
}
export interface PrimeVuePTOptions { export interface PrimeVuePTOptions {
accordion?: DefaultPassThrough<AccordionPassThroughOptions>; accordion?: DefaultPassThrough<AccordionPassThroughOptions>;