diff --git a/api-generator/components/calendar.js b/api-generator/components/calendar.js index 269631ac3..9e5f3acbe 100644 --- a/api-generator/components/calendar.js +++ b/api-generator/components/calendar.js @@ -48,7 +48,7 @@ const CalendarProps = [ description: 'Icon of the calendar button.' }, { - name: 'previousIcon', + name: 'prevIcon', type: 'string', default: 'null', description: 'Icon to show in the previous button.' @@ -484,7 +484,7 @@ const CalendarSlots = [ description: 'Custom dropdown icon template.' }, { - name: 'previousicon', + name: 'prevIcon', description: 'Custom previous icon template.' }, { diff --git a/api-generator/components/carousel.js b/api-generator/components/carousel.js index 5b75bb88d..8ba6a7c39 100644 --- a/api-generator/components/carousel.js +++ b/api-generator/components/carousel.js @@ -115,7 +115,7 @@ const CarouselSlots = [ description: 'Custom content for the component item.' }, { - name: 'previousicon', + name: 'previcon', description: 'Custom previous icon template.' }, { diff --git a/api-generator/components/datepicker.js b/api-generator/components/datepicker.js index 1adc9e9b8..92762462b 100644 --- a/api-generator/components/datepicker.js +++ b/api-generator/components/datepicker.js @@ -48,7 +48,7 @@ const DatePickerProps = [ description: 'Icon of the calendar button.' }, { - name: 'previousIcon', + name: 'previcon', type: 'string', default: 'null', description: 'Icon to show in the previous button.' @@ -484,7 +484,7 @@ const DatePickerSlots = [ description: 'Custom dropdown icon template.' }, { - name: 'previousicon', + name: 'previcon', description: 'Custom previous icon template.' }, { diff --git a/api-generator/components/tabview.js b/api-generator/components/tabview.js index eb31f2194..ce8196f48 100644 --- a/api-generator/components/tabview.js +++ b/api-generator/components/tabview.js @@ -30,7 +30,7 @@ const TabViewProps = [ description: 'When enabled, the focused tab is activated.' }, { - name: 'previousButtonProps', + name: 'prevButtonProps', type: 'any', default: 'null', description: 'Used to pass all properties of the HTMLButtonElement to the previous button.' diff --git a/components/lib/carousel/Carousel.d.ts b/components/lib/carousel/Carousel.d.ts index d7fccf6b9..c1b047037 100755 --- a/components/lib/carousel/Carousel.d.ts +++ b/components/lib/carousel/Carousel.d.ts @@ -88,7 +88,7 @@ export interface CarouselPassThroughOptions { * Used to pass attributes to the previous button's DOM element. * @see {@link ButtonPassThroughOptions} */ - pcPreviousButton?: ButtonPassThroughOptions; + pcPrevButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the viewport's DOM element. */ diff --git a/components/lib/carousel/Carousel.vue b/components/lib/carousel/Carousel.vue index c7cc02a55..a7681ad71 100755 --- a/components/lib/carousel/Carousel.vue +++ b/components/lib/carousel/Carousel.vue @@ -7,18 +7,18 @@
@@ -72,7 +72,7 @@ > diff --git a/components/lib/carousel/style/CarouselStyle.d.ts b/components/lib/carousel/style/CarouselStyle.d.ts index f62c53fa1..7398a449b 100644 --- a/components/lib/carousel/style/CarouselStyle.d.ts +++ b/components/lib/carousel/style/CarouselStyle.d.ts @@ -29,7 +29,7 @@ export enum CarouselClasses { /** * Class name of the previous button element */ - pcPreviousButton = 'p-carousel-prev-button', + pcPrevButton = 'p-carousel-prev-button', /** * Class name of the viewport element */ diff --git a/components/lib/carousel/style/CarouselStyle.js b/components/lib/carousel/style/CarouselStyle.js index c2b3994f3..fa6f35099 100644 --- a/components/lib/carousel/style/CarouselStyle.js +++ b/components/lib/carousel/style/CarouselStyle.js @@ -103,7 +103,7 @@ const classes = { header: 'p-carousel-header', contentContainer: 'p-carousel-content-container', content: 'p-carousel-content', - pcPreviousButton: ({ instance }) => [ + pcPrevButton: ({ instance }) => [ 'p-carousel-prev-button', { 'p-disabled': instance.backwardIsDisabled diff --git a/components/lib/datepicker/BaseDatePicker.vue b/components/lib/datepicker/BaseDatePicker.vue index c09043653..7229a4fe9 100644 --- a/components/lib/datepicker/BaseDatePicker.vue +++ b/components/lib/datepicker/BaseDatePicker.vue @@ -39,7 +39,7 @@ export default { type: String, default: undefined }, - previousIcon: { + prevIcon: { type: String, default: undefined }, diff --git a/components/lib/datepicker/DatePicker.d.ts b/components/lib/datepicker/DatePicker.d.ts index e9d41ef9d..dd6118825 100755 --- a/components/lib/datepicker/DatePicker.d.ts +++ b/components/lib/datepicker/DatePicker.d.ts @@ -175,7 +175,7 @@ export interface DatePickerPassThroughOptions { * Used to pass attributes to the previous button's DOM element. * @see {@link ButtonPassThroughOptions} */ - pcPreviousButton?: ButtonPassThroughOptions; + pcPrevButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the title's DOM element. */ @@ -570,9 +570,9 @@ export interface DatePickerProps { icon?: string | undefined; /** * Icon to show in the previous button. - * @deprecated since v3.27.0. Use 'previousicon' slot. + * @deprecated since v3.27.0. Use 'previcon' slot. */ - previousIcon?: string | undefined; + prevIcon?: string | undefined; /** * Icon to show in the next button. * @deprecated since v3.27.0. Use 'nexticon' slot. @@ -937,7 +937,7 @@ export interface DatePickerSlots { * Custom previous icon template. * @param {Object} scope - previous icon slot's params. */ - previousicon(scope: { + previcon(scope: { /** * Style class of the previous icon */ diff --git a/components/lib/datepicker/DatePicker.vue b/components/lib/datepicker/DatePicker.vue index 9d8e875fb..66d80ed46 100755 --- a/components/lib/datepicker/DatePicker.vue +++ b/components/lib/datepicker/DatePicker.vue @@ -78,19 +78,19 @@ diff --git a/components/lib/datepicker/style/DatePickerStyle.d.ts b/components/lib/datepicker/style/DatePickerStyle.d.ts index 293603388..180efe1b2 100644 --- a/components/lib/datepicker/style/DatePickerStyle.d.ts +++ b/components/lib/datepicker/style/DatePickerStyle.d.ts @@ -49,7 +49,7 @@ export enum DatePickerClasses { /** * Class name of the previous button element */ - pcPreviousButton = 'p-datepicker-prev-button', + pcPrevButton = 'p-datepicker-prev-button', /** * Class name of the title element */ diff --git a/components/lib/datepicker/style/DatePickerStyle.js b/components/lib/datepicker/style/DatePickerStyle.js index a0e4abf5b..2f37275cb 100644 --- a/components/lib/datepicker/style/DatePickerStyle.js +++ b/components/lib/datepicker/style/DatePickerStyle.js @@ -381,7 +381,7 @@ const classes = { calendarContainer: 'p-datepicker-calendar-container', calendar: 'p-datepicker-calendar', header: 'p-datepicker-header', - pcPreviousButton: 'p-datepicker-prev-button', + pcPrevButton: 'p-datepicker-prev-button', title: 'p-datepicker-title', viewMonth: 'p-datepicker-view-month', viewYear: 'p-datepicker-view-year', diff --git a/components/lib/tablist/TabList.d.ts b/components/lib/tablist/TabList.d.ts index 0237fb209..8db2b8018 100755 --- a/components/lib/tablist/TabList.d.ts +++ b/components/lib/tablist/TabList.d.ts @@ -56,7 +56,7 @@ export interface TabListPassThroughOptions { /** * Used to pass attributes to the previous button component. */ - previousButton?: TabListPassThroughOptionType; + prevButton?: TabListPassThroughOptionType; /** * Used to pass attributes to the next button component. */ diff --git a/components/lib/tablist/TabList.vue b/components/lib/tablist/TabList.vue index 893ffecb1..e461a8799 100644 --- a/components/lib/tablist/TabList.vue +++ b/components/lib/tablist/TabList.vue @@ -4,14 +4,14 @@ v-if="showNavigators && isPrevButtonEnabled" ref="prevButton" v-ripple - :class="cx('previousButton')" + :class="cx('prevButton')" :aria-label="prevButtonAriaLabel" :tabindex="$pcTabs.tabindex" @click="onPrevButtonClick" - v-bind="ptm('previousButton')" + v-bind="ptm('prevButton')" data-pc-group-section="navigator" > -