Skip to content

Commit

Permalink
feat(pagination): fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Leotheluck authored and dpellier committed Jul 29, 2024
1 parent d4c4f37 commit a465275
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/ods/react/tests/_app/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const componentNames = [
'datepicker',
'timepicker',
'range',
'pagination',
//--generator-anchor--
];

Expand Down
1 change: 1 addition & 0 deletions packages/ods/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ export * from './phone-number/src';
export * from './datepicker/src';
export * from './timepicker/src';
export * from './range/src';
export * from './pagination/src';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OdsSelectEventChangeDetail } from '../../components';
import type { OdsSelectEventChangeDetail } from '../../../../select/src';
import type { OdsPaginationChangedEventDetail, OdsPaginationItemPerPageChangedEventDetail } from '../../interfaces/events';
import type { OdsPaginationPageList } from '../../interfaces/pagination-page-list';
import type { EventEmitter, Fragment, FunctionalComponent } from '@stencil/core';
Expand Down
3 changes: 2 additions & 1 deletion packages/ods/src/components/pagination/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { OdsPagination } from './components/ods-pagination/ods-pagination';
export { ODS_PAGINATION_PER_PAGE, ODS_PAGINATION_PER_PAGE_OPTIONS } from './constants/pagination-per-page';
export { ODS_PAGINATION_PER_PAGE, ODS_PAGINATION_PER_PAGE_OPTIONS } from './constants/pagination-per-page';
export { OdsPaginationCurrentChangeEvent, OdsPaginationChangedEventDetail, OdsPaginationEvent, OdsPaginationItemPerPageChangedEvent, OdsPaginationItemPerPageChangedEventDetail } from './interfaces/events';
1 change: 1 addition & 0 deletions packages/ods/vue/tests/_app/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const componentNames = [
'datepicker',
'timepicker',
'range',
'pagination',
//--generator-anchor--
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { defineCustomElement } from '@ovhcloud/ods-components/dist/components/ods-pagination';
import { html } from 'lit-html';
import { CONTROL_CATEGORY, orderControls } from '../../control';
import { ODS_PAGINATION_PER_PAGE, ODS_PAGINATION_PER_PAGE_OPTIONS } from '@ovhcloud/ods-components';

defineCustomElement();

Expand Down Expand Up @@ -51,11 +52,11 @@ const totalItemsParam = {
defaultItemsPerPage: {
table: {
category: CONTROL_CATEGORY.general,
defaultValue: { summary: 10 },
defaultValue: { summary: ODS_PAGINATION_PER_PAGE.min },
type: { summary: 'number' },
},
control: 'select',
options: [10, 25, 50, 100, 300],
options: ODS_PAGINATION_PER_PAGE_OPTIONS,
},
totalItems: {
table: {
Expand Down Expand Up @@ -137,7 +138,7 @@ export const TotalItems: StoryObj = {
}),
args: {
defaultCurrentPage: 4,
defaultItemsPerPage: 10,
defaultItemsPerPage: ODS_PAGINATION_PER_PAGE.min,
isDisabled: false,
labelTooltipPrevious: 'Previous label',
labelTooltipNext: 'Next label',
Expand Down

0 comments on commit a465275

Please sign in to comment.