import { DemoPaginationBasicComponent } from './demos/basic/basic'; import { DemoPaginationPagerComponent } from './demos/pager/pager'; import { DemoPaginationLimitComponent } from './demos/limit/limit'; // import { DemoPaginationStylingComponent } from './demos/styling-global/styling-global'; import { DemoPaginationManualSwitchingComponent } from './demos/manual-switching/manual-switching'; import { DemoPaginationPageChangedComponent } from './demos/page-changed-event/page-changed-event'; import { DemoPaginationPagesCountChangedComponent } from './demos/pages-count-changed/pages-count-changed'; import { DemoPaginationBoundaryLinksComponent } from './demos/boundary-links/boundary-links'; import { DemoPaginationDirectionLinksComponent } from './demos/direction-links/direction-links'; import { DemoPaginationCustomLinksContentComponent } from './demos/custom-links-content/custom-links-content'; import { DemoPaginationContentSwitchingComponent } from './demos/content-switching/content-switching'; import { ContentSection } from '@ngx-bootstrap-doc/docs'; import { ExamplesComponent } from '@ngx-bootstrap-doc/docs'; import { ApiSectionsComponent } from '@ngx-bootstrap-doc/docs'; import { NgApiDocComponent, NgApiDocConfigComponent } from '@ngx-bootstrap-doc/docs'; import { DemoPaginationDisabledComponent } from './demos/disabled/disabled'; import { DemoPaginationRotateComponent } from './demos/rotate/rotate'; import { DemoPaginationCustomTemplateComponent } from './demos/custom-template/custom-template'; export const demoComponentContent: ContentSection[] = [ { name: 'Overview', anchor: 'overview', tabName: 'overview', outlet: ExamplesComponent, description: `On small screens bootstrap4 pagination can be cropped`, content: [ { title: 'Basic', anchor: 'basic', component: require('!!raw-loader!./demos/basic/basic.ts'), html: require('!!raw-loader!./demos/basic/basic.html'), outlet: DemoPaginationBasicComponent }, { title: 'Manual switching page', anchor: 'manual-switching', component: require('!!raw-loader!./demos/manual-switching/manual-switching.ts'), html: require('!!raw-loader!./demos/manual-switching/manual-switching.html'), outlet: DemoPaginationManualSwitchingComponent }, { title: 'Page changed event', anchor: 'page-changed-event', component: require('!!raw-loader!./demos/page-changed-event/page-changed-event.ts'), html: require('!!raw-loader!./demos/page-changed-event/page-changed-event.html'), outlet: DemoPaginationPageChangedComponent }, { title: 'Pages count changed event', anchor: 'pages-count-changed', component: require('!!raw-loader!./demos/pages-count-changed/pages-count-changed.ts'), html: require('!!raw-loader!./demos/pages-count-changed/pages-count-changed.html'), outlet: DemoPaginationPagesCountChangedComponent }, { title: 'Boundary links', anchor: 'boundary-links', component: require('!!raw-loader!./demos/boundary-links/boundary-links.ts'), html: require('!!raw-loader!./demos/boundary-links/boundary-links.html'), outlet: DemoPaginationBoundaryLinksComponent }, { title: 'Direction links', anchor: 'direction-links', component: require('!!raw-loader!./demos/direction-links/direction-links.ts'), html: require('!!raw-loader!./demos/direction-links/direction-links.html'), outlet: DemoPaginationDirectionLinksComponent }, { title: 'Custom links content', anchor: 'custom-links-content', component: require('!!raw-loader!./demos/custom-links-content/custom-links-content.ts'), html: require('!!raw-loader!./demos/custom-links-content/custom-links-content.html'), outlet: DemoPaginationCustomLinksContentComponent }, { title: 'Disabled', anchor: 'pagination-disabled', component: require('!!raw-loader!./demos/disabled/disabled.ts'), html: require('!!raw-loader!./demos/disabled/disabled.html'), outlet: DemoPaginationDisabledComponent }, { title: 'Limits', anchor: 'pagination-limit', component: require('!!raw-loader!./demos/limit/limit.ts'), html: require('!!raw-loader!./demos/limit/limit.html'), description: `

Limit the maximum visible page numbers

