From 1cc307043c9682cf729a2c2c5523f1c8ea625b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Mon, 29 May 2023 23:18:28 +0300 Subject: [PATCH] Refactor #3965 - For OverlayPanel --- .../lib/confirmdialog/BaseConfirmDialog.vue | 1 + .../lib/confirmdialog/ConfirmDialog.vue | 4 +- .../lib/overlaypanel/BaseOverlayPanel.vue | 140 ++++++++++++++++++ components/lib/overlaypanel/OverlayPanel.d.ts | 5 + components/lib/overlaypanel/OverlayPanel.vue | 128 +--------------- 5 files changed, 155 insertions(+), 123 deletions(-) create mode 100644 components/lib/overlaypanel/BaseOverlayPanel.vue diff --git a/components/lib/confirmdialog/BaseConfirmDialog.vue b/components/lib/confirmdialog/BaseConfirmDialog.vue index b7b3a2615..0a4915133 100644 --- a/components/lib/confirmdialog/BaseConfirmDialog.vue +++ b/components/lib/confirmdialog/BaseConfirmDialog.vue @@ -2,6 +2,7 @@ import BaseComponent from 'primevue/basecomponent'; const classes = { + root: 'p-confirm-dialog', icon: ({ instance }) => ['p-confirm-dialog-icon', instance.confirmation ? instance.confirmation.icon : null], message: 'p-confirm-dialog-message', rejectButton: ({ instance }) => ['p-confirm-dialog-reject', instance.confirmation ? instance.confirmation.rejectClass || 'p-button-text' : null], diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index 11d22db98..0e6249cc9 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -2,7 +2,7 @@