diff --git a/components/lib/confirmationoptions/ConfirmationOptions.d.ts b/components/lib/confirmationoptions/ConfirmationOptions.d.ts index c99a3d010..1cae3d298 100644 --- a/components/lib/confirmationoptions/ConfirmationOptions.d.ts +++ b/components/lib/confirmationoptions/ConfirmationOptions.d.ts @@ -5,6 +5,7 @@ * @module confirmationoptions * */ +import { ButtonProps } from '../button'; /** * Confirmation Service options. @@ -85,4 +86,14 @@ export interface ConfirmationOptions { * Element to receive the focus when the dialog gets visible, valid values are "accept" and "reject". */ defaultFocus?: string | undefined; + /** + * Used to pass all properties of the ButtonProps to the reject button inside the component. + * @type {ButtonProps} + */ + rejectProps?: object | undefined; + /** + * Used to pass all properties of the ButtonProps to the accept button inside the component. + * @type {ButtonProps} + */ + acceptProps?: object | undefined; } diff --git a/components/lib/confirmdialog/BaseConfirmDialog.vue b/components/lib/confirmdialog/BaseConfirmDialog.vue index 50ea59adf..7be91657a 100644 --- a/components/lib/confirmdialog/BaseConfirmDialog.vue +++ b/components/lib/confirmdialog/BaseConfirmDialog.vue @@ -14,20 +14,6 @@ export default { draggable: { type: Boolean, default: true - }, - rejectButtonProps: { - type: Object, - default() { - return { - text: true - }; - } - }, - acceptButtonProps: { - type: Object, - default() { - return {}; - } } }, style: ConfirmDialogStyle, diff --git a/components/lib/confirmdialog/ConfirmDialog.d.ts b/components/lib/confirmdialog/ConfirmDialog.d.ts index fbfcece34..fc0587bb6 100644 --- a/components/lib/confirmdialog/ConfirmDialog.d.ts +++ b/components/lib/confirmdialog/ConfirmDialog.d.ts @@ -9,7 +9,7 @@ */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; -import { ButtonPassThroughOptions, ButtonProps } from '../button'; +import { ButtonPassThroughOptions } from '../button'; import { ConfirmationOptions } from '../confirmationoptions'; import { PassThroughOptions } from '../passthrough'; import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers'; @@ -184,18 +184,6 @@ export interface ConfirmDialogProps { * @defaultValue true */ draggable?: boolean | undefined; - /** - * Used to pass all properties of the ButtonProps to the reject button inside the component. - * @type {ButtonProps} - * @defaultValue { text: true } - */ - rejectButtonProps?: object | undefined; - /** - * Used to pass all properties of the ButtonProps to the accept button inside the component. - * @type {ButtonProps} - * @defaultValue {} - */ - acceptButtonProps?: object | undefined; /** * Used to pass attributes to DOM elements inside the component. * @type {ConfirmDialogPassThroughOptions} diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index 14eae12b9..0a0cab911 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -28,14 +28,23 @@