`, outlet: DemoPaginationLimitComponent }, { title: 'Centering the active page link', anchor: 'pagination-rotate', component: require('!!raw-loader!./demos/rotate/rotate.ts'), html: require('!!raw-loader!./demos/rotate/rotate.html'), description: `

Set current page link to center

`, outlet: DemoPaginationRotateComponent }, { title: 'Content switching', anchor: 'content-switching', component: require('!!raw-loader!./demos/content-switching/content-switching.ts'), html: require('!!raw-loader!./demos/content-switching/content-switching.html'), outlet: DemoPaginationContentSwitchingComponent }, { title: 'Pager', anchor: 'pagination-pager', component: require('!!raw-loader!./demos/pager/pager.ts'), html: require('!!raw-loader!./demos/pager/pager.html'), outlet: DemoPaginationPagerComponent }, { title: 'Custom Template', anchor: 'custom-template', description: `

It is possible to customize what exactly is displayed in each pagination link. To overwrite default templates use these inputs:

Each template has a context object. The object PaginationLinkContext is available for all templates and for page numbers there is a PaginationNumberLinkContext that contains the page number.

`, component: require('!!raw-loader!./demos/custom-template/custom-template.ts'), html: require('!!raw-loader!./demos/custom-template/custom-template.html'), outlet: DemoPaginationCustomTemplateComponent } /* TODO: temporary disabled pageBtnClass option { title: 'Styling', anchor: 'pagination-styling', component: require('!!raw-loader!./demos/styling-global/styling-global.ts'), html: require('!!raw-loader!./demos/styling-global/styling-global.html'), outlet: DemoPaginationStylingComponent }*/ ] }, { name: 'Installation', anchor: 'api-reference', tabName: 'api', outlet: ApiSectionsComponent, usage: require('!!raw-loader!./docs/usage.md'), importInfo: 'ng add ngx-bootstrap --component pagination', content: [ { title: 'PaginationComponent', anchor: 'pagination-component', outlet: NgApiDocComponent }, { title: 'PagerComponent', anchor: 'pager-component', outlet: NgApiDocComponent }, { title: 'PaginationConfig', anchor: 'pagination-config', outlet: NgApiDocConfigComponent }, { title: 'PaginationLinkContext', anchor: 'pagination-link-context', outlet: NgApiDocConfigComponent }, { title: 'PaginationNumberLinkContext', anchor: 'pagination-number-link-context', outlet: NgApiDocConfigComponent }, { title: 'PagesModel', anchor: 'pagination-models', outlet: NgApiDocConfigComponent } ] }, { name: 'Examples', anchor: 'examples', tabName: 'examples', outlet: ExamplesComponent, description: `

On small screens bootstrap4 pagination can be cropped

`, content: [ { title: 'Basic', anchor: 'basic-ex', outlet: DemoPaginationBasicComponent }, { title: 'Manual switching page', anchor: 'manual-switching-ex', outlet: DemoPaginationManualSwitchingComponent }, { title: 'Page changed event', anchor: 'page-changed-event-ex', outlet: DemoPaginationPageChangedComponent }, { title: 'Pages count changed event', anchor: 'pages-count-changed-ex', outlet: DemoPaginationPagesCountChangedComponent }, { title: 'Boundary links', anchor: 'boundary-links-ex', outlet: DemoPaginationBoundaryLinksComponent }, { title: 'Direction links', anchor: 'direction-links-ex', outlet: DemoPaginationDirectionLinksComponent }, { title: 'Custom links content', anchor: 'custom-links-content-ex', outlet: DemoPaginationCustomLinksContentComponent }, { title: 'Disabled', anchor: 'pagination-disabled-ex', outlet: DemoPaginationDisabledComponent }, { title: 'Limits', anchor: 'pagination-limit-ex', outlet: DemoPaginationLimitComponent }, { title: 'Centering the active page link', anchor: 'pagination-rotate-ex', outlet: DemoPaginationRotateComponent }, { title: 'Content switching', anchor: 'content-switching-ex', outlet: DemoPaginationContentSwitchingComponent }, { title: 'Pager', anchor: 'pagination-pager-ex', outlet: DemoPaginationPagerComponent }, { title: 'Custom Template', anchor: 'custom-template-ex', outlet: DemoPaginationCustomTemplateComponent } ] } ];