<script>
import BaseComponent from 'primevue/basecomponent';
import PaginatorStyle from 'primevue/paginator/style';

export default {
    name: 'BasePaginator',
    extends: BaseComponent,
    props: {
        total: {
            type: Number,
            default: 0
        },
        size: {
            type: Number,
            default: 10
        },
        current: {
            type: Number,
            default: 1
        },
        pageLinkSize: {
            type: Number,
            default: 5
        },
        rowsPerPageOptions: {
            type: Array,
            default: null
        },
        template: {
            type: [Object, String],
            default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'
        },
        currentPageReportTemplate: {
            type: null,
            default: '({currentPage} of {totalPages})'
        },
        alwaysShow: {
            type: Boolean,
            default: true
        }
    },
    style: PaginatorStyle,
    provide() {
        return {
            $parentInstance: this
        };
    }
};
</script>
