diff --git a/assets/styles/layout/_doc.scss b/assets/styles/layout/_doc.scss index ece0ff892..ef076f39a 100644 --- a/assets/styles/layout/_doc.scss +++ b/assets/styles/layout/_doc.scss @@ -343,8 +343,8 @@ font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, Liberation Mono, monospace; position: relative; scroll-margin-top: 6.5rem; - background-color: var(--highlight-bg); - color: var(--highlight-text-color); + background-color: var(--doc-highlight-text-bg); + color: var(--doc-highlight-text-color); border-radius: 6px; padding: 2px 6px; font-weight: 600; diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index 5347f9a1c..904e5f7d3 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -55,7 +55,6 @@ import BaseConfirmDialog from './BaseConfirmDialog.vue'; export default { name: 'ConfirmDialog', extends: BaseConfirmDialog, - confirmListener: null, closeListener: null, data() { diff --git a/components/lib/confirmpopup/style/ConfirmPopupStyle.js b/components/lib/confirmpopup/style/ConfirmPopupStyle.js index 362780089..7be86f603 100644 --- a/components/lib/confirmpopup/style/ConfirmPopupStyle.js +++ b/components/lib/confirmpopup/style/ConfirmPopupStyle.js @@ -86,8 +86,8 @@ const classes = { icon: ({ instance }) => ['p-confirm-popup-icon', instance.confirmation ? instance.confirmation.icon : null], message: 'p-confirm-popup-message', footer: 'p-confirm-popup-footer', - rejectButton: ({ instance }) => ['p-confirm-popup-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null], - acceptButton: 'p-confirm-popup-accept' + rejectButton: ({ instance }) => ['p-confirm-popup-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-sm p-button-text' : null], + acceptButton: ({ instance }) => ['p-confirm-popup-accept', instance.confirmation && !instance.confirmation.acceptClass ? 'p-button-sm' : null] }; export default BaseStyle.extend({ diff --git a/doc/confirmdialog/AccessibilityDoc.vue b/doc/confirmdialog/AccessibilityDoc.vue index 904e80b0e..40ba80f6d 100644 --- a/doc/confirmdialog/AccessibilityDoc.vue +++ b/doc/confirmdialog/AccessibilityDoc.vue @@ -78,7 +78,8 @@ export default { basic: ` -` + +` }, code2: { basic: ` diff --git a/doc/confirmdialog/BasicDoc.vue b/doc/confirmdialog/BasicDoc.vue index bfbcb4bbf..e5b213d6b 100644 --- a/doc/confirmdialog/BasicDoc.vue +++ b/doc/confirmdialog/BasicDoc.vue @@ -1,11 +1,11 @@ @@ -18,7 +18,7 @@ export default { basic: ` - + `, options: ` @@ -51,7 +51,8 @@ export default { message: 'Do you want to delete this record?', header: 'Delete Confirmation', icon: 'pi pi-info-circle', - acceptClass: 'p-button-danger', + rejectClass: 'p-button-text p-button-text', + acceptClass: 'p-button-danger p-button-text', accept: () => { this.$toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted', life: 3000 }); }, @@ -70,7 +71,7 @@ export default {
- +
@@ -100,7 +101,8 @@ const confirm2 = () => { message: 'Do you want to delete this record?', header: 'Delete Confirmation', icon: 'pi pi-info-circle', - acceptClass: 'p-button-danger', + rejectClass: 'p-button-text p-button-text', + acceptClass: 'p-button-danger p-button-text', accept: () => { toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted', life: 3000 }); }, @@ -133,7 +135,8 @@ const confirm2 = () => { message: 'Do you want to delete this record?', header: 'Delete Confirmation', icon: 'pi pi-info-circle', - acceptClass: 'p-button-danger', + rejectClass: 'p-button-text p-button-text', + acceptClass: 'p-button-danger p-button-text', accept: () => { this.$toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted', life: 3000 }); }, diff --git a/doc/confirmdialog/ConfirmationServiceDoc.vue b/doc/confirmdialog/ConfirmationServiceDoc.vue index f5d29058f..e5a8935e2 100644 --- a/doc/confirmdialog/ConfirmationServiceDoc.vue +++ b/doc/confirmdialog/ConfirmationServiceDoc.vue @@ -4,7 +4,7 @@
-

$confirm is available as a property in the application instance for Options API. The service can be injected with the useConfirm function for Composition API.

+

The service is available with the useConfirm function for Composition API or using the $confirm property of the application for Options API.

diff --git a/doc/confirmdialog/HeadlessDoc.vue b/doc/confirmdialog/HeadlessDoc.vue new file mode 100644 index 000000000..8a8e5b70c --- /dev/null +++ b/doc/confirmdialog/HeadlessDoc.vue @@ -0,0 +1,156 @@ + + + diff --git a/doc/confirmdialog/PositionDoc.vue b/doc/confirmdialog/PositionDoc.vue index adef71079..3688c8d54 100644 --- a/doc/confirmdialog/PositionDoc.vue +++ b/doc/confirmdialog/PositionDoc.vue @@ -1,14 +1,14 @@