diff --git a/api-generator/components/calendar.js b/api-generator/components/calendar.js index 2bd496d91..269631ac3 100644 --- a/api-generator/components/calendar.js +++ b/api-generator/components/calendar.js @@ -83,12 +83,6 @@ const CalendarProps = [ default: 'date', description: 'Type of view to display, valid valids are "date" for datepicker and "month" for month picker.' }, - { - name: 'touchUI', - type: 'boolean', - default: 'false', - description: 'When enabled, calendar overlay is displayed as optimized for touch devices.' - }, { name: 'monthNavigator', type: 'boolean', diff --git a/api-generator/components/rating.js b/api-generator/components/rating.js index 454c194ed..92d845af9 100644 --- a/api-generator/components/rating.js +++ b/api-generator/components/rating.js @@ -23,12 +23,6 @@ const RatingProps = [ default: '5', description: 'Number of stars.' }, - { - name: 'cancel', - type: 'boolean', - default: 'true', - description: 'When specified a cancel icon is displayed to allow clearing the value.' - }, { name: 'onIcon', type: 'string', @@ -41,12 +35,6 @@ const RatingProps = [ default: 'null', description: 'Icon for the off state.' }, - { - name: 'cancelIcon', - type: 'string', - default: 'null', - description: 'Icon for the cancelable state.' - }, { name: 'pt', type: 'any', @@ -62,10 +50,6 @@ const RatingProps = [ ]; const RatingSlots = [ - { - name: 'cancelicon', - description: 'Custom cancel icon template.' - }, { name: 'onicon', description: 'Custom on icon template.' diff --git a/components/lib/autocomplete/AutoComplete.vue b/components/lib/autocomplete/AutoComplete.vue index 1230dc880..cc90b53f9 100755 --- a/components/lib/autocomplete/AutoComplete.vue +++ b/components/lib/autocomplete/AutoComplete.vue @@ -56,7 +56,7 @@ v-bind="ptm('token')" > - + diff --git a/components/lib/calendar/BaseCalendar.vue b/components/lib/calendar/BaseCalendar.vue index 80a5a72fd..51bcacc6b 100644 --- a/components/lib/calendar/BaseCalendar.vue +++ b/components/lib/calendar/BaseCalendar.vue @@ -68,10 +68,6 @@ export default { type: String, default: 'date' }, - touchUI: { - type: Boolean, - default: false - }, monthNavigator: { type: Boolean, default: false @@ -232,6 +228,18 @@ export default { return { severity: 'secondary', text: true, size: 'small' }; } }, + navigatorButtonProps: { + type: Object, + default() { + return { severity: 'secondary', text: true }; + } + }, + timepickerButtonProps: { + type: Object, + default() { + return { severity: 'secondary', text: true }; + } + }, ariaLabelledby: { type: String, default: null diff --git a/components/lib/calendar/Calendar.d.ts b/components/lib/calendar/Calendar.d.ts index 4bac218fd..e3c699b5d 100755 --- a/components/lib/calendar/Calendar.d.ts +++ b/components/lib/calendar/Calendar.d.ts @@ -161,8 +161,9 @@ export interface CalendarPassThroughOptions { header?: CalendarPassThroughOptionType; /** * Used to pass attributes to the previous button's DOM element. + * @see {@link ButtonPassThroughOptions} */ - previousButton?: CalendarPassThroughOptionType; + previousButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the title's DOM element. */ @@ -180,9 +181,10 @@ export interface CalendarPassThroughOptions { */ decadeTitle?: CalendarPassThroughOptionType; /** - * Used to pass attributes to the previous button's DOM element. + * Used to pass attributes to the next button's DOM element. + * @see {@link ButtonPassThroughOptions} */ - nextButton?: CalendarPassThroughOptionType; + nextButton?: ButtonPassThroughOptions; /** * Used to pass attributes to the container's DOM element. */ @@ -579,11 +581,6 @@ export interface CalendarProps { * @defaultValue date */ view?: 'date' | 'month' | 'year' | undefined; - /** - * When enabled, calendar overlay is displayed as optimized for touch devices. - * @defaultValue false - */ - touchUI?: boolean | undefined; /** * Whether the month should be rendered as a dropdown instead of text. * @@ -766,15 +763,27 @@ export interface CalendarProps { /** * Used to pass all properties of the ButtonProps to the today button component. * @type {ButtonProps} - * @defaultValue { severity: 'secondary', text: true } + * @defaultValue { severity: 'secondary', text: true, size: 'small' } */ todayButtonProps?: object | undefined; /** * Used to pass all properties of the ButtonProps to the clear button component. * @type {ButtonProps} - * @defaultValue { severity: 'secondary', text: true } + * @defaultValue { severity: 'secondary', text: true, size: 'small' } */ clearButtonProps?: object | undefined; + /** + * Used to pass all properties of the ButtonProps to the navigator button component. + * @type {ButtonProps} + * @defaultValue { severity: 'secondary', text: true } + */ + navigatorButtonProps?: object | undefined; + /** + * Used to pass all properties of the ButtonProps to the timepicker button component. + * @type {ButtonProps} + * @defaultValue { severity: 'secondary', text: true } + */ + timepickerButtonProps?: object | undefined; /** * Establishes relationships between the component and label(s) where its value should be one or more element IDs. */ diff --git a/components/lib/calendar/Calendar.vue b/components/lib/calendar/Calendar.vue index f8ec80005..483db3ebc 100755 --- a/components/lib/calendar/Calendar.vue +++ b/components/lib/calendar/Calendar.vue @@ -48,9 +48,11 @@ @@ -73,23 +75,25 @@
- + +
- + + {{ formattedCurrentHour }} - + +
{{ timeSeparator }}
- + + {{ formattedCurrentMinute }} - + +
{{ timeSeparator }}
- + + {{ formattedCurrentSecond }} - + +
{{ timeSeparator }}
- + + {{ pm ? $primevue.config.locale.pm : $primevue.config.locale.am }} - + +
-
@@ -491,6 +529,7 @@ diff --git a/doc/rating/NumberOfStarsDoc.vue b/doc/rating/NumberOfStarsDoc.vue index 48aa22859..48f5e2414 100644 --- a/doc/rating/NumberOfStarsDoc.vue +++ b/doc/rating/NumberOfStarsDoc.vue @@ -12,7 +12,7 @@ export default { data() { return { - value: null, + value: 5, code: { basic: ` @@ -28,7 +28,7 @@ export default { export default { data() { return { - value: null + value: 5 } } }; @@ -44,7 +44,7 @@ export default {