@patternfly/react-core 4.243.1 → 4.244.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/esm/components/Alert/Alert.d.ts +41 -34
- package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
- package/dist/esm/components/Alert/Alert.js.map +1 -1
- package/dist/esm/components/Alert/AlertActionCloseButton.d.ts +8 -5
- package/dist/esm/components/Alert/AlertActionCloseButton.d.ts.map +1 -1
- package/dist/esm/components/Alert/AlertActionCloseButton.js.map +1 -1
- package/dist/esm/components/Alert/AlertActionLink.d.ts +5 -2
- package/dist/esm/components/Alert/AlertActionLink.d.ts.map +1 -1
- package/dist/esm/components/Alert/AlertActionLink.js.map +1 -1
- package/dist/esm/components/Alert/AlertIcon.d.ts +4 -4
- package/dist/esm/components/Alert/AlertIcon.d.ts.map +1 -1
- package/dist/esm/components/Alert/AlertToggleExpandButton.d.ts +5 -5
- package/dist/esm/components/Alert/AlertToggleExpandButton.d.ts.map +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts +34 -28
- package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.js +1 -0
- package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.d.ts +43 -36
- package/dist/esm/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts +34 -24
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts +10 -5
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.js.map +1 -1
- package/dist/esm/components/FileUpload/FileUpload.d.ts +53 -47
- package/dist/esm/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/esm/components/FileUpload/FileUpload.js.map +1 -1
- package/dist/esm/components/FileUpload/FileUploadField.d.ts +51 -46
- package/dist/esm/components/FileUpload/FileUploadField.d.ts.map +1 -1
- package/dist/esm/components/FileUpload/FileUploadField.js.map +1 -1
- package/dist/esm/components/Modal/Modal.d.ts +57 -48
- package/dist/esm/components/Modal/Modal.d.ts.map +1 -1
- package/dist/esm/components/Modal/Modal.js.map +1 -1
- package/dist/esm/components/Modal/ModalBox.d.ts +12 -12
- package/dist/esm/components/Modal/ModalBox.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalBoxBody.d.ts +2 -2
- package/dist/esm/components/Modal/ModalBoxBody.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalBoxCloseButton.d.ts +2 -2
- package/dist/esm/components/Modal/ModalBoxCloseButton.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalBoxDescription.d.ts +3 -3
- package/dist/esm/components/Modal/ModalBoxDescription.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalBoxFooter.d.ts +2 -2
- package/dist/esm/components/Modal/ModalBoxFooter.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalBoxHeader.d.ts +3 -3
- package/dist/esm/components/Modal/ModalBoxHeader.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalBoxTitle.d.ts +8 -9
- package/dist/esm/components/Modal/ModalBoxTitle.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalBoxTitle.js.map +1 -1
- package/dist/esm/components/Modal/ModalContent.d.ts +56 -48
- package/dist/esm/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalContent.js.map +1 -1
- package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts +17 -13
- package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
- package/dist/esm/components/NotificationBadge/NotificationBadge.js +3 -3
- package/dist/esm/components/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/esm/components/Pagination/Navigation.d.ts +33 -33
- package/dist/esm/components/Pagination/Navigation.d.ts.map +1 -1
- package/dist/esm/components/Pagination/OptionsToggle.d.ts +27 -26
- package/dist/esm/components/Pagination/OptionsToggle.d.ts.map +1 -1
- package/dist/esm/components/Pagination/OptionsToggle.js.map +1 -1
- package/dist/esm/components/Pagination/Pagination.d.ts +76 -65
- package/dist/esm/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/esm/components/Pagination/Pagination.js +1 -1
- package/dist/esm/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts +22 -18
- package/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts.map +1 -1
- package/dist/esm/components/Pagination/PaginationOptionsMenu.js.map +1 -1
- package/dist/esm/components/Pagination/ToggleTemplate.d.ts +3 -0
- package/dist/esm/components/Pagination/ToggleTemplate.d.ts.map +1 -1
- package/dist/esm/components/Pagination/ToggleTemplate.js.map +1 -1
- package/dist/esm/components/Popover/Popover.d.ts +88 -73
- package/dist/esm/components/Popover/Popover.d.ts.map +1 -1
- package/dist/esm/components/Popover/Popover.js.map +1 -1
- package/dist/esm/components/SearchInput/AdvancedSearchMenu.d.ts +27 -26
- package/dist/esm/components/SearchInput/AdvancedSearchMenu.d.ts.map +1 -1
- package/dist/esm/components/SearchInput/AdvancedSearchMenu.js.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.d.ts +71 -60
- package/dist/esm/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/components/Slider/Slider.d.ts +45 -39
- package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
- package/dist/esm/components/Slider/Slider.js.map +1 -1
- package/dist/esm/components/Slider/SliderStep.d.ts +10 -10
- package/dist/esm/components/Slider/SliderStep.d.ts.map +1 -1
- package/dist/esm/components/TreeView/TreeView.d.ts +65 -53
- package/dist/esm/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/esm/components/TreeView/TreeView.js.map +1 -1
- package/dist/esm/components/TreeView/TreeViewList.d.ts +4 -4
- package/dist/esm/components/TreeView/TreeViewList.d.ts.map +1 -1
- package/dist/esm/components/TreeView/TreeViewListItem.d.ts +46 -39
- package/dist/esm/components/TreeView/TreeViewListItem.d.ts.map +1 -1
- package/dist/esm/components/TreeView/TreeViewListItem.js.map +1 -1
- package/dist/esm/components/TreeView/TreeViewRoot.d.ts +4 -4
- package/dist/esm/components/TreeView/TreeViewRoot.d.ts.map +1 -1
- package/dist/esm/components/TreeView/TreeViewSearch.d.ts +11 -8
- package/dist/esm/components/TreeView/TreeViewSearch.d.ts.map +1 -1
- package/dist/esm/components/TreeView/TreeViewSearch.js.map +1 -1
- package/dist/esm/helpers/Popper/Popper.js +8 -8
- package/dist/esm/helpers/Popper/Popper.js.map +1 -1
- package/dist/js/components/Alert/Alert.d.ts +41 -34
- package/dist/js/components/Alert/Alert.d.ts.map +1 -1
- package/dist/js/components/Alert/Alert.js.map +1 -1
- package/dist/js/components/Alert/AlertActionCloseButton.d.ts +8 -5
- package/dist/js/components/Alert/AlertActionCloseButton.d.ts.map +1 -1
- package/dist/js/components/Alert/AlertActionCloseButton.js.map +1 -1
- package/dist/js/components/Alert/AlertActionLink.d.ts +5 -2
- package/dist/js/components/Alert/AlertActionLink.d.ts.map +1 -1
- package/dist/js/components/Alert/AlertActionLink.js.map +1 -1
- package/dist/js/components/Alert/AlertIcon.d.ts +4 -4
- package/dist/js/components/Alert/AlertIcon.d.ts.map +1 -1
- package/dist/js/components/Alert/AlertToggleExpandButton.d.ts +5 -5
- package/dist/js/components/Alert/AlertToggleExpandButton.d.ts.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.d.ts +34 -28
- package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.js +1 -0
- package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/js/components/DatePicker/DatePicker.d.ts +43 -36
- package/dist/js/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/js/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts +34 -24
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts +10 -5
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.js.map +1 -1
- package/dist/js/components/FileUpload/FileUpload.d.ts +53 -47
- package/dist/js/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/js/components/FileUpload/FileUpload.js.map +1 -1
- package/dist/js/components/FileUpload/FileUploadField.d.ts +51 -46
- package/dist/js/components/FileUpload/FileUploadField.d.ts.map +1 -1
- package/dist/js/components/FileUpload/FileUploadField.js.map +1 -1
- package/dist/js/components/Modal/Modal.d.ts +57 -48
- package/dist/js/components/Modal/Modal.d.ts.map +1 -1
- package/dist/js/components/Modal/Modal.js.map +1 -1
- package/dist/js/components/Modal/ModalBox.d.ts +12 -12
- package/dist/js/components/Modal/ModalBox.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalBoxBody.d.ts +2 -2
- package/dist/js/components/Modal/ModalBoxBody.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalBoxCloseButton.d.ts +2 -2
- package/dist/js/components/Modal/ModalBoxCloseButton.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalBoxDescription.d.ts +3 -3
- package/dist/js/components/Modal/ModalBoxDescription.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalBoxFooter.d.ts +2 -2
- package/dist/js/components/Modal/ModalBoxFooter.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalBoxHeader.d.ts +3 -3
- package/dist/js/components/Modal/ModalBoxHeader.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalBoxTitle.d.ts +8 -9
- package/dist/js/components/Modal/ModalBoxTitle.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalBoxTitle.js.map +1 -1
- package/dist/js/components/Modal/ModalContent.d.ts +56 -48
- package/dist/js/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalContent.js.map +1 -1
- package/dist/js/components/NotificationBadge/NotificationBadge.d.ts +17 -13
- package/dist/js/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
- package/dist/js/components/NotificationBadge/NotificationBadge.js +3 -3
- package/dist/js/components/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/js/components/Pagination/Navigation.d.ts +33 -33
- package/dist/js/components/Pagination/Navigation.d.ts.map +1 -1
- package/dist/js/components/Pagination/OptionsToggle.d.ts +27 -26
- package/dist/js/components/Pagination/OptionsToggle.d.ts.map +1 -1
- package/dist/js/components/Pagination/OptionsToggle.js.map +1 -1
- package/dist/js/components/Pagination/Pagination.d.ts +76 -65
- package/dist/js/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/js/components/Pagination/Pagination.js +1 -1
- package/dist/js/components/Pagination/Pagination.js.map +1 -1
- package/dist/js/components/Pagination/PaginationOptionsMenu.d.ts +22 -18
- package/dist/js/components/Pagination/PaginationOptionsMenu.d.ts.map +1 -1
- package/dist/js/components/Pagination/PaginationOptionsMenu.js.map +1 -1
- package/dist/js/components/Pagination/ToggleTemplate.d.ts +3 -0
- package/dist/js/components/Pagination/ToggleTemplate.d.ts.map +1 -1
- package/dist/js/components/Pagination/ToggleTemplate.js.map +1 -1
- package/dist/js/components/Popover/Popover.d.ts +88 -73
- package/dist/js/components/Popover/Popover.d.ts.map +1 -1
- package/dist/js/components/Popover/Popover.js.map +1 -1
- package/dist/js/components/SearchInput/AdvancedSearchMenu.d.ts +27 -26
- package/dist/js/components/SearchInput/AdvancedSearchMenu.d.ts.map +1 -1
- package/dist/js/components/SearchInput/AdvancedSearchMenu.js.map +1 -1
- package/dist/js/components/SearchInput/SearchInput.d.ts +71 -60
- package/dist/js/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/js/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/js/components/Slider/Slider.d.ts +45 -39
- package/dist/js/components/Slider/Slider.d.ts.map +1 -1
- package/dist/js/components/Slider/Slider.js.map +1 -1
- package/dist/js/components/Slider/SliderStep.d.ts +10 -10
- package/dist/js/components/Slider/SliderStep.d.ts.map +1 -1
- package/dist/js/components/TreeView/TreeView.d.ts +65 -53
- package/dist/js/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/js/components/TreeView/TreeView.js.map +1 -1
- package/dist/js/components/TreeView/TreeViewList.d.ts +4 -4
- package/dist/js/components/TreeView/TreeViewList.d.ts.map +1 -1
- package/dist/js/components/TreeView/TreeViewListItem.d.ts +46 -39
- package/dist/js/components/TreeView/TreeViewListItem.d.ts.map +1 -1
- package/dist/js/components/TreeView/TreeViewListItem.js.map +1 -1
- package/dist/js/components/TreeView/TreeViewRoot.d.ts +4 -4
- package/dist/js/components/TreeView/TreeViewRoot.d.ts.map +1 -1
- package/dist/js/components/TreeView/TreeViewSearch.d.ts +11 -8
- package/dist/js/components/TreeView/TreeViewSearch.d.ts.map +1 -1
- package/dist/js/components/TreeView/TreeViewSearch.js.map +1 -1
- package/dist/js/helpers/Popper/Popper.js +8 -8
- package/dist/js/helpers/Popper/Popper.js.map +1 -1
- package/dist/umd/react-core.min.css +3634 -3634
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +2 -2
- package/src/components/Alert/Alert.tsx +42 -34
- package/src/components/Alert/AlertActionCloseButton.tsx +9 -5
- package/src/components/Alert/AlertActionLink.tsx +6 -2
- package/src/components/Alert/AlertIcon.tsx +4 -4
- package/src/components/Alert/AlertToggleExpandButton.tsx +5 -5
- package/src/components/Badge/__tests__/Badge.test.tsx +45 -8
- package/src/components/Badge/__tests__/__snapshots__/Badge.test.tsx.snap +2 -12
- package/src/components/CalendarMonth/CalendarMonth.tsx +36 -28
- package/src/components/DatePicker/DatePicker.tsx +45 -36
- package/src/components/ExpandableSection/ExpandableSection.tsx +35 -24
- package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +11 -5
- package/src/components/FileUpload/FileUpload.tsx +56 -49
- package/src/components/FileUpload/FileUploadField.tsx +56 -50
- package/src/components/Modal/Modal.tsx +57 -48
- package/src/components/Modal/ModalBox.tsx +12 -12
- package/src/components/Modal/ModalBoxBody.tsx +2 -2
- package/src/components/Modal/ModalBoxCloseButton.tsx +2 -2
- package/src/components/Modal/ModalBoxDescription.tsx +3 -3
- package/src/components/Modal/ModalBoxFooter.tsx +2 -2
- package/src/components/Modal/ModalBoxHeader.tsx +3 -3
- package/src/components/Modal/ModalBoxTitle.tsx +8 -9
- package/src/components/Modal/ModalContent.tsx +56 -48
- package/src/components/Modal/examples/Modal.md +1 -3
- package/src/components/NotificationBadge/NotificationBadge.tsx +22 -15
- package/src/components/NotificationBadge/__tests__/NotificationBadge.test.tsx +25 -1
- package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +5 -0
- package/src/components/NotificationBadge/examples/NotificationBadge.md +16 -3
- package/src/components/NotificationBadge/examples/NotificationBadgeBasic.tsx +26 -13
- package/src/components/NotificationBadge/examples/NotificationBadgeWithCount.tsx +28 -18
- package/src/components/Pagination/Navigation.tsx +33 -33
- package/src/components/Pagination/OptionsToggle.tsx +27 -26
- package/src/components/Pagination/Pagination.tsx +79 -65
- package/src/components/Pagination/PaginationOptionsMenu.tsx +22 -18
- package/src/components/Pagination/ToggleTemplate.tsx +4 -0
- package/src/components/Popover/Popover.tsx +89 -73
- package/src/components/SearchInput/AdvancedSearchMenu.tsx +29 -28
- package/src/components/SearchInput/SearchInput.tsx +76 -62
- package/src/components/Slider/Slider.tsx +47 -41
- package/src/components/Slider/SliderStep.tsx +10 -10
- package/src/components/TreeView/TreeView.tsx +67 -53
- package/src/components/TreeView/TreeViewList.tsx +4 -4
- package/src/components/TreeView/TreeViewListItem.tsx +46 -39
- package/src/components/TreeView/TreeViewRoot.tsx +4 -4
- package/src/components/TreeView/TreeViewSearch.tsx +12 -8
- package/src/demos/Masthead.md +9 -193
- package/src/demos/NotificationDrawer/NotificationDrawer.md +2 -0
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +305 -0
- package/src/helpers/Popper/Popper.tsx +8 -8
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ToggleTemplateProps } from './ToggleTemplate';
|
|
3
3
|
export interface OptionsToggleProps extends React.HTMLProps<HTMLDivElement> {
|
|
4
|
-
/** The
|
|
5
|
-
itemsTitle?: string;
|
|
6
|
-
/** Accessible label for the options toggle */
|
|
7
|
-
optionsToggle?: string;
|
|
8
|
-
/** The title of the pagination options menu */
|
|
9
|
-
itemsPerPageTitle?: string;
|
|
10
|
-
/** The first index of the items being paginated */
|
|
4
|
+
/** The first index of the items being paginated. */
|
|
11
5
|
firstIndex?: number;
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
/**
|
|
6
|
+
/** Flag indicating if the options menu is disabled. */
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
/** Flag indicating if the options menu dropdown is open or not. */
|
|
9
|
+
isOpen?: boolean;
|
|
10
|
+
/** The total number of items being paginated. */
|
|
15
11
|
itemCount?: number;
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
/**
|
|
12
|
+
/** The title of the pagination options menu. */
|
|
13
|
+
itemsPerPageTitle?: string;
|
|
14
|
+
/** The type or title of the items being paginated. */
|
|
15
|
+
itemsTitle?: string;
|
|
16
|
+
/** The last index of the items being paginated. */
|
|
17
|
+
lastIndex?: number;
|
|
18
|
+
/** Label for the English word "of". */
|
|
19
|
+
ofWord?: string;
|
|
20
|
+
/** Callback for toggle open on keyboard entry. */
|
|
21
|
+
onEnter?: () => void;
|
|
22
|
+
/** Event function that fires when user clicks the options menu toggle. */
|
|
21
23
|
onToggle?: (isOpen: boolean) => void;
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
/** Flag indicating if the options menu is disabled */
|
|
25
|
-
isDisabled?: boolean;
|
|
24
|
+
/** Accessible label for the options toggle. */
|
|
25
|
+
optionsToggle?: string;
|
|
26
26
|
/** */
|
|
27
27
|
parentRef?: HTMLElement;
|
|
28
|
-
/**
|
|
29
|
-
toggleTemplate?: ((props: ToggleTemplateProps) => React.ReactElement) | string;
|
|
30
|
-
/** Callback for toggle open on keyboard entry */
|
|
31
|
-
onEnter?: () => void;
|
|
32
|
-
/** Label for the English word "of" */
|
|
33
|
-
ofWord?: string;
|
|
34
|
-
/** Component to be used for wrapping the toggle contents. Use 'button' when you want
|
|
28
|
+
/** Component to be used for wrapping the toggle contents. Use "button" when you want
|
|
35
29
|
* all of the toggle text to be clickable.
|
|
36
30
|
*/
|
|
37
31
|
perPageComponent?: 'div' | 'button';
|
|
32
|
+
/** Flag for indicating whether the toggle should be shown. */
|
|
33
|
+
showToggle?: boolean;
|
|
34
|
+
/** This will be shown in pagination toggle span. You can use firstIndex, lastIndex,
|
|
35
|
+
* itemCount, and/or itemsTitle props. */
|
|
36
|
+
toggleTemplate?: ((props: ToggleTemplateProps) => React.ReactElement) | string;
|
|
37
|
+
/** Id added to the title of the pagination options menu. */
|
|
38
|
+
widgetId?: string;
|
|
38
39
|
}
|
|
39
40
|
export declare const OptionsToggle: React.FunctionComponent<OptionsToggleProps>;
|
|
40
41
|
//# sourceMappingURL=OptionsToggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsToggle.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/OptionsToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,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,CAAC;IAC/E,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CA6DrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsToggle.js","sourceRoot":"","sources":["../../../../src/components/Pagination/OptionsToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,kEAAkE,CAAC;AACtF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"OptionsToggle.js","sourceRoot":"","sources":["../../../../src/components/Pagination/OptionsToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,kEAAkE,CAAC;AACtF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAwC7C,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,MAAM,CAAC,MAAM,aAAa,GAAgD,CAAC,EACzE,UAAU,GAAG,OAAO,EACpB,aAAa;AACb,6DAA6D;AAC7D,iBAAiB,GAAG,gBAAgB,EACpC,MAAM,GAAG,IAAI,EACb,UAAU,GAAG,CAAC,EACd,SAAS,GAAG,CAAC,EACb,SAAS,EACT,QAAQ,GAAG,EAAE,EACb,UAAU,GAAG,IAAI;AACjB,6DAA6D;AAC7D,QAAQ,GAAG,CAAC,OAAgB,EAAE,EAAE,CAAC,SAAgB,EACjD,MAAM,GAAG,KAAK,EACd,UAAU,GAAG,K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AuB,CAAC,CAAC,CAAC,aAAa,EACjE,SAAS,EAAE,SAAS,mBACN,SAAS,IAEtB,CAAC,KAAK,IAAI,QAAQ,CACJ,CACF,CAClB,CAAC;IAEF,OAAO,KAAK,CAAC,CAAC,CAAC,6BAAK,SAAS,EAAE,aAAa,IAAG,QAAQ,CAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC5E,CAAC,CAAC;AACF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
|
|
@@ -3,104 +3,115 @@ import { ToggleTemplateProps } from './ToggleTemplate';
|
|
|
3
3
|
import { OUIAProps } from '../../helpers';
|
|
4
4
|
import { PickOptional } from '../../helpers';
|
|
5
5
|
export declare enum PaginationVariant {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
bottom = "bottom",
|
|
7
|
+
top = "top"
|
|
8
8
|
}
|
|
9
|
+
/** Properties to customize the content and behavior of the pagination dropdown options. These
|
|
10
|
+
* properties should be passed into the pagination component's perPageOptions property.
|
|
11
|
+
*/
|
|
9
12
|
export interface PerPageOptions {
|
|
10
|
-
/**
|
|
13
|
+
/** The text title of the option, which is rendered inside the pagination dropdown menu. */
|
|
11
14
|
title?: string;
|
|
12
|
-
/**
|
|
15
|
+
/** The value of the option, which determines how many items are displayed per page. */
|
|
13
16
|
value?: number;
|
|
14
17
|
}
|
|
18
|
+
/** Properties to customize various pagination titles. The following properties should be
|
|
19
|
+
* passed into the pagination component's title property.
|
|
20
|
+
*/
|
|
15
21
|
export interface PaginationTitles {
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
/** The title of
|
|
19
|
-
pages?: string;
|
|
20
|
-
/** The type or title of the items being paginated */
|
|
22
|
+
/** Accessible label for the input displaying the current page. */
|
|
23
|
+
currPage?: string;
|
|
24
|
+
/** The type or title of the items being paginated. */
|
|
21
25
|
items?: string;
|
|
22
|
-
/** The title of the pagination options menu */
|
|
26
|
+
/** The title of the pagination options menu. */
|
|
23
27
|
itemsPerPage?: string;
|
|
24
|
-
/**
|
|
28
|
+
/** Label for the English word "of". */
|
|
29
|
+
ofWord?: string;
|
|
30
|
+
/** Accessible label for the options toggle. */
|
|
31
|
+
optionsToggle?: string;
|
|
32
|
+
/** The title of a page displayed beside the page number. */
|
|
33
|
+
page?: string;
|
|
34
|
+
/** The title of a page displayed beside the page number (plural form). */
|
|
35
|
+
pages?: string;
|
|
36
|
+
/** Accessible label for the pagination component. */
|
|
37
|
+
paginationTitle?: string;
|
|
38
|
+
/** The suffix to be displayed after each option on the options menu dropdown. */
|
|
25
39
|
perPageSuffix?: string;
|
|
26
|
-
/** Accessible label for the button which moves to the first page */
|
|
40
|
+
/** Accessible label for the button which moves to the first page. */
|
|
27
41
|
toFirstPage?: string;
|
|
28
|
-
/** Accessible label for the button which moves to the
|
|
29
|
-
toPreviousPage?: string;
|
|
30
|
-
/** Accessible label for the button which moves to the last page */
|
|
42
|
+
/** Accessible label for the button which moves to the last page. */
|
|
31
43
|
toLastPage?: string;
|
|
32
|
-
/** Accessible label for the button which moves to the next page */
|
|
44
|
+
/** Accessible label for the button which moves to the next page. */
|
|
33
45
|
toNextPage?: string;
|
|
34
|
-
/** Accessible label for the
|
|
35
|
-
|
|
36
|
-
/** Accessible label for the input displaying the current page */
|
|
37
|
-
currPage?: string;
|
|
38
|
-
/** Accessible label for the pagination component */
|
|
39
|
-
paginationTitle?: string;
|
|
40
|
-
/** Accessible label for the English word "of" */
|
|
41
|
-
ofWord?: string;
|
|
46
|
+
/** Accessible label for the button which moves to the previous page. */
|
|
47
|
+
toPreviousPage?: string;
|
|
42
48
|
}
|
|
43
49
|
export declare type OnSetPage = (_evt: React.MouseEvent | React.KeyboardEvent | MouseEvent, newPage: number, perPage?: number, startIdx?: number, endIdx?: number) => void;
|
|
44
50
|
export declare type OnPerPageSelect = (_evt: React.MouseEvent | React.KeyboardEvent | MouseEvent, newPerPage: number, newPage: number, startIdx?: number, endIdx?: number) => void;
|
|
51
|
+
/** The main pagination component. */
|
|
45
52
|
export interface PaginationProps extends React.HTMLProps<HTMLDivElement>, OUIAProps {
|
|
46
|
-
/** What should be rendered inside */
|
|
53
|
+
/** What should be rendered inside the pagination. */
|
|
47
54
|
children?: React.ReactNode;
|
|
48
|
-
/** Additional classes for the container. */
|
|
55
|
+
/** Additional classes for the pagination container. */
|
|
49
56
|
className?: string;
|
|
50
|
-
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
+
/** Indicate whether to show last full page of results when user selects perPage value
|
|
58
|
+
* greater than remaining rows.
|
|
59
|
+
*/
|
|
60
|
+
defaultToFullPage?: boolean;
|
|
61
|
+
/** Direction of dropdown context menu. */
|
|
62
|
+
dropDirection?: 'up' | 'down';
|
|
63
|
+
/** Page to start at. */
|
|
64
|
+
firstPage?: number;
|
|
65
|
+
/** Flag indicating if pagination is compact. */
|
|
57
66
|
isCompact?: boolean;
|
|
58
|
-
/** Flag indicating if pagination
|
|
67
|
+
/** Flag indicating if pagination is disabled. */
|
|
68
|
+
isDisabled?: boolean;
|
|
69
|
+
/** Flag indicating if pagination should not be sticky on mobile. */
|
|
59
70
|
isStatic?: boolean;
|
|
60
|
-
/** Flag indicating if pagination should stick to its position (based on variant) */
|
|
71
|
+
/** Flag indicating if pagination should stick to its position (based on variant). */
|
|
61
72
|
isSticky?: boolean;
|
|
73
|
+
/** Total number of items. */
|
|
74
|
+
itemCount?: number;
|
|
75
|
+
/** Last index of items on current page. */
|
|
76
|
+
itemsEnd?: number;
|
|
77
|
+
/** First index of items on current page. */
|
|
78
|
+
itemsStart?: number;
|
|
79
|
+
/** Start index of rows to display, used in place of providing page. */
|
|
80
|
+
offset?: number;
|
|
81
|
+
/** Current page number. */
|
|
82
|
+
page?: number;
|
|
62
83
|
/** Number of items per page. */
|
|
63
84
|
perPage?: number;
|
|
64
|
-
/**
|
|
85
|
+
/** Component to be used for wrapping the toggle contents. Use "button" when you want
|
|
86
|
+
* all of the toggle text to be clickable.
|
|
87
|
+
*/
|
|
88
|
+
perPageComponent?: 'div' | 'button';
|
|
89
|
+
/** Array of the number of items per page options. */
|
|
65
90
|
perPageOptions?: PerPageOptions[];
|
|
66
|
-
/** Indicate whether to show last full page of results when user selects perPage value greater than remaining rows */
|
|
67
|
-
defaultToFullPage?: boolean;
|
|
68
|
-
/** Page we start at. */
|
|
69
|
-
firstPage?: number;
|
|
70
|
-
/** Current page number. */
|
|
71
|
-
page?: number;
|
|
72
|
-
/** Start index of rows to display, used in place of providing page */
|
|
73
|
-
offset?: number;
|
|
74
|
-
/** First index of items on current page. */
|
|
75
|
-
itemsStart?: number;
|
|
76
|
-
/** Last index of items on current page. */
|
|
77
|
-
itemsEnd?: number;
|
|
78
|
-
/** ID to ideintify widget on page. */
|
|
79
|
-
widgetId?: string;
|
|
80
|
-
/** Direction of dropdown context menu. */
|
|
81
|
-
dropDirection?: 'up' | 'down';
|
|
82
|
-
/** Object with titles to display in pagination. */
|
|
83
|
-
titles?: PaginationTitles;
|
|
84
|
-
/** This will be shown in pagination toggle span. You can use firstIndex, lastIndex, itemCount, itemsTitle, ofWord props. */
|
|
85
|
-
toggleTemplate?: ((props: ToggleTemplateProps) => React.ReactElement) | string;
|
|
86
|
-
/** Function called when user sets page. */
|
|
87
|
-
onSetPage?: OnSetPage;
|
|
88
91
|
/** Function called when user clicks on navigate to first page. */
|
|
89
92
|
onFirstClick?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
|
|
90
|
-
/** Function called when user clicks on navigate to previous page. */
|
|
91
|
-
onPreviousClick?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
|
|
92
|
-
/** Function called when user clicks on navigate to next page. */
|
|
93
|
-
onNextClick?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
|
|
94
93
|
/** Function called when user clicks on navigate to last page. */
|
|
95
94
|
onLastClick?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
|
|
95
|
+
/** Function called when user clicks on navigate to next page. */
|
|
96
|
+
onNextClick?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
|
|
96
97
|
/** Function called when user inputs page number. */
|
|
97
98
|
onPageInput?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
|
|
98
99
|
/** Function called when user selects number of items per page. */
|
|
99
100
|
onPerPageSelect?: OnPerPageSelect;
|
|
100
|
-
/**
|
|
101
|
-
|
|
101
|
+
/** Function called when user clicks on navigate to previous page. */
|
|
102
|
+
onPreviousClick?: (event: React.SyntheticEvent<HTMLButtonElement>, page: number) => void;
|
|
103
|
+
/** Function called when user sets page. */
|
|
104
|
+
onSetPage?: OnSetPage;
|
|
105
|
+
/** Object with titles to display in pagination. */
|
|
106
|
+
titles?: PaginationTitles;
|
|
107
|
+
/** This will be shown in pagination toggle span. You can use firstIndex, lastIndex,
|
|
108
|
+
* itemCount, itemsTitle, and/or ofWord props.
|
|
102
109
|
*/
|
|
103
|
-
|
|
110
|
+
toggleTemplate?: ((props: ToggleTemplateProps) => React.ReactElement) | string;
|
|
111
|
+
/** Position where pagination is rendered. */
|
|
112
|
+
variant?: 'top' | 'bottom' | PaginationVariant;
|
|
113
|
+
/** Id to ideintify widget on page. */
|
|
114
|
+
widgetId?: string;
|
|
104
115
|
}
|
|
105
116
|
export declare class Pagination extends React.Component<PaginationProps, {
|
|
106
117
|
ouiaStateId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAkB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvE,OAAO,EAAgB,SAAS,EAAoB,MAAM,eAAe,CAAC;AAE1E,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,oBAAY,iBAAiB;IAC3B,
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts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tC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAeD,qBAAa,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;IACvF,MAAM,CAAC,WAAW,SAAgB;IAClC,aAAa,kCAAqC;IAClD,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,eAAe,CAAC,CAwChD;IAEF,KAAK;;MAEH;IAEF,WAAW;IAMX,iBAAiB;IAKjB,kBAAkB,CAAC,SAAS,EAAE,eAAe,GAAG,SAAS;IAMzD,MAAM;CAiJP"}
|
|
@@ -10,8 +10,8 @@ import { getOUIAProps, getDefaultOUIAId } from '../../helpers';
|
|
|
10
10
|
import widthChars from '@patternfly/react-tokens/dist/esm/c_pagination__nav_page_select_c_form_control_width_chars';
|
|
11
11
|
export var PaginationVariant;
|
|
12
12
|
(function (PaginationVariant) {
|
|
13
|
-
PaginationVariant["top"] = "top";
|
|
14
13
|
PaginationVariant["bottom"] = "bottom";
|
|
14
|
+
PaginationVariant["top"] = "top";
|
|
15
15
|
})(PaginationVariant || (PaginationVariant = {}));
|
|
16
16
|
const defaultPerPageOptions = [
|
|
17
17
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAuB,MAAM,kBAAkB,CAAC;AACvE,OAAO,MAAM,MAAM,+DAA+D,CAAC;AACnF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAa,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,UAAU,MAAM,4FAA4F,CAAC;AAGpH,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,
|
|
1
|
+
{"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAuB,MAAM,kBAAkB,CAAC;AACvE,OAAO,MAAM,MAAM,+DAA+D,CAAC;AACnF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAa,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,UAAU,MAAM,4FAA4F,CAAC;AAGpH,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,gCAAW,CAAA;AACb,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED,MAAM,qBAAqB,GAAG;IAC5B;QACE,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,EAAE;KACV;IACD;QACE,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,EAAE;KACV;IACD;QACE,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,EAAE;KACV;IACD;QACE,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,GAAG;KACX;CACF,CAAC;AAiIF,MAAM,gBAAgB,GAAG,CAAC,QAAgB,EAAE,IAAoB,EAAE,EAAE;IAClE,IAAI,CAAC,IAAI,EAAE;QACT,OAAO;KACR;IACD,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,C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BAAiB;QAC7B,aAAa,EAAE,EAAE;QACjB,QAAQ,EAAE,cAAc;QACxB,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE,IAAI;KACb;IACD,SAAS,EAAE,CAAC;IACZ,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,IAAI;IACd,cAAc,EAAE,qBAAqB;IACrC,QAAQ,EAAE,yBAAyB;IACnC,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS;IAC1B,eAAe,EAAE,GAAG,EAAE,CAAC,SAAS;IAChC,YAAY,EAAE,GAAG,EAAE,CAAC,SAAS;IAC7B,eAAe,EAAE,GAAG,EAAE,CAAC,SAAS;IAChC,WAAW,EAAE,GAAG,EAAE,CAAC,SAAS;IAC5B,WAAW,EAAE,GAAG,EAAE,CAAC,SAAS;IAC5B,WAAW,EAAE,GAAG,EAAE,CAAC,SAAS;IAC5B,QAAQ,EAAE,IAAI;IACd,gBAAgB,EAAE,KAAK;CACxB,CAAC"}
|
|
@@ -2,43 +2,47 @@ import * as React from 'react';
|
|
|
2
2
|
import { ToggleTemplateProps } from './ToggleTemplate';
|
|
3
3
|
import { PerPageOptions, OnPerPageSelect } from './Pagination';
|
|
4
4
|
export interface PaginationOptionsMenuProps extends React.HTMLProps<HTMLDivElement> {
|
|
5
|
-
/** Custom class name added to the pagination options menu */
|
|
5
|
+
/** Custom class name added to the pagination options menu. */
|
|
6
6
|
className?: string;
|
|
7
|
-
/** Id added to the title of the
|
|
7
|
+
/** Id added to the title of the pagination options menu. */
|
|
8
8
|
widgetId?: string;
|
|
9
|
-
/** Flag indicating if pagination options menu is disabled */
|
|
9
|
+
/** Flag indicating if pagination options menu is disabled. */
|
|
10
10
|
isDisabled?: boolean;
|
|
11
|
-
/** Menu will open up or open down from the options menu toggle */
|
|
11
|
+
/** Menu will open up or open down from the options menu toggle. */
|
|
12
12
|
dropDirection?: 'up' | 'down';
|
|
13
|
-
/** Array of titles and values which will be the options on the options menu dropdown */
|
|
13
|
+
/** Array of titles and values which will be the options on the options menu dropdown. */
|
|
14
14
|
perPageOptions?: PerPageOptions[];
|
|
15
|
-
/** The title of the pagination options menu */
|
|
15
|
+
/** The title of the pagination options menu. */
|
|
16
16
|
itemsPerPageTitle?: string;
|
|
17
|
-
/** Current page number */
|
|
17
|
+
/** Current page number. */
|
|
18
18
|
page?: number;
|
|
19
|
-
/** The suffix to be displayed after each option on the options menu dropdown */
|
|
19
|
+
/** The suffix to be displayed after each option on the options menu dropdown. */
|
|
20
20
|
perPageSuffix?: string;
|
|
21
|
-
/** The type or title of the items being paginated */
|
|
21
|
+
/** The type or title of the items being paginated. */
|
|
22
22
|
itemsTitle?: string;
|
|
23
|
-
/** Accessible label for the options toggle */
|
|
23
|
+
/** Accessible label for the options toggle. */
|
|
24
24
|
optionsToggle?: string;
|
|
25
|
-
/** The total number of items being paginated */
|
|
25
|
+
/** The total number of items being paginated. */
|
|
26
26
|
itemCount?: number;
|
|
27
|
-
/** The first index of the items being paginated */
|
|
27
|
+
/** The first index of the items being paginated. */
|
|
28
28
|
firstIndex?: number;
|
|
29
|
-
/** The last index of the items being paginated */
|
|
29
|
+
/** The last index of the items being paginated. */
|
|
30
30
|
lastIndex?: number;
|
|
31
|
-
/** Flag to show last full page of results
|
|
31
|
+
/** Flag to indicate whether to show last full page of results when user selects perPage
|
|
32
|
+
* value that is greater than remaining rows.
|
|
33
|
+
*/
|
|
32
34
|
defaultToFullPage?: boolean;
|
|
33
|
-
/** The number of items to be displayed per page */
|
|
35
|
+
/** The number of items to be displayed per page. */
|
|
34
36
|
perPage?: number;
|
|
35
|
-
/** The number of the last page */
|
|
37
|
+
/** The number of the last page. */
|
|
36
38
|
lastPage?: number;
|
|
37
|
-
/** This will be shown in pagination toggle span. You can use firstIndex, lastIndex,
|
|
39
|
+
/** This will be shown in pagination toggle span. You can use firstIndex, lastIndex,
|
|
40
|
+
* itemCount, and/or itemsTitle props.
|
|
41
|
+
*/
|
|
38
42
|
toggleTemplate: ((props: ToggleTemplateProps) => React.ReactElement) | string;
|
|
39
43
|
/** Function called when user selects number of items per page. */
|
|
40
44
|
onPerPageSelect?: OnPerPageSelect;
|
|
41
|
-
/** Label for the English word "of" */
|
|
45
|
+
/** Label for the English word "of". */
|
|
42
46
|
ofWord?: string;
|
|
43
47
|
/** Component to be used for wrapping the toggle contents. Use 'button' when you want
|
|
44
48
|
* all of the toggle text to be clickable.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationOptionsMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/PaginationOptionsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,mBAAmB,EAAkB,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/D,MAAM,WAAW,0BAA2B,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACjF,
|
|
1
|
+
{"version":3,"file":"PaginationOptionsMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/PaginationOptionsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,mBAAmB,EAAkB,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/D,MAAM,WAAW,0BAA2B,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACjF,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mEAAmE;IACnE,aAAa,CAAC,EAAE,IAAI,GAAG,MAAM,CAA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;IAEF,gBAAgB,SAAU,gBAAgB,GAAG,mBAAmB,GAAG,UAAU,cAAc,MAAM,UAkB/F;IAEF,WAAW,sBAoBT;IAEF,MAAM;CAgEP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationOptionsMenu.js","sourceRoot":"","sources":["../../../../src/components/Pagination/PaginationOptionsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,kEAAkE,CAAC;AACtF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,SAAS,MAAM,mDAAmD,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAuB,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"PaginationOptionsMenu.js","sourceRoot":"","sources":["../../../../src/components/Pagination/PaginationOptionsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,kEAAkE,CAAC;AACtF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,SAAS,MAAM,mDAAmD,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAuB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAwDvE,MAAM,OAAO,qBAAsB,SAAQ,KAAK,CAAC,SAAiE;IAuBhH,YAAY,KAAiC;QAC3C,KAAK,CAAC,KAAK,CAAC,CAAC;QAtBP,cAAS,GAAG,KAAK,CAAC,SAA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UAAU,EAAE,OAAO;IACnB,cAAc,EAAE,cAAc;IAC9B,eAAe,EAAE,GAAG,EAAE,CAAC,IAAW;IAClC,gBAAgB,EAAE,KAAK;CACxB,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
/** Allows more customization of the pagination dropdown toggle. The following properties
|
|
3
|
+
* should be passed into the pagination component's toggleTemplate property.
|
|
4
|
+
*/
|
|
2
5
|
export interface ToggleTemplateProps {
|
|
3
6
|
/** The first index of the items being paginated */
|
|
4
7
|
firstIndex?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/ToggleTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAavE,CAAC"}
|
|
1
|
+
{"version":3,"file":"ToggleTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/ToggleTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;GAEG;AAEH,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAavE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleTemplate.js","sourceRoot":"","sources":["../../../../src/components/Pagination/ToggleTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ToggleTemplate.js","sourceRoot":"","sources":["../../../../src/components/Pagination/ToggleTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,MAAM,CAAC,MAAM,cAAc,GAAiD,CAAC,EAC3E,UAAU,GAAG,CAAC,EACd,SAAS,GAAG,CAAC,EACb,SAAS,GAAG,CAAC,EACb,UAAU,GAAG,OAAO,EACpB,MAAM,GAAG,IAAI,EACO,EAAE,EAAE,CAAC,CACzB,oBAAC,KAAK,CAAC,QAAQ;IACb;QACG,UAAU;;QAAK,SAAS,CACvB;IAAC,GAAG;IACP,MAAM;;IAAE,+BAAI,SAAS,CAAK;;IAAE,UAAU,CACxB,CAClB,CAAC;AACF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC"}
|