From 4ecc86838f2a3b05e51d2d004046688b4ef89000 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 18 Aug 2023 00:51:01 +0100 Subject: [PATCH] Fixed #4289 - Improve `usePassThrough` method --- components/lib/accordion/Accordion.d.ts | 4 +- components/lib/accordiontab/AccordionTab.d.ts | 4 +- components/lib/autocomplete/AutoComplete.d.ts | 4 +- components/lib/avatar/Avatar.d.ts | 4 +- components/lib/avatargroup/AvatarGroup.d.ts | 4 +- components/lib/badge/Badge.d.ts | 4 +- .../lib/badgedirective/BadgeDirective.d.ts | 3 +- .../lib/basecomponent/BaseComponent.vue | 77 ++++++++++++++++--- components/lib/basedirective/BaseDirective.js | 49 ++++++++++-- components/lib/blockui/BlockUI.d.ts | 4 +- components/lib/breadcrumb/Breadcrumb.d.ts | 4 +- components/lib/button/Button.d.ts | 4 +- components/lib/calendar/Calendar.d.ts | 4 +- components/lib/card/Card.d.ts | 4 +- components/lib/carousel/Carousel.d.ts | 4 +- .../lib/cascadeselect/CascadeSelect.d.ts | 4 +- components/lib/chart/Chart.d.ts | 4 +- components/lib/checkbox/Checkbox.d.ts | 4 +- components/lib/chip/Chip.d.ts | 4 +- components/lib/chips/Chips.d.ts | 4 +- components/lib/colorpicker/ColorPicker.d.ts | 4 +- components/lib/column/Column.d.ts | 4 +- components/lib/columngroup/ColumnGroup.d.ts | 4 +- components/lib/config/PrimeVue.d.ts | 4 +- .../lib/confirmdialog/ConfirmDialog.d.ts | 4 +- components/lib/confirmpopup/ConfirmPopup.d.ts | 4 +- components/lib/contextmenu/ContextMenu.d.ts | 4 +- components/lib/datatable/DataTable.d.ts | 4 +- components/lib/dataview/DataView.d.ts | 4 +- .../DataViewLayoutOptions.d.ts | 4 +- .../lib/deferredcontent/DeferredContent.d.ts | 4 +- components/lib/dialog/Dialog.d.ts | 4 +- components/lib/divider/Divider.d.ts | 4 +- components/lib/dock/Dock.d.ts | 4 +- components/lib/dropdown/Dropdown.d.ts | 6 +- components/lib/editor/Editor.d.ts | 4 +- components/lib/fieldset/Fieldset.d.ts | 4 +- components/lib/fileupload/FileUpload.d.ts | 4 +- components/lib/focustrap/FocusTrap.d.ts | 3 +- components/lib/galleria/Galleria.d.ts | 4 +- components/lib/image/Image.d.ts | 4 +- .../lib/inlinemessage/InlineMessage.d.ts | 4 +- components/lib/inplace/Inplace.d.ts | 4 +- components/lib/inputmask/InputMask.d.ts | 4 +- components/lib/inputnumber/InputNumber.d.ts | 4 +- components/lib/inputswitch/InputSwitch.d.ts | 4 +- components/lib/inputtext/InputText.d.ts | 4 +- components/lib/knob/Knob.d.ts | 4 +- components/lib/listbox/Listbox.d.ts | 4 +- components/lib/megamenu/MegaMenu.d.ts | 4 +- components/lib/menu/Menu.d.ts | 4 +- components/lib/menubar/Menubar.d.ts | 4 +- components/lib/message/Message.d.ts | 4 +- components/lib/multiselect/MultiSelect.d.ts | 4 +- components/lib/orderlist/OrderList.d.ts | 4 +- .../organizationchart/OrganizationChart.d.ts | 4 +- components/lib/overlaypanel/OverlayPanel.d.ts | 4 +- components/lib/paginator/Paginator.d.ts | 4 +- components/lib/panel/Panel.d.ts | 4 +- components/lib/panelmenu/PanelMenu.d.ts | 4 +- components/lib/passthrough/index.d.ts | 9 --- components/lib/passthrough/index.js | 61 ++++----------- components/lib/password/Password.d.ts | 4 +- components/lib/picklist/PickList.d.ts | 4 +- components/lib/progressbar/ProgressBar.d.ts | 4 +- .../lib/progressspinner/ProgressSpinner.d.ts | 4 +- components/lib/radiobutton/RadioButton.d.ts | 4 +- components/lib/rating/Rating.d.ts | 4 +- components/lib/ripple/Ripple.d.ts | 3 +- components/lib/scrollpanel/ScrollPanel.d.ts | 4 +- components/lib/scrolltop/ScrollTop.d.ts | 4 +- components/lib/selectbutton/SelectButton.d.ts | 4 +- components/lib/sidebar/Sidebar.d.ts | 4 +- components/lib/skeleton/Skeleton.d.ts | 4 +- components/lib/slider/Slider.d.ts | 4 +- components/lib/speeddial/SpeedDial.d.ts | 4 +- components/lib/splitbutton/SplitButton.d.ts | 4 +- components/lib/splitter/Splitter.d.ts | 4 +- .../lib/splitterpanel/SplitterPanel.d.ts | 4 +- components/lib/steps/Steps.d.ts | 4 +- components/lib/styleclass/StyleClass.d.ts | 3 +- components/lib/tabmenu/TabMenu.d.ts | 4 +- components/lib/tabpanel/TabPanel.d.ts | 4 +- components/lib/tabview/TabView.d.ts | 4 +- components/lib/tag/Tag.d.ts | 4 +- components/lib/terminal/Terminal.d.ts | 4 +- components/lib/textarea/Textarea.d.ts | 4 +- components/lib/tieredmenu/TieredMenu.d.ts | 4 +- components/lib/timeline/Timeline.d.ts | 4 +- components/lib/toast/Toast.d.ts | 4 +- components/lib/togglebutton/ToggleButton.d.ts | 4 +- components/lib/toolbar/Toolbar.d.ts | 4 +- components/lib/tooltip/Tooltip.d.ts | 3 +- components/lib/tree/Tree.d.ts | 4 +- components/lib/treeselect/TreeSelect.d.ts | 4 +- components/lib/treetable/TreeTable.d.ts | 4 +- .../tristatecheckbox/TriStateCheckbox.d.ts | 4 +- components/lib/ts-helpers.d.ts | 2 + .../lib/virtualscroller/VirtualScroller.d.ts | 4 +- doc/tailwind/CustomizationDoc.vue | 4 +- 100 files changed, 317 insertions(+), 258 deletions(-) diff --git a/components/lib/accordion/Accordion.d.ts b/components/lib/accordion/Accordion.d.ts index e24e49b2b..59c9536b0 100755 --- a/components/lib/accordion/Accordion.d.ts +++ b/components/lib/accordion/Accordion.d.ts @@ -10,7 +10,7 @@ import { VNode } from 'vue'; import { AccordionTabPassThroughOptionType } from '../accordiontab'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type AccordionPassThroughOptionType = AccordionPassThroughAttributes | ((options: AccordionPassThroughMethodOptions) => AccordionPassThroughAttributes | string) | string | null | undefined; @@ -139,7 +139,7 @@ export interface AccordionProps { * Used to pass attributes to DOM elements inside the component. * @type {AccordionPassThroughOptions} */ - pt?: AccordionPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/accordiontab/AccordionTab.d.ts b/components/lib/accordiontab/AccordionTab.d.ts index 8ec6c06df..d867e9642 100755 --- a/components/lib/accordiontab/AccordionTab.d.ts +++ b/components/lib/accordiontab/AccordionTab.d.ts @@ -9,7 +9,7 @@ */ import { AnchorHTMLAttributes, HTMLAttributes, TransitionProps, VNode } from 'vue'; import { AccordionPassThroughOptions } from '../accordion'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type AccordionTabPassThroughOptionType = AccordionTabPassThroughAttributes | ((options: AccordionTabPassThroughMethodOptions) => AccordionTabPassThroughAttributes | string) | string | null | undefined; @@ -119,7 +119,7 @@ export interface AccordionTabProps { * Used to pass attributes to DOM elements inside the component. * @type {AccordionTabPassThroughOptions} */ - pt?: AccordionTabPassThroughOptions; + pt?: PTOptions; } /** diff --git a/components/lib/autocomplete/AutoComplete.d.ts b/components/lib/autocomplete/AutoComplete.d.ts index b710b3d39..f2ef45e12 100755 --- a/components/lib/autocomplete/AutoComplete.d.ts +++ b/components/lib/autocomplete/AutoComplete.d.ts @@ -10,7 +10,7 @@ import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptionType } from '../button'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; import { VirtualScrollerItemOptions, VirtualScrollerPassThroughOptionType, VirtualScrollerProps } from '../virtualscroller'; export declare type AutoCompletePassThroughOptionType = AutoCompletePassThroughAttributes | ((options: AutoCompletePassThroughMethodOptions) => AutoCompletePassThroughAttributes | string) | string | null | undefined; @@ -447,7 +447,7 @@ export interface AutoCompleteProps { * Used to pass attributes to DOM elements inside the component. * @type {AutoCompletePassThroughOptions} */ - pt?: AutoCompletePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/avatar/Avatar.d.ts b/components/lib/avatar/Avatar.d.ts index 0ad6ad6f2..d14c24b48 100644 --- a/components/lib/avatar/Avatar.d.ts +++ b/components/lib/avatar/Avatar.d.ts @@ -9,7 +9,7 @@ import { VNode } from 'vue'; import { AvatarGroupPassThroughOptions } from '../avatargroup'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type AvatarPassThroughOptionType = AvatarPassThroughAttributes | ((options: AvatarPassThroughMethodOptions) => AvatarPassThroughAttributes | string) | string | null | undefined; @@ -96,7 +96,7 @@ export interface AvatarProps { * Used to pass attributes to DOM elements inside the component. * @type {AvatarPassThroughOptions} */ - pt?: AvatarPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/avatargroup/AvatarGroup.d.ts b/components/lib/avatargroup/AvatarGroup.d.ts index c9d08a390..63b2930fd 100644 --- a/components/lib/avatargroup/AvatarGroup.d.ts +++ b/components/lib/avatargroup/AvatarGroup.d.ts @@ -8,7 +8,7 @@ * */ import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type AvatarGroupPassThroughOptionType = AvatarGroupPassThroughAttributes | null | undefined; @@ -43,7 +43,7 @@ export interface AvatarGroupProps { * Used to pass attributes to DOM elements inside the component. * @type {AvatarGroupPassThroughOptions} */ - pt?: AvatarGroupPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/badge/Badge.d.ts b/components/lib/badge/Badge.d.ts index 431958025..a959f5227 100644 --- a/components/lib/badge/Badge.d.ts +++ b/components/lib/badge/Badge.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type BadgePassThroughOptionType = BadgePassThroughAttributes | ((options: BadgePassThroughMethodOptions) => BadgePassThroughAttributes | string) | string | null | undefined; @@ -64,7 +64,7 @@ export interface BadgeProps { * Used to pass attributes to DOM elements inside the component. * @type {BadgePassThroughOptions} */ - pt?: BadgePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/badgedirective/BadgeDirective.d.ts b/components/lib/badgedirective/BadgeDirective.d.ts index 9305cf8d7..cace5b1de 100644 --- a/components/lib/badgedirective/BadgeDirective.d.ts +++ b/components/lib/badgedirective/BadgeDirective.d.ts @@ -8,6 +8,7 @@ */ import { DirectiveBinding, ObjectDirective } from 'vue'; import { DirectiveHooks } from '../basedirective'; +import { PTOptions } from '../ts-helpers'; export declare type BadgeDirectivePassThroughOptionType = BadgeDirectivePassThroughAttributes | ((options: BadgePassThroughMethodOptions) => BadgeDirectivePassThroughAttributes) | null | undefined; @@ -26,7 +27,7 @@ export interface BadgeDirectiveOptions { * Used to pass attributes to DOM elements inside the component. * @type {BadgeDirectivePassThroughOptions} */ - pt?: BadgeDirectivePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index 3d9e9a0c8..866a7e9c3 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -388,8 +388,17 @@ export default { } }, beforeCreate() { - this.pt?.hooks?.['onBeforeCreate']?.(); - this.$primevue?.config?.pt?.[this.$.type.name]?.hooks?.['onBeforeCreate']?.(); + const _usept = this.pt?.['_usept']; + const originalValue = _usept ? this.pt?.originalValue?.[this.$.type.name] : undefined; + const value = _usept ? this.pt?.value?.[this.$.type.name] : this.pt; + + (value || originalValue)?.hooks?.['onBeforeCreate']?.(); + + const _useptInConfig = this.$config?.pt?.['_usept']; + const originalValueInConfig = _useptInConfig ? this.$primevue?.config?.pt?.originalValue : undefined; + const valueInConfig = _useptInConfig ? this.$primevue?.config?.pt?.value : this.$primevue?.config?.pt; + + (valueInConfig || originalValueInConfig)?.[this.$.type.name]?.hooks?.['onBeforeCreate']?.(); }, created() { this._hook('onCreated'); @@ -416,11 +425,13 @@ export default { }, methods: { _hook(hookName) { - const selfHook = this._getOptionValue(this.pt, `hooks.${hookName}`); - const defaultHook = this._getOptionValue(this.defaultPT, `hooks.${hookName}`); + if (!this.$options.hostName) { + const selfHook = this._usePT(this._getPT(this.pt, this.$.type.name), this._getOptionValue, `hooks.${hookName}`); + const defaultHook = this._useDefaultPT(this._getOptionValue, `hooks.${hookName}`); - selfHook?.(); - defaultHook?.(); + selfHook?.(); + defaultHook?.(); + } }, _loadGlobalStyles() { /* @@ -433,7 +444,7 @@ export default { * ObjectUtils.isNotEmpty(mergedCSS?.class) && this.$css.loadCustomStyle(mergedCSS?.class); */ - const globalCSS = this._getOptionValue(this.globalPT, 'global.css', this.$params); + const globalCSS = this._useGlobalPT(this._getOptionValue, 'global.css', this.$params); ObjectUtils.isNotEmpty(globalCSS) && loadGlobalStyle(globalCSS, { nonce: this.$config?.csp?.nonce }); }, @@ -452,8 +463,9 @@ export default { }, _getPTValue(obj = {}, key = '', params = {}, searchInDefaultPT = true) { const datasetPrefix = 'data-pc-'; - const self = this._getPTClassValue(obj, key, params); - const globalPT = searchInDefaultPT ? (/./g.test(key) && !!params[key.split('.')[0]] ? this._getPTClassValue(this.globalPT, key, params) : this._getPTClassValue(this.defaultPT, key, params)) : undefined; + const searchOut = /./g.test(key) && !!params[key.split('.')[0]]; + const self = searchOut ? undefined : this._usePT(this._getPT(obj, this.$name), this._getPTClassValue, key, params); + const globalPT = searchInDefaultPT ? (searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params)) : undefined; const merged = mergeProps( self, globalPT, @@ -475,6 +487,46 @@ export default { return ObjectUtils.isString(value) || ObjectUtils.isArray(value) ? { class: value } : value; }, + _getPT(pt, key = '', callback) { + const _usept = pt?.['_usept']; + + const getValue = (value) => { + const computedValue = callback ? callback(value) : value; + + return computedValue?.[ObjectUtils.toFlatCase(key)] ?? computedValue; + }; + + return ObjectUtils.isNotEmpty(_usept) + ? { + _usept, + originalValue: getValue(pt.originalValue), + value: getValue(pt.value) + } + : getValue(pt); + }, + _usePT(pt, callback, key, params) { + const fn = (value) => callback(value, key, params); + + if (pt?.hasOwnProperty('_usept')) { + const { merge, useMergeProps } = pt['_usept']; + const originalValue = fn(pt.originalValue); + const value = fn(pt.value); + + if (originalValue === undefined && value === undefined) return undefined; + else if (ObjectUtils.isString(value)) return value; + else if (ObjectUtils.isString(originalValue)) return originalValue; + + return merge ? (useMergeProps ? mergeProps(originalValue, value) : { ...originalValue, ...value }) : value; + } + + return fn(pt); + }, + _useGlobalPT(callback, key, params) { + return this._usePT(this.globalPT, callback, key, params); + }, + _useDefaultPT(callback, key, params) { + return this._usePT(this.defaultPT, callback, key, params); + }, ptm(key = '', params = {}) { return this._getPTValue(this.pt, key, { ...this.$params, ...params }); }, @@ -497,10 +549,10 @@ export default { }, computed: { globalPT() { - return ObjectUtils.getItemValue(this.$config.pt, { instance: this }); + return this._getPT(this.$config?.pt, undefined, (value) => ObjectUtils.getItemValue(value, { instance: this })); }, defaultPT() { - return this._getOptionValue(this.$config.pt, this.$options.hostName || this.$.type.name, { instance: this }) || this.globalPT; + return this._getPT(this.$config?.pt, undefined, (value) => this._getOptionValue(value, this.$name, { instance: this }) || ObjectUtils.getItemValue(value, { instance: this })); }, isUnstyled() { return this.unstyled !== undefined ? this.unstyled : this.$config.unstyled; @@ -513,6 +565,9 @@ export default { }, $config() { return this.$primevue?.config; + }, + $name() { + return this.$options.hostName || this.$.type.name; } } }; diff --git a/components/lib/basedirective/BaseDirective.js b/components/lib/basedirective/BaseDirective.js index 40c2d418b..834ac4ba2 100644 --- a/components/lib/basedirective/BaseDirective.js +++ b/components/lib/basedirective/BaseDirective.js @@ -22,8 +22,8 @@ const BaseDirective = { }; const datasetPrefix = 'data-pc-'; - const self = getValue(obj, key, params); - const globalPT = searchInDefaultPT ? getValue(instance.defaultPT, key, params) : undefined; + const self = BaseDirective._usePT(BaseDirective._getPT(obj, instance.$name), getValue, key, params); + const globalPT = searchInDefaultPT ? BaseDirective._useDefaultPT(instance.defaultPT, getValue, key, params) : undefined; const merged = mergeProps(self, globalPT, { ...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(instance.$name) }), [`${datasetPrefix}section`]: ObjectUtils.toFlatCase(key) @@ -31,15 +31,52 @@ const BaseDirective = { return merged; }, + _getPT(pt, key = '', callback) { + const _usept = pt?.['_usept']; + + const getValue = (value) => { + const computedValue = callback ? callback(value) : value; + + return computedValue?.[ObjectUtils.toFlatCase(key)] ?? computedValue; + }; + + return ObjectUtils.isNotEmpty(_usept) + ? { + _usept, + originalValue: getValue(pt.originalValue), + value: getValue(pt.value) + } + : getValue(pt); + }, + _usePT(pt, callback, key, params) { + const fn = (value) => callback(value, key, params); + + if (pt?.hasOwnProperty('_usept')) { + const { merge, useMergeProps } = pt['_usept']; + const originalValue = fn(pt.originalValue); + const value = fn(pt.value); + + if (originalValue === undefined && value === undefined) return undefined; + else if (ObjectUtils.isString(value)) return value; + else if (ObjectUtils.isString(originalValue)) return originalValue; + + return merge ? (useMergeProps ? mergeProps(originalValue, value) : { ...originalValue, ...value }) : value; + } + + return fn(pt); + }, + _useDefaultPT(defaultPT = {}, callback, key, params) { + return BaseDirective._usePT(defaultPT, callback, key, params); + }, _hook: (directiveName, hookName, el, binding, vnode, prevVnode) => { const name = `on${ObjectUtils.toCapitalCase(hookName)}`; const config = binding?.instance?.$primevue?.config; - const selfHook = binding?.value?.pt?.hooks?.[name]; - const globalHook = config?.pt?.directives?.[directiveName]?.hooks?.[name]; + const selfHook = BaseDirective._usePT(BaseDirective._getPT(binding?.value?.pt, directiveName), BaseDirective._getOptionValue, `hooks.${name}`); + const defaultHook = BaseDirective._useDefaultPT(config?.pt?.directives?.[directiveName], BaseDirective._getOptionValue, `hooks.${name}`); const options = { el, binding, vnode, prevVnode }; selfHook?.(el?.$instance, options); - globalHook?.(el?.$instance, options); + defaultHook?.(el?.$instance, options); }, _extend: (name, options = {}) => { const handleHook = (hook, el, binding, vnode, prevVnode) => { @@ -59,7 +96,7 @@ const BaseDirective = { $css: { classes: undefined, inlineStyles: undefined, loadStyle: () => {}, ...options?.css }, $config: config, /* computed instance variables */ - defaultPT: config?.pt?.directives?.[name], + defaultPT: BaseDirective._getPT(config?.pt, undefined, (value) => value?.directives?.[name]), isUnstyled: el.unstyled !== undefined ? el.unstyled : config?.unstyled, /* instance's methods */ ptm: (key = '', params = {}) => BaseDirective._getPTValue(el.$instance, el.$instance?.$binding?.value?.pt, key, { ...params }), diff --git a/components/lib/blockui/BlockUI.d.ts b/components/lib/blockui/BlockUI.d.ts index 9da5c5e59..5011d6ce3 100755 --- a/components/lib/blockui/BlockUI.d.ts +++ b/components/lib/blockui/BlockUI.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type BlockUIPassThroughOptionType = BlockUIPassThroughAttributes | ((options: BlockUIPassThroughMethodOptions) => BlockUIPassThroughAttributes | string) | string | null | undefined; @@ -88,7 +88,7 @@ export interface BlockUIProps { * Used to pass attributes to DOM elements inside the component. * @type {BlockUIPassThroughOptions} */ - pt?: BlockUIPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/breadcrumb/Breadcrumb.d.ts b/components/lib/breadcrumb/Breadcrumb.d.ts index b002d000f..d93a6c6b5 100755 --- a/components/lib/breadcrumb/Breadcrumb.d.ts +++ b/components/lib/breadcrumb/Breadcrumb.d.ts @@ -10,7 +10,7 @@ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type BreadcrumbPassThroughOptionType = BreadcrumbPassThroughAttributes | ((options: BreadcrumbPassThroughMethodOptions) => BreadcrumbPassThroughAttributes | string) | string | null | undefined; @@ -117,7 +117,7 @@ export interface BreadcrumbProps { * Used to pass attributes to DOM elements inside the component. * @type {BreadcrumbPassThroughOptions} */ - pt?: BreadcrumbPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/button/Button.d.ts b/components/lib/button/Button.d.ts index 5c90d7a6b..0138f94fe 100755 --- a/components/lib/button/Button.d.ts +++ b/components/lib/button/Button.d.ts @@ -9,7 +9,7 @@ */ import { ButtonHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions) => ButtonPassThroughAttributes | string) | string | null | undefined; @@ -150,7 +150,7 @@ export interface ButtonProps extends ButtonHTMLAttributes { * Used to pass attributes to DOM elements inside the component. * @type {ButtonPassThroughOptions} */ - pt?: ButtonPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/calendar/Calendar.d.ts b/components/lib/calendar/Calendar.d.ts index eddcb3915..0903037df 100755 --- a/components/lib/calendar/Calendar.d.ts +++ b/components/lib/calendar/Calendar.d.ts @@ -10,7 +10,7 @@ import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptionType } from '../button'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type CalendarPassThroughOptionType = CalendarPassThroughAttributes | ((options: CalendarPassThroughMethodOptions) => CalendarPassThroughAttributes | string) | string | null | undefined; @@ -691,7 +691,7 @@ export interface CalendarProps { * Used to pass attributes to DOM elements inside the component. * @type {CalendarPassThroughOptions} */ - pt?: CalendarPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/card/Card.d.ts b/components/lib/card/Card.d.ts index fa32e8971..7572702d8 100755 --- a/components/lib/card/Card.d.ts +++ b/components/lib/card/Card.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type CardPassThroughOptionType = CardPassThroughAttributes | null | undefined; @@ -68,7 +68,7 @@ export interface CardProps { * Used to pass attributes to DOM elements inside the component. * @type {CardPassThroughOptions} */ - pt?: CardPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/carousel/Carousel.d.ts b/components/lib/carousel/Carousel.d.ts index b207ba446..731a5165c 100755 --- a/components/lib/carousel/Carousel.d.ts +++ b/components/lib/carousel/Carousel.d.ts @@ -9,7 +9,7 @@ */ import { ButtonHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type CarouselPassThroughOptionType = CarouselPassThroughAttributes | ((options: CarouselPassThroughMethodOptions) => CarouselPassThroughAttributes | string) | string | null | undefined; @@ -274,7 +274,7 @@ export interface CarouselProps { * Used to pass attributes to DOM elements inside the component. * @type {CarouselPassThroughOptions} */ - pt?: CarouselPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/cascadeselect/CascadeSelect.d.ts b/components/lib/cascadeselect/CascadeSelect.d.ts index 078a739ed..32119e8e5 100644 --- a/components/lib/cascadeselect/CascadeSelect.d.ts +++ b/components/lib/cascadeselect/CascadeSelect.d.ts @@ -9,7 +9,7 @@ */ import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type CascadeSelectPassThroughOptionType = CascadeSelectPassThroughAttributes | ((options: CascadeSelectPassThroughMethodOptions) => CascadeSelectPassThroughAttributes | string) | string | null | undefined; @@ -325,7 +325,7 @@ export interface CascadeSelectProps { * Used to pass attributes to DOM elements inside the component. * @type {CascadeSelectPassThroughOptions} */ - pt?: CascadeSelectPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/chart/Chart.d.ts b/components/lib/chart/Chart.d.ts index 7479ec095..5550e8706 100755 --- a/components/lib/chart/Chart.d.ts +++ b/components/lib/chart/Chart.d.ts @@ -9,7 +9,7 @@ */ import { CanvasHTMLAttributes } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ChartPassThroughOptionType = ChartPassThroughAttributes | ((options: ChartPassThroughMethodOptions) => ChartPassThroughAttributes | string) | string | null | undefined; @@ -105,7 +105,7 @@ export interface ChartProps { * Used to pass attributes to DOM elements inside the component. * @type {ChartPassThroughOptions} */ - pt?: ChartPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/checkbox/Checkbox.d.ts b/components/lib/checkbox/Checkbox.d.ts index 0dcc43860..053968ba1 100755 --- a/components/lib/checkbox/Checkbox.d.ts +++ b/components/lib/checkbox/Checkbox.d.ts @@ -9,7 +9,7 @@ */ import { InputHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type CheckboxPassThroughOptionType = CheckboxPassThroughAttributes | ((options: CheckboxPassThroughMethodOptions) => CheckboxPassThroughAttributes | string) | string | null | undefined; @@ -151,7 +151,7 @@ export interface CheckboxProps { * Used to pass attributes to DOM elements inside the component. * @type {CheckboxPassThroughOptions} */ - pt?: CheckboxPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/chip/Chip.d.ts b/components/lib/chip/Chip.d.ts index 582bd6988..760fd44b6 100644 --- a/components/lib/chip/Chip.d.ts +++ b/components/lib/chip/Chip.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ChipPassThroughOptionType = ChipPassThroughAttributes | ((options: ChipPassThroughMethodOptions) => ChipPassThroughAttributes | string) | string | null | undefined; @@ -103,7 +103,7 @@ export interface ChipProps { * Used to pass attributes to DOM elements inside the component. * @type {ChipPassThroughOptions} */ - pt?: ChipPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/chips/Chips.d.ts b/components/lib/chips/Chips.d.ts index 74e47f1c2..45e1e16d6 100755 --- a/components/lib/chips/Chips.d.ts +++ b/components/lib/chips/Chips.d.ts @@ -9,7 +9,7 @@ */ import { InputHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ChipsPassThroughOptionType = ChipsPassThroughAttributes | ((options: ChipsPassThroughMethodOptions) => ChipsPassThroughAttributes | string) | string | null | undefined; @@ -182,7 +182,7 @@ export interface ChipsProps { * Used to pass attributes to DOM elements inside the component. * @type {ChipsPassThroughOptions} */ - pt?: ChipsPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/colorpicker/ColorPicker.d.ts b/components/lib/colorpicker/ColorPicker.d.ts index 0e36a6f8f..9a8f4aca9 100755 --- a/components/lib/colorpicker/ColorPicker.d.ts +++ b/components/lib/colorpicker/ColorPicker.d.ts @@ -9,7 +9,7 @@ */ import { TransitionProps } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ColorPickerPassThroughOptionType = ColorPickerPassThroughAttributes | ((options: ColorPickerPassThroughMethodOptions) => ColorPickerPassThroughAttributes | string) | string | null | undefined; @@ -164,7 +164,7 @@ export interface ColorPickerProps { * Used to pass attributes to DOM elements inside the component. * @type {ColorPickerPassThroughOptions} */ - pt?: ColorPickerPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/column/Column.d.ts b/components/lib/column/Column.d.ts index 2a741b8d2..5700ba893 100755 --- a/components/lib/column/Column.d.ts +++ b/components/lib/column/Column.d.ts @@ -14,7 +14,7 @@ import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptionType } from '../button'; import { DataTablePassThroughOptions } from '../datatable'; import { DropdownPassThroughOptionType } from '../dropdown'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; import { VirtualScrollerLoaderOptions } from '../virtualscroller'; export declare type ColumnPassThroughOptionType = ColumnPassThroughAttributes | ((options: ColumnPassThroughMethodOptions) => ColumnPassThroughAttributes | string) | string | null | undefined; @@ -567,7 +567,7 @@ export interface ColumnProps { * Used to pass attributes to DOM elements inside the component. * @type {ColumnPassThroughOptions} */ - pt?: ColumnPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/columngroup/ColumnGroup.d.ts b/components/lib/columngroup/ColumnGroup.d.ts index 995dbb8e6..27db36a07 100755 --- a/components/lib/columngroup/ColumnGroup.d.ts +++ b/components/lib/columngroup/ColumnGroup.d.ts @@ -7,7 +7,7 @@ */ import { ComponentHooks } from '../basecomponent'; import { DataTablePassThroughOptions } from '../datatable'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ColumnGroupPassThroughOptionType = ColumnGroupPassThroughAttributes | ((options: ColumnGroupPassThroughMethodOptions) => ColumnGroupPassThroughAttributes | string) | string | null | undefined; @@ -56,7 +56,7 @@ export interface ColumnGroupProps { * Used to pass attributes to DOM elements inside the component. * @type {ColumnGroupPassThroughOptions} */ - pt?: ColumnGroupPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/config/PrimeVue.d.ts b/components/lib/config/PrimeVue.d.ts index 018ea43ab..00645b426 100644 --- a/components/lib/config/PrimeVue.d.ts +++ b/components/lib/config/PrimeVue.d.ts @@ -92,7 +92,7 @@ import { TreePassThroughOptions } from '../tree'; import { TreeSelectPassThroughOptions } from '../treeselect'; import { TreeTablePassThroughOptions } from '../treetable'; import { TriStateCheckboxPassThroughOptions } from '../tristatecheckbox'; -import { DefaultPTOptions } from '../ts-helpers'; +import { DefaultPTOptions, PTOptions } from '../ts-helpers'; import { VirtualScrollerPassThroughOptions } from '../virtualscroller'; export interface PrimeVueConfiguration { @@ -101,7 +101,7 @@ export interface PrimeVueConfiguration { locale?: PrimeVueLocaleOptions; filterMatchModeOptions?: any; zIndex?: PrimeVueZIndexOptions; - pt?: PrimeVuePTOptions; + pt?: PTOptions; unstyled?: boolean; csp?: PrimeVueCSPOptions; } diff --git a/components/lib/confirmdialog/ConfirmDialog.d.ts b/components/lib/confirmdialog/ConfirmDialog.d.ts index 523e5c72b..e30bc3ee4 100644 --- a/components/lib/confirmdialog/ConfirmDialog.d.ts +++ b/components/lib/confirmdialog/ConfirmDialog.d.ts @@ -11,7 +11,7 @@ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptions } from '../button'; import { ConfirmationOptions } from '../confirmationoptions'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ConfirmDialogPassThroughOptionType = ConfirmDialogPassThroughAttributes | ((options: ConfirmDialogPassThroughMethodOptions) => ConfirmDialogPassThroughAttributes | string) | string | null | undefined; @@ -152,7 +152,7 @@ export interface ConfirmDialogProps { * Used to pass attributes to DOM elements inside the component. * @type {ConfirmDialogPassThroughOptions} */ - pt?: ConfirmDialogPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/confirmpopup/ConfirmPopup.d.ts b/components/lib/confirmpopup/ConfirmPopup.d.ts index 0ba1c2121..fa400c89c 100644 --- a/components/lib/confirmpopup/ConfirmPopup.d.ts +++ b/components/lib/confirmpopup/ConfirmPopup.d.ts @@ -11,7 +11,7 @@ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptions } from '../button'; import { ConfirmationOptions } from '../confirmationoptions'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ConfirmPopupPassThroughOptionType = ConfirmPopupPassThroughAttributes | ((options: ConfirmPopupPassThroughMethodOptions) => ConfirmPopupPassThroughAttributes | string) | string | null | undefined; @@ -106,7 +106,7 @@ export interface ConfirmPopupProps { * Used to pass attributes to DOM elements inside the component. * @type {ConfirmPopupPassThroughOptions} */ - pt?: ConfirmPopupPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/contextmenu/ContextMenu.d.ts b/components/lib/contextmenu/ContextMenu.d.ts index fed03e31f..a85b4f92f 100755 --- a/components/lib/contextmenu/ContextMenu.d.ts +++ b/components/lib/contextmenu/ContextMenu.d.ts @@ -11,7 +11,7 @@ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ContextMenuPassThroughOptionType = ContextMenuPassThroughAttributes | ((options: ContextMenuPassThroughMethodOptions) => ContextMenuPassThroughAttributes | string) | string | null | undefined; @@ -216,7 +216,7 @@ export interface ContextMenuProps { * Used to pass attributes to DOM elements inside the component. * @type {ContextMenuPassThroughOptions} */ - pt?: ContextMenuPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/datatable/DataTable.d.ts b/components/lib/datatable/DataTable.d.ts index 20d54ecde..a74c73358 100755 --- a/components/lib/datatable/DataTable.d.ts +++ b/components/lib/datatable/DataTable.d.ts @@ -13,7 +13,7 @@ import { ColumnPassThroughOptionType } from '../column'; import { ColumnGroupPassThroughOptionType } from '../columngroup'; import { PaginatorPassThroughOptionType } from '../paginator'; import { RowPassThroughOptionType } from '../row'; -import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, Nullable, PTOptions } from '../ts-helpers'; import { VirtualScrollerPassThroughOptionType, VirtualScrollerProps } from '../virtualscroller'; export declare type DataTablePassThroughOptionType = DataTablePassThroughAttributes | ((options: DataTablePassThroughMethodOptions) => DataTablePassThroughAttributes | string) | string | null | undefined; @@ -1069,7 +1069,7 @@ export interface DataTableProps { * Used to pass attributes to DOM elements inside the component. * @type {DataTablePassThroughOptions} */ - pt?: DataTablePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/dataview/DataView.d.ts b/components/lib/dataview/DataView.d.ts index 4ac6b0bff..8e61d5260 100755 --- a/components/lib/dataview/DataView.d.ts +++ b/components/lib/dataview/DataView.d.ts @@ -10,7 +10,7 @@ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { PaginatorPassThroughOptionType } from '../paginator'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type DataViewPassThroughOptionType = DataViewPassThroughAttributes | ((options: DataViewPassThroughMethodOptions) => DataViewPassThroughAttributes | string) | string | null | undefined; @@ -212,7 +212,7 @@ export interface DataViewProps { * Used to pass attributes to DOM elements inside the component. * @type {DataViewPassThroughOptions} */ - pt?: DataViewPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/dataviewlayoutoptions/DataViewLayoutOptions.d.ts b/components/lib/dataviewlayoutoptions/DataViewLayoutOptions.d.ts index 3ee97701d..8fe2b62ae 100755 --- a/components/lib/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +++ b/components/lib/dataviewlayoutoptions/DataViewLayoutOptions.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type DataViewLayoutOptionsPassThroughOptionType = | DataViewLayoutOptionsPassThroughAttributes @@ -94,7 +94,7 @@ export interface DataViewLayoutOptionsProps { * Used to pass attributes to DOM elements inside the component. * @type {DataViewLayoutOptionsPassThroughOptions} */ - pt?: DataViewLayoutOptionsPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/deferredcontent/DeferredContent.d.ts b/components/lib/deferredcontent/DeferredContent.d.ts index 636ea323d..6f6ca6343 100755 --- a/components/lib/deferredcontent/DeferredContent.d.ts +++ b/components/lib/deferredcontent/DeferredContent.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type DeferredContentPassThroughOptionType = DeferredContentPassThroughAttributes | ((options: DeferredContentPassThroughMethodOptions) => DeferredContentPassThroughAttributes | string) | string | null | undefined; @@ -64,7 +64,7 @@ export interface DeferredContentProps { * Used to pass attributes to DOM elements inside the component. * @type {DeferredContentPassThroughOptions} */ - pt?: DeferredContentPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/dialog/Dialog.d.ts b/components/lib/dialog/Dialog.d.ts index dbcc3208b..9446d5a5d 100755 --- a/components/lib/dialog/Dialog.d.ts +++ b/components/lib/dialog/Dialog.d.ts @@ -9,7 +9,7 @@ */ import { HTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type DialogPassThroughOptionType = DialogPassThroughAttributes | ((options: DialogPassThroughMethodOptions) => DialogPassThroughAttributes | string) | string | null | undefined; @@ -260,7 +260,7 @@ export interface DialogProps { * Used to pass attributes to DOM elements inside the component. * @type {DialogPassThroughOptions} */ - pt?: DialogPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/divider/Divider.d.ts b/components/lib/divider/Divider.d.ts index 8487bb670..0ceb05ec7 100644 --- a/components/lib/divider/Divider.d.ts +++ b/components/lib/divider/Divider.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type DividerPassThroughOptionType = DividerPassThroughAttributes | ((options: DividerPassThroughMethodOptions) => DividerPassThroughAttributes | string) | string | null | undefined; @@ -70,7 +70,7 @@ export interface DividerProps { * Used to pass attributes to DOM elements inside the component. * @type {DividerPassThroughOptions} */ - pt?: DividerPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/dock/Dock.d.ts b/components/lib/dock/Dock.d.ts index c25cfc58f..e91457f6d 100644 --- a/components/lib/dock/Dock.d.ts +++ b/components/lib/dock/Dock.d.ts @@ -10,7 +10,7 @@ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type DockPassThroughOptionType = DockPassThroughAttributes | ((options: DockPassThroughMethodOptions) => DockPassThroughAttributes | string) | string | null | undefined; @@ -185,7 +185,7 @@ export interface DockProps { * Used to pass attributes to DOM elements inside the component. * @type {DockPassThroughOptions} */ - pt?: DockPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/dropdown/Dropdown.d.ts b/components/lib/dropdown/Dropdown.d.ts index 8618d9096..319a4812d 100755 --- a/components/lib/dropdown/Dropdown.d.ts +++ b/components/lib/dropdown/Dropdown.d.ts @@ -9,7 +9,7 @@ */ import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; import { VirtualScrollerItemOptions, VirtualScrollerPassThroughOptionType, VirtualScrollerProps } from '../virtualscroller'; export declare type DropdownPassThroughOptionType = DropdownPassThroughAttributes | ((options: DropdownPassThroughMethodOptions) => DropdownPassThroughAttributes | string) | string | null | undefined; @@ -409,7 +409,7 @@ export interface DropdownProps { emptyFilterMessage?: string | undefined; /** * Text to display when there are no options available. Defaults to value from PrimeVue locale configuration. - * @defaultValue No results foun + * @defaultValue No results found */ emptyMessage?: string | undefined; /** @@ -428,7 +428,7 @@ export interface DropdownProps { * Used to pass attributes to DOM elements inside the component. * @type {DropdownPassThroughOptions} */ - pt?: DropdownPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/editor/Editor.d.ts b/components/lib/editor/Editor.d.ts index ffa15e817..abaefcdf9 100755 --- a/components/lib/editor/Editor.d.ts +++ b/components/lib/editor/Editor.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type EditorPassThroughOptionType = EditorPassThroughAttributes | ((options: EditorPassThroughMethodOptions) => EditorPassThroughAttributes | string) | string | null | undefined; /** @@ -219,7 +219,7 @@ export interface EditorProps { * Used to pass attributes to DOM elements inside the component. * @type {EditorPassThroughOptions} */ - pt?: EditorPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/fieldset/Fieldset.d.ts b/components/lib/fieldset/Fieldset.d.ts index 4e230be6d..347217f19 100755 --- a/components/lib/fieldset/Fieldset.d.ts +++ b/components/lib/fieldset/Fieldset.d.ts @@ -9,7 +9,7 @@ */ import { AnchorHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type FieldsetPassThroughOptionType = FieldsetPassThroughAttributes | ((options: FieldsetPassThroughMethodOptions) => FieldsetPassThroughAttributes | string) | string | null | undefined; @@ -128,7 +128,7 @@ export interface FieldsetProps { * Used to pass attributes to DOM elements inside the component. * @type {FieldsetPassThroughOptions} */ - pt?: FieldsetPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/fileupload/FileUpload.d.ts b/components/lib/fileupload/FileUpload.d.ts index b8040d75a..3668d328d 100755 --- a/components/lib/fileupload/FileUpload.d.ts +++ b/components/lib/fileupload/FileUpload.d.ts @@ -11,7 +11,7 @@ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptions } from '../button'; import { MessagePassThroughOptions } from '../message'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type FileUploadPassThroughOptionType = FileUploadPassThroughAttributes | ((options: FileUploadPassThroughMethodOptions) => FileUploadPassThroughAttributes | string) | string | null | undefined; @@ -413,7 +413,7 @@ export interface FileUploadProps { * Used to pass attributes to DOM elements inside the component. * @type {FileUploadPassThroughOptions} */ - pt?: FileUploadPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/focustrap/FocusTrap.d.ts b/components/lib/focustrap/FocusTrap.d.ts index dcae082ec..188bc8d7f 100644 --- a/components/lib/focustrap/FocusTrap.d.ts +++ b/components/lib/focustrap/FocusTrap.d.ts @@ -8,6 +8,7 @@ */ import { DirectiveBinding, ObjectDirective } from 'vue'; import { DirectiveHooks } from '../basedirective'; +import { PTOptions } from '../ts-helpers'; export declare type FocusTrapDirectivePassThroughOptionType = FocusTrapDirectivePassThroughAttributes | null | undefined; @@ -29,7 +30,7 @@ export interface FocusTrapOptions { * Used to pass attributes to DOM elements inside the component. * @type {FocusTrapDirectivePassThroughOptions} */ - pt?: FocusTrapDirectivePassThroughOptions; + pt?: PTOptions; } /** diff --git a/components/lib/galleria/Galleria.d.ts b/components/lib/galleria/Galleria.d.ts index 16b84cd6a..29ff68f31 100755 --- a/components/lib/galleria/Galleria.d.ts +++ b/components/lib/galleria/Galleria.d.ts @@ -9,7 +9,7 @@ */ import { ButtonHTMLAttributes, HTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type GalleriaPassThroughOptionType = GalleriaPassThroughAttributes | ((options: GalleriaPassThroughMethodOptions) => GalleriaPassThroughAttributes | string) | string | null | undefined; @@ -377,7 +377,7 @@ export interface GalleriaProps { * Used to pass attributes to DOM elements inside the component. * @type {GalleriaPassThroughOptions} */ - pt?: GalleriaPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/image/Image.d.ts b/components/lib/image/Image.d.ts index 06014aa54..ae868f5d3 100644 --- a/components/lib/image/Image.d.ts +++ b/components/lib/image/Image.d.ts @@ -9,7 +9,7 @@ */ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ImagePassThroughOptionType = ImagePassThroughAttributes | ((options: ImagePassThroughMethodOptions) => ImagePassThroughAttributes | string) | string | null | undefined; @@ -181,7 +181,7 @@ export interface ImageProps { * Used to pass attributes to DOM elements inside the component. * @type {ImagePassThroughOptions} */ - pt?: ImagePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/inlinemessage/InlineMessage.d.ts b/components/lib/inlinemessage/InlineMessage.d.ts index e235330ef..1b8f9e78b 100755 --- a/components/lib/inlinemessage/InlineMessage.d.ts +++ b/components/lib/inlinemessage/InlineMessage.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type InlineMessagePassThroughOptionType = InlineMessagePassThroughAttributes | ((options: InlineMessagePassThroughMethodOptions) => InlineMessagePassThroughAttributes | string) | string | null | undefined; @@ -82,7 +82,7 @@ export interface InlineMessageProps { * Used to pass attributes to DOM elements inside the component. * @type {InlineMessagePassThroughOptions} */ - pt?: InlineMessagePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/inplace/Inplace.d.ts b/components/lib/inplace/Inplace.d.ts index 3539b67f6..ba2ac0308 100755 --- a/components/lib/inplace/Inplace.d.ts +++ b/components/lib/inplace/Inplace.d.ts @@ -11,7 +11,7 @@ import { ButtonHTMLAttributes, HTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptions } from '../button'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type InplacePassThroughOptionType = InplacePassThroughAttributes | ((options: InplacePassThroughMethodOptions) => InplacePassThroughAttributes | string) | string | null | undefined; @@ -107,7 +107,7 @@ export interface InplaceProps { * Used to pass attributes to DOM elements inside the component. * @type {InplacePassThroughOptions} */ - pt?: InplacePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/inputmask/InputMask.d.ts b/components/lib/inputmask/InputMask.d.ts index 2434923e2..4d4dd93db 100755 --- a/components/lib/inputmask/InputMask.d.ts +++ b/components/lib/inputmask/InputMask.d.ts @@ -8,7 +8,7 @@ * */ import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type InputMaskPassThroughOptionType = InputMaskPassThroughAttributes | ((options: InputMaskPassThroughMethodOptions) => InputMaskPassThroughAttributes | string) | string | null | undefined; @@ -96,7 +96,7 @@ export interface InputMaskProps { * Used to pass attributes to DOM elements inside the component. * @type {InputMaskPassThroughOptions} */ - pt?: InputMaskPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/inputnumber/InputNumber.d.ts b/components/lib/inputnumber/InputNumber.d.ts index a91b03629..0868f1774 100755 --- a/components/lib/inputnumber/InputNumber.d.ts +++ b/components/lib/inputnumber/InputNumber.d.ts @@ -11,7 +11,7 @@ import { ButtonHTMLAttributes, InputHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptionType } from '../button'; import { InputTextPassThroughOptionType } from '../inputtext'; -import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, Nullable, PTOptions } from '../ts-helpers'; export declare type InputNumberPassThroughOptionType = InputNumberPassThroughAttributes | ((options: InputNumberPassThroughMethodOptions) => InputNumberPassThroughAttributes | string) | string | null | undefined; @@ -273,7 +273,7 @@ export interface InputNumberProps { * Used to pass attributes to DOM elements inside the component. * @type {InputNumberPassThroughOptions} */ - pt?: InputNumberPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/inputswitch/InputSwitch.d.ts b/components/lib/inputswitch/InputSwitch.d.ts index b365019ee..6606b4dfa 100755 --- a/components/lib/inputswitch/InputSwitch.d.ts +++ b/components/lib/inputswitch/InputSwitch.d.ts @@ -9,7 +9,7 @@ */ import { InputHTMLAttributes } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type InputSwitchPassThroughOptionType = InputSwitchPassThroughAttributes | ((options: InputSwitchPassThroughMethodOptions) => InputSwitchPassThroughAttributes | string) | string | null | undefined; @@ -115,7 +115,7 @@ export interface InputSwitchProps { * Used to pass attributes to DOM elements inside the component. * @type {InputSwitchPassThroughOptions} */ - pt?: InputSwitchPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/inputtext/InputText.d.ts b/components/lib/inputtext/InputText.d.ts index 22319d3ba..82155678e 100755 --- a/components/lib/inputtext/InputText.d.ts +++ b/components/lib/inputtext/InputText.d.ts @@ -9,7 +9,7 @@ */ import { InputHTMLAttributes } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, Nullable, PTOptions } from '../ts-helpers'; export declare type InputTextPassThroughOptionType = InputTextPassThroughAttributes | ((options: InputTextPassThroughMethodOptions) => InputTextPassThroughAttributes | string) | string | null | undefined; @@ -77,7 +77,7 @@ export interface InputTextProps extends InputHTMLAttributes { * Used to pass attributes to DOM elements inside the component. * @type {InputTextPassThroughOptions} */ - pt?: InputTextPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/knob/Knob.d.ts b/components/lib/knob/Knob.d.ts index 0692af780..425b1d237 100644 --- a/components/lib/knob/Knob.d.ts +++ b/components/lib/knob/Knob.d.ts @@ -8,7 +8,7 @@ * */ import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type KnobPassThroughOptionType = KnobPassThroughAttributes | ((options: KnobPassThroughMethodOptions) => KnobPassThroughAttributes | string) | string | null | undefined; @@ -174,7 +174,7 @@ export interface KnobProps { * Used to pass attributes to DOM elements inside the component. * @type {KnobPassThroughOptions} */ - pt?: KnobPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/listbox/Listbox.d.ts b/components/lib/listbox/Listbox.d.ts index ad4ee2a60..c57f1d686 100755 --- a/components/lib/listbox/Listbox.d.ts +++ b/components/lib/listbox/Listbox.d.ts @@ -9,7 +9,7 @@ */ import { InputHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; import { VirtualScrollerItemOptions, VirtualScrollerPassThroughOptionType, VirtualScrollerProps } from '../virtualscroller'; export declare type ListboxPassThroughOptionType = ListboxPassThroughAttributes | ((options: ListboxPassThroughMethodOptions) => ListboxPassThroughAttributes | string) | string | null | undefined; @@ -322,7 +322,7 @@ export interface ListboxProps { * Used to pass attributes to DOM elements inside the component. * @type {ListboxPassThroughOptions} */ - pt?: ListboxPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/megamenu/MegaMenu.d.ts b/components/lib/megamenu/MegaMenu.d.ts index d491638ab..02a0f951b 100755 --- a/components/lib/megamenu/MegaMenu.d.ts +++ b/components/lib/megamenu/MegaMenu.d.ts @@ -10,7 +10,7 @@ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type MegaMenuPassThroughOptionType = MegaMenuPassThroughAttributes | ((options: MegaMenuPassThroughMethodOptions) => MegaMenuPassThroughAttributes | string) | string | null | undefined; @@ -213,7 +213,7 @@ export interface MegaMenuProps { * Used to pass attributes to DOM elements inside the component. * @type {MegaMenuPassThroughOptions} */ - pt?: MegaMenuPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/menu/Menu.d.ts b/components/lib/menu/Menu.d.ts index 11179a85d..75ae6422f 100755 --- a/components/lib/menu/Menu.d.ts +++ b/components/lib/menu/Menu.d.ts @@ -10,7 +10,7 @@ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type MenuPassThroughOptionType = MenuPassThroughAttributes | ((options: MenuPassThroughMethodOptions) => MenuPassThroughAttributes | string) | string | null | undefined; @@ -189,7 +189,7 @@ export interface MenuProps { * Used to pass attributes to DOM elements inside the component. * @type {MenuPassThroughOptions} */ - pt?: MenuPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/menubar/Menubar.d.ts b/components/lib/menubar/Menubar.d.ts index 26cf9d710..94d81cd9f 100755 --- a/components/lib/menubar/Menubar.d.ts +++ b/components/lib/menubar/Menubar.d.ts @@ -10,7 +10,7 @@ import { ButtonHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type MenubarPassThroughOptionType = MenubarPassThroughAttributes | ((options: MenubarPassThroughMethodOptions) => MenubarPassThroughAttributes | string) | string | null | undefined; @@ -204,7 +204,7 @@ export interface MenubarProps { * Used to pass attributes to DOM elements inside the component. * @type {MenubarPassThroughOptions} */ - pt?: MenubarPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/message/Message.d.ts b/components/lib/message/Message.d.ts index 7ceac9f6b..75aaff804 100755 --- a/components/lib/message/Message.d.ts +++ b/components/lib/message/Message.d.ts @@ -9,7 +9,7 @@ */ import { ButtonHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type MessagePassThroughOptionType = MessagePassThroughAttributes | ((options: MessagePassThroughMethodOptions) => MessagePassThroughAttributes | string) | string | null | undefined; @@ -133,7 +133,7 @@ export interface MessageProps { * Used to pass attributes to DOM elements inside the component. * @type {MessagePassThroughOptions} */ - pt?: MessagePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/multiselect/MultiSelect.d.ts b/components/lib/multiselect/MultiSelect.d.ts index 53a341e8d..77b4d9e2b 100755 --- a/components/lib/multiselect/MultiSelect.d.ts +++ b/components/lib/multiselect/MultiSelect.d.ts @@ -9,7 +9,7 @@ */ import { ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; import { VirtualScrollerItemOptions, VirtualScrollerPassThroughOptionType, VirtualScrollerProps } from '../virtualscroller'; export declare type MultiSelectPassThroughOptionType = MultiSelectPassThroughAttributes | ((options: MultiSelectPassThroughMethodOptions) => MultiSelectPassThroughAttributes | string) | string | null | undefined; @@ -510,7 +510,7 @@ export interface MultiSelectProps { * Used to pass attributes to DOM elements inside the component. * @type {MultiSelectPassThroughOptions} */ - pt?: MultiSelectPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/orderlist/OrderList.d.ts b/components/lib/orderlist/OrderList.d.ts index 5e4d14947..74bc1bc4d 100755 --- a/components/lib/orderlist/OrderList.d.ts +++ b/components/lib/orderlist/OrderList.d.ts @@ -10,7 +10,7 @@ import { ButtonHTMLAttributes, HTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptionType } from '../button'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type OrderListPassThroughOptionType = OrderListPassThroughAttributes | ((options: OrderListPassThroughMethodOptions) => OrderListPassThroughAttributes | string) | string | null | undefined; @@ -240,7 +240,7 @@ export interface OrderListProps { * Used to pass attributes to DOM elements inside the component. * @type {OrderListPassThroughOptions} */ - pt?: OrderListPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/organizationchart/OrganizationChart.d.ts b/components/lib/organizationchart/OrganizationChart.d.ts index 22de12e17..e5b10a0c5 100755 --- a/components/lib/organizationchart/OrganizationChart.d.ts +++ b/components/lib/organizationchart/OrganizationChart.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type OrganizationChartPassThroughOptionType = OrganizationChartPassThroughAttributes | ((options: OrganizationChartPassThroughMethodOptions) => OrganizationChartPassThroughAttributes | string) | string | null | undefined; @@ -224,7 +224,7 @@ export interface OrganizationChartProps { * Used to pass attributes to DOM elements inside the component. * @type {OrganizationChartPassThroughOptions} */ - pt?: OrganizationChartPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/overlaypanel/OverlayPanel.d.ts b/components/lib/overlaypanel/OverlayPanel.d.ts index b2609bd33..de3f8c8a7 100755 --- a/components/lib/overlaypanel/OverlayPanel.d.ts +++ b/components/lib/overlaypanel/OverlayPanel.d.ts @@ -9,7 +9,7 @@ */ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type OverlayPanelPassThroughOptionType = OverlayPanelPassThroughAttributes | ((options: OverlayPanelPassThroughMethodOptions) => OverlayPanelPassThroughAttributes | string) | string | null | undefined; @@ -138,7 +138,7 @@ export interface OverlayPanelProps { * Used to pass attributes to DOM elements inside the component. * @type {OverlayPanelPassThroughOptions} */ - pt?: OverlayPanelPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/paginator/Paginator.d.ts b/components/lib/paginator/Paginator.d.ts index 0d4e885f4..e3d0996ae 100755 --- a/components/lib/paginator/Paginator.d.ts +++ b/components/lib/paginator/Paginator.d.ts @@ -11,7 +11,7 @@ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { DropdownPassThroughOptionType } from '../dropdown'; import { InputNumberPassThroughOptionType } from '../inputnumber'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type PaginatorPassThroughOptionType = PaginatorPassThroughAttributes | ((options: PaginatorPassThroughMethodOptions) => PaginatorPassThroughAttributes | string) | string | null | undefined; @@ -235,7 +235,7 @@ export interface PaginatorProps { * Used to pass attributes to DOM elements inside the component. * @type {PaginatorPassThroughOptions} */ - pt?: PaginatorPassThroughOptions; + pt?: PTOptions; } /** diff --git a/components/lib/panel/Panel.d.ts b/components/lib/panel/Panel.d.ts index d19e902fa..f314f91e2 100755 --- a/components/lib/panel/Panel.d.ts +++ b/components/lib/panel/Panel.d.ts @@ -9,7 +9,7 @@ */ import { ButtonHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type PanelPassThroughOptionType = PanelPassThroughAttributes | ((options: PanelPassThroughMethodOptions) => PanelPassThroughAttributes | string) | string | null | undefined; @@ -136,7 +136,7 @@ export interface PanelProps { * Used to pass attributes to DOM elements inside the component. * @type {PanelPassThroughOptions} */ - pt?: PanelPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/panelmenu/PanelMenu.d.ts b/components/lib/panelmenu/PanelMenu.d.ts index 2f3c667c9..6430da981 100755 --- a/components/lib/panelmenu/PanelMenu.d.ts +++ b/components/lib/panelmenu/PanelMenu.d.ts @@ -10,7 +10,7 @@ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type PanelMenuPassThroughOptionType = PanelMenuPassThroughAttributes | ((options: PanelMenuPassThroughMethodOptions) => PanelMenuPassThroughAttributes | string) | string | null | undefined; @@ -217,7 +217,7 @@ export interface PanelMenuProps { * Used to pass attributes to DOM elements inside the component. * @type {PanelMenuPassThroughOptions} */ - pt?: PanelMenuPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/passthrough/index.d.ts b/components/lib/passthrough/index.d.ts index eaee6b5c0..597fc6388 100644 --- a/components/lib/passthrough/index.d.ts +++ b/components/lib/passthrough/index.d.ts @@ -1,15 +1,6 @@ -export interface CustomizerOptions { - key?: string | undefined; - to?: object | undefined; - from?: object | undefined; - value?: any; -} - export interface usePassThroughOptions { merge?: boolean | undefined; useMergeProps?: boolean | undefined; - ignoredKeysOnMerge?: string[] | undefined; - customizer?: ((options?: CustomizerOptions) => any) | undefined; } export declare function usePassThrough(pt1: object, pt2: object, options?: usePassThroughOptions): object; diff --git a/components/lib/passthrough/index.js b/components/lib/passthrough/index.js index 4c63d173b..d8c913f77 100644 --- a/components/lib/passthrough/index.js +++ b/components/lib/passthrough/index.js @@ -1,46 +1,17 @@ -import { ObjectUtils } from 'primevue/utils'; -import { mergeProps } from 'vue'; - -export const usePassThrough = (pt1 = {}, pt2 = {}, { merge = true, useMergeProps = false, ignoredKeysOnMerge = [], customizer = undefined } = {}) => { - const newPT = { ...pt1 }; - - if (merge) { - const getPTClassValue = (value) => (ObjectUtils.isString(value) || ObjectUtils.isArray(value) ? { class: value } : value); - - const setOptionValue = (to, from, nestedKey, ignoredKey) => { - const keys = nestedKey.split('.'); - const key = keys.shift(); - const getValue = (value) => (ObjectUtils.isFunction(customizer) ? customizer({ key, to, from, value }) : value); - - if (!!ignoredKey && ignoredKey.endsWith(key)) { - !!key && (to[key] = getValue(from[key])); - } else { - const matched = [Object.keys(to[key] || {}), Object.keys(from[key] || {})].flat().some((k) => k.match(/^(class|style|on(.+))/)); - - if (matched) { - to[key] = getValue(useMergeProps ? mergeProps(getPTClassValue(to[key]), getPTClassValue(from[key])) : { ...getPTClassValue(to[key]), ...getPTClassValue(from[key]) }); - } else if (ObjectUtils.isNotEmpty(from[key])) { - to[key] = { ...to[key] }; - setOptionValue(to[key], from[key], keys.join('.'), ignoredKey); - } else if (!!key) { - to[key] = getValue(from[key]); - } - } - }; - - const nestedKeys = ObjectUtils.nestedKeys(pt2); - - nestedKeys.forEach((nestedKey) => { - setOptionValue( - newPT, - pt2, - nestedKey, - ignoredKeysOnMerge.find((k) => (k.indexOf('.') > 0 ? nestedKey.startsWith(k) : nestedKey.split('.')[0] === k)) - ); - }); - } else { - Object.keys(pt2).forEach((key) => (newPT[key] = pt2[key])); - } - - return newPT; +/** + * @todo: Add dynamic params support; + * + * Exp; + * usePassThrough(pt1, pt2, pt3, pt*, { merge: true }); + * usePassThrough(pt1, { merge: true }); + */ +export const usePassThrough = (pt1 = {}, pt2 = {}, { merge = true, useMergeProps = true } = {}) => { + return { + _usept: { + merge, + useMergeProps + }, + originalValue: pt1, + value: pt2 + }; }; diff --git a/components/lib/password/Password.d.ts b/components/lib/password/Password.d.ts index b762aa971..faf2083b6 100755 --- a/components/lib/password/Password.d.ts +++ b/components/lib/password/Password.d.ts @@ -10,7 +10,7 @@ import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { InputTextPassThroughOptionType } from '../inputtext'; -import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, Nullable, PTOptions } from '../ts-helpers'; export declare type PasswordPassThroughOptionType = PasswordPassThroughAttributes | ((options: PasswordPassThroughMethodOptions) => PasswordPassThroughAttributes | string) | string | null | undefined; @@ -243,7 +243,7 @@ export interface PasswordProps extends InputHTMLAttributes { * Used to pass attributes to DOM elements inside the component. * @type {PasswordPassThroughOptions} */ - pt?: PasswordPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/picklist/PickList.d.ts b/components/lib/picklist/PickList.d.ts index 1713633b7..9d129309c 100755 --- a/components/lib/picklist/PickList.d.ts +++ b/components/lib/picklist/PickList.d.ts @@ -10,7 +10,7 @@ import { ButtonHTMLAttributes, HTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptionType } from '../button'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type PickListPassThroughOptionType = PickListPassThroughAttributes | ((options: PickListPassThroughMethodOptions) => PickListPassThroughAttributes | string) | string | null | undefined; @@ -373,7 +373,7 @@ export interface PickListProps { * Used to pass attributes to DOM elements inside the component. * @type {PickListPassThroughOptions} */ - pt?: PickListPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/progressbar/ProgressBar.d.ts b/components/lib/progressbar/ProgressBar.d.ts index cf748167d..1c829e14f 100755 --- a/components/lib/progressbar/ProgressBar.d.ts +++ b/components/lib/progressbar/ProgressBar.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ProgressBarPassThroughOptionType = ProgressBarPassThroughAttributes | ((options: ProgressBarPassThroughMethodOptions) => ProgressBarPassThroughAttributes | string) | string | null | undefined; @@ -74,7 +74,7 @@ export interface ProgressBarProps { * Used to pass attributes to DOM elements inside the component. * @type {ProgressBarPassThroughOptions} */ - pt?: ProgressBarPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/progressspinner/ProgressSpinner.d.ts b/components/lib/progressspinner/ProgressSpinner.d.ts index 8a05f75c9..6b2b69887 100755 --- a/components/lib/progressspinner/ProgressSpinner.d.ts +++ b/components/lib/progressspinner/ProgressSpinner.d.ts @@ -8,7 +8,7 @@ * */ import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ProgressSpinnerPassThroughOptionType = ProgressSpinnerPassThroughAttributes | ((options: ProgressSpinnerPassThroughMethodOptions) => ProgressSpinnerPassThroughAttributes | string) | string | null | undefined; @@ -73,7 +73,7 @@ export interface ProgressSpinnerProps { * Used to pass attributes to DOM elements inside the component. * @type {ProgressSpinnerPassThroughOptions} */ - pt?: ProgressSpinnerPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/radiobutton/RadioButton.d.ts b/components/lib/radiobutton/RadioButton.d.ts index 0f44c78b9..630ee691a 100755 --- a/components/lib/radiobutton/RadioButton.d.ts +++ b/components/lib/radiobutton/RadioButton.d.ts @@ -9,7 +9,7 @@ */ import { InputHTMLAttributes } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type RadioButtonPassThroughOptionType = RadioButtonPassThroughAttributes | ((options: RadioButtonPassThroughMethodOptions) => RadioButtonPassThroughAttributes | string) | string | null | undefined; @@ -121,7 +121,7 @@ export interface RadioButtonProps { * Used to pass attributes to DOM elements inside the component. * @type {RadioButtonPassThroughOptions} */ - pt?: RadioButtonPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/rating/Rating.d.ts b/components/lib/rating/Rating.d.ts index 431efc17f..24f7a93f3 100755 --- a/components/lib/rating/Rating.d.ts +++ b/components/lib/rating/Rating.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type RatingPassThroughOptionType = RatingPassThroughAttributes | ((options: RatingPassThroughMethodOptions) => RatingPassThroughAttributes | string) | string | null | undefined; @@ -178,7 +178,7 @@ export interface RatingProps { * Used to pass attributes to DOM elements inside the component. * @type {RatingPassThroughOptions} */ - pt?: RatingPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/ripple/Ripple.d.ts b/components/lib/ripple/Ripple.d.ts index 32ec82046..76c84050f 100644 --- a/components/lib/ripple/Ripple.d.ts +++ b/components/lib/ripple/Ripple.d.ts @@ -8,6 +8,7 @@ */ import { DirectiveBinding, ObjectDirective } from 'vue'; import { DirectiveHooks } from '../basedirective'; +import { PTOptions } from '../ts-helpers'; export declare type RippleDirectivePassThroughOptionType = RippleDirectivePassThroughAttributes | null | undefined; @@ -19,7 +20,7 @@ export interface RippleOptions { * Used to pass attributes to DOM elements inside the component. * @type {RippleDirectivePassThroughOptions} */ - pt?: RippleDirectivePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/scrollpanel/ScrollPanel.d.ts b/components/lib/scrollpanel/ScrollPanel.d.ts index 6c233c3f5..8ceb39db9 100644 --- a/components/lib/scrollpanel/ScrollPanel.d.ts +++ b/components/lib/scrollpanel/ScrollPanel.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ScrollPanelPassThroughOptionType = ScrollPanelPassThroughAttributes | ((options: ScrollPanelPassThroughMethodOptions) => ScrollPanelPassThroughAttributes | string) | string | null | undefined; @@ -99,7 +99,7 @@ export interface ScrollPanelProps { * Used to pass attributes to DOM elements inside the component. * @type {ScrollPanelPassThroughOptions} */ - pt?: ScrollPanelPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/scrolltop/ScrollTop.d.ts b/components/lib/scrolltop/ScrollTop.d.ts index 8134f5a0a..8816f14a4 100644 --- a/components/lib/scrolltop/ScrollTop.d.ts +++ b/components/lib/scrolltop/ScrollTop.d.ts @@ -9,7 +9,7 @@ */ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ScrollTopPassThroughOptionType = ScrollTopPassThroughAttributes | ((options: ScrollTopPassThroughMethodOptions) => ScrollTopPassThroughAttributes | string) | string | null | undefined; @@ -94,7 +94,7 @@ export interface ScrollTopProps { * Used to pass attributes to DOM elements inside the component. * @type {ScrollTopPassThroughOptions} */ - pt?: ScrollTopPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/selectbutton/SelectButton.d.ts b/components/lib/selectbutton/SelectButton.d.ts index b90048cb2..3c5869495 100755 --- a/components/lib/selectbutton/SelectButton.d.ts +++ b/components/lib/selectbutton/SelectButton.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type SelectButtonPassThroughOptionType = SelectButtonPassThroughAttributes | ((options: SelectButtonPassThroughMethodOptions) => SelectButtonPassThroughAttributes | string) | string | null | undefined; @@ -146,7 +146,7 @@ export interface SelectButtonProps { * Used to pass attributes to DOM elements inside the component. * @type {SelectButtonPassThroughOptions} */ - pt?: SelectButtonPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/sidebar/Sidebar.d.ts b/components/lib/sidebar/Sidebar.d.ts index 914324e6c..46fc73530 100755 --- a/components/lib/sidebar/Sidebar.d.ts +++ b/components/lib/sidebar/Sidebar.d.ts @@ -9,7 +9,7 @@ */ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type SidebarPassThroughOptionType = SidebarPassThroughAttributes | ((options: SidebarPassThroughMethodOptions) => SidebarPassThroughAttributes | string) | string | null | undefined; @@ -139,7 +139,7 @@ export interface SidebarProps { * Used to pass attributes to DOM elements inside the component. * @type {SidebarPassThroughOptions} */ - pt?: SidebarPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/skeleton/Skeleton.d.ts b/components/lib/skeleton/Skeleton.d.ts index 940dce931..38da32fbe 100644 --- a/components/lib/skeleton/Skeleton.d.ts +++ b/components/lib/skeleton/Skeleton.d.ts @@ -8,7 +8,7 @@ * */ import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type SkeletonPassThroughOptionType = SkeletonPassThroughAttributes | ((options: SkeletonPassThroughMethodOptions) => SkeletonPassThroughAttributes | string) | string | null | undefined; @@ -79,7 +79,7 @@ export interface SkeletonProps { * Used to pass attributes to DOM elements inside the component. * @type {SkeletonPassThroughOptions} */ - pt?: SkeletonPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/slider/Slider.d.ts b/components/lib/slider/Slider.d.ts index 39619e5a9..ac8529b2c 100755 --- a/components/lib/slider/Slider.d.ts +++ b/components/lib/slider/Slider.d.ts @@ -8,7 +8,7 @@ * */ import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type SliderPassThroughOptionType = SliderPassThroughAttributes | ((options: SliderPassThroughMethodOptions) => SliderPassThroughAttributes | string) | string | null | undefined; @@ -128,7 +128,7 @@ export interface SliderProps { * Used to pass attributes to DOM elements inside the component. * @type {SliderPassThroughOptions} */ - pt?: SliderPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/speeddial/SpeedDial.d.ts b/components/lib/speeddial/SpeedDial.d.ts index 3fb70b99f..f30810ba8 100644 --- a/components/lib/speeddial/SpeedDial.d.ts +++ b/components/lib/speeddial/SpeedDial.d.ts @@ -11,7 +11,7 @@ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptions } from '../button'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type SpeedDialPassThroughOptionType = SpeedDialPassThroughAttributes | ((options: SpeedDialPassThroughMethodOptions) => SpeedDialPassThroughAttributes | string) | string | null | undefined; @@ -239,7 +239,7 @@ export interface SpeedDialProps { * Used to pass attributes to DOM elements inside the component. * @type {SpeedDialPassThroughOptions} */ - pt?: SpeedDialPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/splitbutton/SplitButton.d.ts b/components/lib/splitbutton/SplitButton.d.ts index 30af7dde5..534366bc9 100755 --- a/components/lib/splitbutton/SplitButton.d.ts +++ b/components/lib/splitbutton/SplitButton.d.ts @@ -12,7 +12,7 @@ import { ComponentHooks } from '../basecomponent'; import { ButtonPassThroughOptions } from '../button'; import { MenuItem } from '../menuitem'; import { TieredMenuPassThroughOptions } from '../tieredmenu'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type SplitButtonPassThroughOptionType = SplitButtonPassThroughAttributes | ((options: SplitButtonPassThroughMethodOptions) => SplitButtonPassThroughAttributes | string) | string | null | undefined; @@ -169,7 +169,7 @@ export interface SplitButtonProps { * Used to pass attributes to DOM elements inside the component. * @type {SplitButtonPassThroughOptions} */ - pt?: SplitButtonPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/splitter/Splitter.d.ts b/components/lib/splitter/Splitter.d.ts index 93d6d20b8..95d95d089 100644 --- a/components/lib/splitter/Splitter.d.ts +++ b/components/lib/splitter/Splitter.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type SplitterPassThroughOptionType = SplitterPassThroughAttributes | ((options: SplitterPassThroughMethodOptions) => SplitterPassThroughAttributes | string) | string | null | undefined; @@ -136,7 +136,7 @@ export interface SplitterProps { * Used to pass attributes to DOM elements inside the component. * @type {SplitterPassThroughOptions} */ - pt?: SplitterPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/splitterpanel/SplitterPanel.d.ts b/components/lib/splitterpanel/SplitterPanel.d.ts index 9f286770e..48fef02cc 100644 --- a/components/lib/splitterpanel/SplitterPanel.d.ts +++ b/components/lib/splitterpanel/SplitterPanel.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type SplitterPanelPassThroughOptionType = SplitterPanelPassThroughAttributes | ((options: SplitterPanelPassThroughMethodOptions) => SplitterPanelPassThroughAttributes | string) | string | null | undefined; @@ -71,7 +71,7 @@ export interface SplitterPanelProps { * Used to pass attributes to DOM elements inside the component. * @type {SplitterPanelPassThroughOptions} */ - pt?: SplitterPanelPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/steps/Steps.d.ts b/components/lib/steps/Steps.d.ts index 5248c1077..389f3b91e 100755 --- a/components/lib/steps/Steps.d.ts +++ b/components/lib/steps/Steps.d.ts @@ -10,7 +10,7 @@ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type StepsPassThroughOptionType = StepsPassThroughAttributes | ((options: StepsPassThroughMethodOptions) => StepsPassThroughAttributes | string) | string | null | undefined; @@ -116,7 +116,7 @@ export interface StepsProps { * Used to pass attributes to DOM elements inside the component. * @type {StepsPassThroughOptions} */ - pt?: StepsPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/styleclass/StyleClass.d.ts b/components/lib/styleclass/StyleClass.d.ts index 2bcd3988b..ab54a021e 100644 --- a/components/lib/styleclass/StyleClass.d.ts +++ b/components/lib/styleclass/StyleClass.d.ts @@ -8,6 +8,7 @@ */ import { DirectiveBinding, ObjectDirective } from 'vue'; import { DirectiveHooks } from '../basedirective'; +import { PTOptions } from '../ts-helpers'; /** * Defines options of StyleClass. @@ -54,7 +55,7 @@ export interface StyleClassOptions { * Used to pass attributes to DOM elements inside the component. * @type {StyleClassDirectivePassThroughOptions} */ - pt?: StyleClassDirectivePassThroughOptions; + pt?: PTOptions; } /** diff --git a/components/lib/tabmenu/TabMenu.d.ts b/components/lib/tabmenu/TabMenu.d.ts index ed9f68090..63ab664c4 100755 --- a/components/lib/tabmenu/TabMenu.d.ts +++ b/components/lib/tabmenu/TabMenu.d.ts @@ -10,7 +10,7 @@ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TabMenuPassThroughOptionType = TabMenuPassThroughAttributes | ((options: TabMenuPassThroughMethodOptions) => TabMenuPassThroughAttributes | string) | string | null | undefined; @@ -141,7 +141,7 @@ export interface TabMenuProps { * Used to pass attributes to DOM elements inside the component. * @type {TabMenuPassThroughOptions} */ - pt?: TabMenuPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/tabpanel/TabPanel.d.ts b/components/lib/tabpanel/TabPanel.d.ts index 153ad1d70..d013cd3d6 100755 --- a/components/lib/tabpanel/TabPanel.d.ts +++ b/components/lib/tabpanel/TabPanel.d.ts @@ -10,7 +10,7 @@ import { AnchorHTMLAttributes, HTMLAttributes, LiHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { TabViewPassThroughOptions } from '../tabview'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TabPanelPassThroughOptionType = TabPanelPassThroughAttributes | ((options: TabPanelPassThroughMethodOptions) => TabPanelPassThroughAttributes | string) | string | null | undefined; @@ -108,7 +108,7 @@ export interface TabPanelProps { * Used to pass attributes to DOM elements inside the component. * @type {TabPanelPassThroughOptions} */ - pt?: TabPanelPassThroughOptions; + pt?: PTOptions; } /** diff --git a/components/lib/tabview/TabView.d.ts b/components/lib/tabview/TabView.d.ts index 15309d7d9..00c6d6563 100755 --- a/components/lib/tabview/TabView.d.ts +++ b/components/lib/tabview/TabView.d.ts @@ -10,7 +10,7 @@ import { ButtonHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { TabPanelPassThroughOptionType } from '../tabpanel'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TabViewPassThroughOptionType = TabViewPassThroughAttributes | ((options: { props: TabViewProps; state: TabViewState }) => TabViewPassThroughAttributes | string) | string | null | undefined; @@ -181,7 +181,7 @@ export interface TabViewProps { * Used to pass attributes to DOM elements inside the component. * @type {TabViewPassThroughOptions} */ - pt?: TabViewPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/tag/Tag.d.ts b/components/lib/tag/Tag.d.ts index 75f6b32fb..639c402a4 100644 --- a/components/lib/tag/Tag.d.ts +++ b/components/lib/tag/Tag.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TagPassThroughOptionType = TagPassThroughAttributes | ((options: TagPassThroughMethodOptions) => TagPassThroughAttributes | string) | string | null | undefined; @@ -78,7 +78,7 @@ export interface TagProps { * Used to pass attributes to DOM elements inside the component. * @type {TagPassThroughOptions} */ - pt?: TagPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/terminal/Terminal.d.ts b/components/lib/terminal/Terminal.d.ts index c937ed073..76157f4ec 100755 --- a/components/lib/terminal/Terminal.d.ts +++ b/components/lib/terminal/Terminal.d.ts @@ -8,7 +8,7 @@ * */ import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TerminalPassThroughOptionType = TerminalPassThroughAttributes | ((options: TerminalPassThroughMethodOptions) => TerminalPassThroughAttributes | string) | string | null | undefined; @@ -106,7 +106,7 @@ export interface TerminalProps { * Used to pass attributes to DOM elements inside the component. * @type {TerminalPassThroughOptions} */ - pt?: TerminalPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/textarea/Textarea.d.ts b/components/lib/textarea/Textarea.d.ts index 928baa02e..19b0fbbb0 100755 --- a/components/lib/textarea/Textarea.d.ts +++ b/components/lib/textarea/Textarea.d.ts @@ -9,7 +9,7 @@ */ import { TextareaHTMLAttributes } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TextareaPassThroughOptionType = TextareaPassThroughAttributes | ((options: TextareaPassThroughMethodOptions) => TextareaPassThroughAttributes | string) | string | null | undefined; @@ -79,7 +79,7 @@ export interface TextareaProps extends TextareaHTMLAttributes { * Used to pass attributes to DOM elements inside the component. * @type {TextareaPassThroughOptions} */ - pt?: TextareaPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/tieredmenu/TieredMenu.d.ts b/components/lib/tieredmenu/TieredMenu.d.ts index a4506c8b4..acb402bdf 100755 --- a/components/lib/tieredmenu/TieredMenu.d.ts +++ b/components/lib/tieredmenu/TieredMenu.d.ts @@ -10,7 +10,7 @@ import { TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { MenuItem } from '../menuitem'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TieredMenuPassThroughOptionType = TieredMenuPassThroughAttributes | ((options: TieredMenuPassThroughMethodOptions) => TieredMenuPassThroughAttributes | string) | string | null | undefined; @@ -215,7 +215,7 @@ export interface TieredMenuProps { * Used to pass attributes to DOM elements inside the component. * @type {TieredMenuPassThroughOptions} */ - pt?: TieredMenuPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/timeline/Timeline.d.ts b/components/lib/timeline/Timeline.d.ts index 5bfb1b70a..989df7346 100644 --- a/components/lib/timeline/Timeline.d.ts +++ b/components/lib/timeline/Timeline.d.ts @@ -8,7 +8,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TimelinePassThroughOptionType = TimelinePassThroughAttributes | ((options: TimelinePassThroughMethodOptions) => TimelinePassThroughAttributes | string) | string | null | undefined; @@ -104,7 +104,7 @@ export interface TimelineProps { * Used to pass attributes to DOM elements inside the component. * @type {TimelinePassThroughOptions} */ - pt?: TimelinePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/toast/Toast.d.ts b/components/lib/toast/Toast.d.ts index 4a38727f3..44e4d8ac0 100755 --- a/components/lib/toast/Toast.d.ts +++ b/components/lib/toast/Toast.d.ts @@ -9,7 +9,7 @@ */ import { ButtonHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ToastPassThroughOptionType = ToastPassThroughAttributes | ((options: ToastPassThroughMethodOptions) => ToastPassThroughAttributes | string) | string | null | undefined; @@ -228,7 +228,7 @@ export interface ToastProps { * Used to pass attributes to DOM elements inside the component. * @type {ToastPassThroughOptions} */ - pt?: ToastPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/togglebutton/ToggleButton.d.ts b/components/lib/togglebutton/ToggleButton.d.ts index c7b7517b4..0558f4721 100755 --- a/components/lib/togglebutton/ToggleButton.d.ts +++ b/components/lib/togglebutton/ToggleButton.d.ts @@ -9,7 +9,7 @@ */ import { InputHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ToggleButtonPassThroughOptionType = ToggleButtonPassThroughAttributes | ((options: ToggleButtonPassThroughMethodOptions) => ToggleButtonPassThroughAttributes | string) | string | null | undefined; @@ -164,7 +164,7 @@ export interface ToggleButtonProps { * Used to pass attributes to DOM elements inside the component. * @type {ToggleButtonPassThroughOptions} */ - pt?: ToggleButtonPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/toolbar/Toolbar.d.ts b/components/lib/toolbar/Toolbar.d.ts index 58fe22364..0ca340d92 100755 --- a/components/lib/toolbar/Toolbar.d.ts +++ b/components/lib/toolbar/Toolbar.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type ToolbarPassThroughOptionType = ToolbarPassThroughAttributes | ((options: ToolbarPassThroughMethodOptions) => ToolbarPassThroughAttributes | string) | string | null | undefined; @@ -68,7 +68,7 @@ export interface ToolbarProps { * Used to pass attributes to DOM elements inside the component. * @type {ToolbarPassThroughOptions} */ - pt?: ToolbarPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/tooltip/Tooltip.d.ts b/components/lib/tooltip/Tooltip.d.ts index 1c4915739..5627ab6f0 100755 --- a/components/lib/tooltip/Tooltip.d.ts +++ b/components/lib/tooltip/Tooltip.d.ts @@ -9,6 +9,7 @@ */ import { DirectiveBinding, ObjectDirective } from 'vue'; import { DirectiveHooks } from '../basedirective'; +import { PTOptions } from '../ts-helpers'; export declare type TooltipDirectivePassThroughOptionType = TooltipDirectivePassThroughAttributes | ((options: TooltipPassThroughMethodOptions) => TooltipDirectivePassThroughAttributes) | null | undefined; @@ -64,7 +65,7 @@ export interface TooltipOptions { * Used to pass attributes to DOM elements inside the component. * @type {TooltipDirectivePassThroughOptions} */ - pt?: TooltipDirectivePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/tree/Tree.d.ts b/components/lib/tree/Tree.d.ts index 89b2cb319..de16d7e55 100755 --- a/components/lib/tree/Tree.d.ts +++ b/components/lib/tree/Tree.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TreePassThroughOptionType = TreePassThroughAttributes | ((options: TreePassThroughMethodOptions) => TreePassThroughAttributes | string) | string | null | undefined; @@ -313,7 +313,7 @@ export interface TreeProps { * Used to pass attributes to DOM elements inside the component. * @type {TreePassThroughOptions} */ - pt?: TreePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/treeselect/TreeSelect.d.ts b/components/lib/treeselect/TreeSelect.d.ts index f1dcfd090..c148f34f5 100644 --- a/components/lib/treeselect/TreeSelect.d.ts +++ b/components/lib/treeselect/TreeSelect.d.ts @@ -10,7 +10,7 @@ import { InputHTMLAttributes, TransitionProps, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { TreeExpandedKeys, TreeNode, TreePassThroughOptionType } from '../tree'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TreeSelectPassThroughOptionType = TreeSelectPassThroughAttributes | ((options: TreeSelectPassThroughMethodOptions) => TreeSelectPassThroughAttributes | string) | string | null | undefined; @@ -208,7 +208,7 @@ export interface TreeSelectProps { * Used to pass attributes to DOM elements inside the component. * @type {TreeSelectPassThroughOptions} */ - pt?: TreeSelectPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/treetable/TreeTable.d.ts b/components/lib/treetable/TreeTable.d.ts index 05d462605..48169aa18 100755 --- a/components/lib/treetable/TreeTable.d.ts +++ b/components/lib/treetable/TreeTable.d.ts @@ -12,7 +12,7 @@ import { ComponentHooks } from '../basecomponent'; import { ColumnPassThroughOptionType } from '../column'; import { PaginatorPassThroughOptionType } from '../paginator'; import { TreeNode } from '../tree'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type TreeTablePassThroughOptionType = TreeTablePassThroughAttributes | ((options: TreeTablePassThroughMethodOptions) => TreeTablePassThroughAttributes | string) | string | null | undefined; @@ -559,7 +559,7 @@ export interface TreeTableProps { * Used to pass attributes to DOM elements inside the component. * @type {TreeTablePassThroughOptions} */ - pt?: TreeTablePassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/tristatecheckbox/TriStateCheckbox.d.ts b/components/lib/tristatecheckbox/TriStateCheckbox.d.ts index 348996d65..93912a26e 100755 --- a/components/lib/tristatecheckbox/TriStateCheckbox.d.ts +++ b/components/lib/tristatecheckbox/TriStateCheckbox.d.ts @@ -9,7 +9,7 @@ */ import { InputHTMLAttributes, VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, Nullable, PTOptions } from '../ts-helpers'; export declare type TriStateCheckboxPassThroughOptionType = TriStateCheckboxPassThroughAttributes | ((options: TriStateCheckboxPassThroughMethodOptions) => TriStateCheckboxPassThroughAttributes | string) | string | null | undefined; @@ -144,7 +144,7 @@ export interface TriStateCheckboxProps { * Used to pass attributes to DOM elements inside the component. * @type {TriStateCheckboxPassThroughOptions} */ - pt?: TriStateCheckboxPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/components/lib/ts-helpers.d.ts b/components/lib/ts-helpers.d.ts index a2e9f13b9..8bb34c0e1 100644 --- a/components/lib/ts-helpers.d.ts +++ b/components/lib/ts-helpers.d.ts @@ -33,4 +33,6 @@ export declare type Numberish = number | string; export declare type Nullable = T | null | undefined; +export declare type PTOptions = T | object | undefined; + export declare type DefaultPTOptions = T | ((instance?: VNode) => T | undefined) | undefined; diff --git a/components/lib/virtualscroller/VirtualScroller.d.ts b/components/lib/virtualscroller/VirtualScroller.d.ts index f1edcf7a5..c686c74eb 100644 --- a/components/lib/virtualscroller/VirtualScroller.d.ts +++ b/components/lib/virtualscroller/VirtualScroller.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers'; export declare type VirtualScrollerPassThroughOptionType = VirtualScrollerPassThroughAttributes | ((options: VirtualScrollerPassThroughMethodOptions) => VirtualScrollerPassThroughAttributes | string) | string | null | undefined; @@ -314,7 +314,7 @@ export interface VirtualScrollerProps { * Used to pass attributes to DOM elements inside the component. * @type {VirtualScrollerPassThroughOptions} */ - pt?: VirtualScrollerPassThroughOptions; + pt?: PTOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false diff --git a/doc/tailwind/CustomizationDoc.vue b/doc/tailwind/CustomizationDoc.vue index 70636aa06..c753bafcb 100644 --- a/doc/tailwind/CustomizationDoc.vue +++ b/doc/tailwind/CustomizationDoc.vue @@ -66,9 +66,7 @@ const CustomTailwind = usePassThrough( }, { merge: true, // Used to merge PT options. The default is true. - useMergeProps: false, // Whether to use Vue's 'mergeProps' method to merge PT options. - ignoredKeysOnMerge: [], // Defines keys to ignore during the merge operation. For example; ['panel.title'] - customizer: undefined // Defines the custom method to merge PT options. + useMergeProps: true, // Whether to use Vue's 'mergeProps' method to merge PT options. } );