diff --git a/components/lib/calendar/Calendar.d.ts b/components/lib/calendar/Calendar.d.ts index fc4698fde..a9cd03d3a 100755 --- a/components/lib/calendar/Calendar.d.ts +++ b/components/lib/calendar/Calendar.d.ts @@ -127,7 +127,7 @@ export interface CalendarBlurEvent { /** * Custom passthrough(pt) options. - * @see {@link BaseCalendarProps.pt} + * @see {@link CalendarProps.pt} */ export interface CalendarPassThroughOptions { /** @@ -493,9 +493,19 @@ export interface CalendarYearOptions { } /** - * Defines valid base properties in Calendar component. + * Defines valid properties in Calendar component. */ -interface BaseCalendarProps { +export interface CalendarProps { + /** + * Value of the component. + * @defaultValue null + */ + modelValue?: Date | Array | Array | undefined | null; + /** + * Defines the quantity of the selection. + * @defaultValue single + */ + selectionMode?: 'single' | 'multiple' | 'range' | undefined; /** * Format of the date. Defaults to PrimeVue Locale configuration. */ @@ -790,56 +800,6 @@ interface BaseCalendarProps { unstyled?: boolean; } -/** - * Defines valid single selection properties in Calendar component. - */ -interface CalendarPropsSingle extends BaseCalendarProps { - /** - * Value of the component. - * @defaultValue null - */ - modelValue?: Date | undefined | null; - /** - * Defines the quantity of the selection. - * @defaultValue single - */ - selectionMode?: 'single' | undefined; -} - -/** - * Defines valid range selection properties in Calendar component. - */ -interface CalendarPropsRange extends BaseCalendarProps { - /** - * Value of the component. - * @defaultValue null - */ - modelValue?: Array | undefined | null; - /** - * Defines the quantity of the selection. - * @defaultValue single - */ - selectionMode?: 'range'; -} - -/** - * Defines valid multiple selection properties in Calendar component. - */ -interface CalendarPropsMultiple extends BaseCalendarProps { - /** - * Value of the component. - * @defaultValue null - */ - modelValue?: Array | undefined | null; - /** - * Defines the quantity of the selection. - * @defaultValue single - */ - selectionMode?: 'multiple'; -} - -export type CalendarProps = CalendarPropsSingle | CalendarPropsRange | CalendarPropsMultiple; - /** * Defines valid options of the date slot in Calendar component. */ @@ -992,9 +952,9 @@ export interface CalendarSlots { export interface CalendarEmits { /** * Emitted when the value changes. - * @param {Date | Array | null} value - New value. + * @param {string | Date | string[] | Date[] | undefined} value - New value. */ - 'update:modelValue'(value: Date | Array | null): void; + 'update:modelValue'(value: Date | Array | Array | undefined | null): void; /** * Callback to invoke when input field is being typed. * @param {Event} event - Browser event diff --git a/components/lib/fileupload/FileUpload.vue b/components/lib/fileupload/FileUpload.vue index a4e87163f..1ba638b42 100755 --- a/components/lib/fileupload/FileUpload.vue +++ b/components/lib/fileupload/FileUpload.vue @@ -30,9 +30,9 @@ + {{ msg }}
diff --git a/components/lib/slider/Slider.vue b/components/lib/slider/Slider.vue index b2a5c7db1..b37c5757b 100755 --- a/components/lib/slider/Slider.vue +++ b/components/lib/slider/Slider.vue @@ -154,6 +154,7 @@ export default { this.handleIndex = index; } + event.currentTarget.focus(); event.preventDefault(); }, onDrag(event) { diff --git a/components/lib/stepper/Stepper.vue b/components/lib/stepper/Stepper.vue index 0c8d211b8..7ba3d49cf 100644 --- a/components/lib/stepper/Stepper.vue +++ b/components/lib/stepper/Stepper.vue @@ -35,7 +35,6 @@