From 2a4625780aedcca4b55f0e1dbb3aed7c2dc7e103 Mon Sep 17 00:00:00 2001 From: Alex McNerney Date: Wed, 26 Jun 2024 20:11:44 -0700 Subject: [PATCH 01/23] Fix positioning of overlay arrows --- packages/primevue/src/confirmpopup/ConfirmPopup.vue | 2 +- packages/primevue/src/confirmpopup/style/ConfirmPopupStyle.js | 2 +- packages/primevue/src/popover/style/PopoverStyle.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/primevue/src/confirmpopup/ConfirmPopup.vue b/packages/primevue/src/confirmpopup/ConfirmPopup.vue index bb8c4d62b..9464ba3aa 100644 --- a/packages/primevue/src/confirmpopup/ConfirmPopup.vue +++ b/packages/primevue/src/confirmpopup/ConfirmPopup.vue @@ -206,7 +206,7 @@ export default { arrowLeft = targetOffset.left - containerOffset.left; } - this.container.style.setProperty($dt('overlay.arrow.left').name, `${arrowLeft}px`); + this.container.style.setProperty($dt('confirmpopup.arrow.left').name, `${arrowLeft}px`); if (containerOffset.top < targetOffset.top) { this.container.setAttribute('data-p-confirmpopup-flipped', 'true'); diff --git a/packages/primevue/src/confirmpopup/style/ConfirmPopupStyle.js b/packages/primevue/src/confirmpopup/style/ConfirmPopupStyle.js index c6565d46e..1713be9b2 100644 --- a/packages/primevue/src/confirmpopup/style/ConfirmPopupStyle.js +++ b/packages/primevue/src/confirmpopup/style/ConfirmPopupStyle.js @@ -67,7 +67,7 @@ const theme = ({ dt }) => ` .p-confirmpopup:after, .p-confirmpopup:before { bottom: 100%; - left: ${dt('confirmpopup.arrow.offset')}; + left: calc(${dt('confirmpopup.arrow.offset')} + ${dt('confirmpopup.arrow.left')}); content: " "; height: 0; width: 0; diff --git a/packages/primevue/src/popover/style/PopoverStyle.js b/packages/primevue/src/popover/style/PopoverStyle.js index 3df4aef77..a2f834c9e 100644 --- a/packages/primevue/src/popover/style/PopoverStyle.js +++ b/packages/primevue/src/popover/style/PopoverStyle.js @@ -39,7 +39,7 @@ const theme = ({ dt }) => ` .p-popover:after, .p-popover:before { bottom: 100%; - left: ${dt('popover.arrow.offset')}; + left: calc(${dt('popover.arrow.offset')} + ${dt('popover.arrow.left')}); content: " "; height: 0; width: 0; From 27e8caa17bb00ab24acd22be1295429fde304650 Mon Sep 17 00:00:00 2001 From: "cmdltt@mail.ru" Date: Tue, 16 Jul 2024 15:06:07 +0300 Subject: [PATCH 02/23] =?UTF-8?q?fix:=20add=20@keydown=20emit=20event=20in?= =?UTF-8?q?=C2=A0DatePicker=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/primevue/src/datepicker/DatePicker.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index e45f3f283..aca3abd75 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -2641,6 +2641,8 @@ export default { /* NoOp */ } } + + this.$emit('keydown', event); } }, overlayRef(el) { From a36d5ca25b3775b7018a22d6c65439bc9f11ac2d Mon Sep 17 00:00:00 2001 From: KumJungMin Date: Thu, 18 Jul 2024 22:44:40 +0900 Subject: [PATCH 03/23] fix: allow to type the end date equal to the start date --- packages/primevue/src/datepicker/DatePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index e45f3f283..52340e88b 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -1731,7 +1731,7 @@ export default { } } else if (value.every((v) => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false))) { if (this.isRangeSelection()) { - isValid = value.length > 1 && value[1] > value[0] ? true : false; + isValid = value.length > 1 && value[1] >= value[0]; } } From 81a6b786923611748db09e5cd972d29fc5954968 Mon Sep 17 00:00:00 2001 From: ANTONA09 Date: Thu, 25 Jul 2024 11:55:34 +0530 Subject: [PATCH 04/23] fix: #6106, DatePicker: cannot type an end date that is the same as the start date --- packages/primevue/src/datepicker/DatePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index e45f3f283..52340e88b 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -1731,7 +1731,7 @@ export default { } } else if (value.every((v) => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false))) { if (this.isRangeSelection()) { - isValid = value.length > 1 && value[1] > value[0] ? true : false; + isValid = value.length > 1 && value[1] >= value[0]; } } From 59a2662dd2d7460badd8120eb5cec6848642bfa5 Mon Sep 17 00:00:00 2001 From: He Xinpeng Date: Fri, 26 Jul 2024 15:57:15 +0800 Subject: [PATCH 05/23] fix: month selection highlighting problem in range mode --- packages/primevue/src/datepicker/style/DatePickerStyle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/style/DatePickerStyle.js b/packages/primevue/src/datepicker/style/DatePickerStyle.js index a4a167dea..abacddec9 100644 --- a/packages/primevue/src/datepicker/style/DatePickerStyle.js +++ b/packages/primevue/src/datepicker/style/DatePickerStyle.js @@ -418,7 +418,7 @@ const classes = { let selectedDayClass = ''; if (instance.isRangeSelection() && instance.isSelected(date) && date.selectable) { - selectedDayClass = date.day === props.modelValue[0].getDate() || date.day === props.modelValue[1].getDate() ? 'p-datepicker-day-selected' : 'p-datepicker-day-selected-range'; + selectedDayClass = instance.isDateEquals(props.modelValue[0], date) || instance.isDateEquals(props.modelValue[1], date) ? 'p-datepicker-day-selected' : 'p-datepicker-day-selected-range'; } return [ From 9f25a50ef2b43884e4c841f8e18757d56b171204 Mon Sep 17 00:00:00 2001 From: clemvnt Date: Mon, 29 Jul 2024 22:06:18 +0200 Subject: [PATCH 06/23] Rebase on v4 --- packages/primevue/src/contextmenu/ContextMenu.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/primevue/src/contextmenu/ContextMenu.vue b/packages/primevue/src/contextmenu/ContextMenu.vue index 09906c991..cc08028e3 100755 --- a/packages/primevue/src/contextmenu/ContextMenu.vue +++ b/packages/primevue/src/contextmenu/ContextMenu.vue @@ -35,10 +35,10 @@