@redhat-cloud-services/frontend-components 3.4.14 → 3.6.1
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/Ansible/Ansible.d.ts +13 -0
- package/Ansible/Ansible.js +56 -91
- package/Ansible/Ansible.js.map +1 -0
- package/Ansible/index.d.ts +1 -0
- package/Ansible/index.js +10 -20
- package/Ansible/index.js.map +1 -0
- package/Ansible/package.json +1 -1
- package/AsyncComponent/index.d.ts +3 -0
- package/AsyncComponent/index.js +47 -87
- package/AsyncComponent/index.js.map +1 -0
- package/AsyncComponent/package.json +1 -1
- package/Battery/Battery.d.ts +11 -0
- package/Battery/Battery.js +83 -125
- package/Battery/Battery.js.map +1 -0
- package/Battery/CriticalBattery.d.ts +3 -0
- package/Battery/CriticalBattery.js +7 -22
- package/Battery/CriticalBattery.js.map +1 -0
- package/Battery/HighBattery.d.ts +3 -0
- package/Battery/HighBattery.js +7 -18
- package/Battery/HighBattery.js.map +1 -0
- package/Battery/LowBattery.d.ts +3 -0
- package/Battery/LowBattery.js +7 -18
- package/Battery/LowBattery.js.map +1 -0
- package/Battery/MediumBattery.d.ts +3 -0
- package/Battery/MediumBattery.js +7 -18
- package/Battery/MediumBattery.js.map +1 -0
- package/Battery/NullBattery.d.ts +3 -0
- package/Battery/NullBattery.js +7 -18
- package/Battery/NullBattery.js.map +1 -0
- package/Battery/index.d.ts +7 -0
- package/Battery/index.js +20 -60
- package/Battery/index.js.map +1 -0
- package/Battery/package.json +1 -1
- package/Breadcrumbs/Breadcrumbs.d.ts +28 -0
- package/Breadcrumbs/Breadcrumbs.js +53 -67
- package/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/Breadcrumbs/ConnectedBreadcrumbs.d.ts +2 -0
- package/Breadcrumbs/ConnectedBreadcrumbs.js +52 -73
- package/Breadcrumbs/ConnectedBreadcrumbs.js.map +1 -0
- package/Breadcrumbs/index.d.ts +2 -0
- package/Breadcrumbs/index.js +12 -28
- package/Breadcrumbs/index.js.map +1 -0
- package/Breadcrumbs/package.json +1 -1
- package/BulkSelect/BulkSelect.d.ts +23 -0
- package/BulkSelect/BulkSelect.js +75 -191
- package/BulkSelect/BulkSelect.js.map +1 -0
- package/BulkSelect/index.d.ts +2 -0
- package/BulkSelect/index.js +10 -20
- package/BulkSelect/index.js.map +1 -0
- package/BulkSelect/package.json +1 -1
- package/ConditionalFilter/CheckboxFilter.d.ts +38 -0
- package/ConditionalFilter/CheckboxFilter.js +145 -208
- package/ConditionalFilter/CheckboxFilter.js.map +1 -0
- package/ConditionalFilter/ConditionalFilter.d.ts +58 -0
- package/ConditionalFilter/ConditionalFilter.js +184 -262
- package/ConditionalFilter/ConditionalFilter.js.map +1 -0
- package/ConditionalFilter/GroupFilter.d.ts +47 -0
- package/ConditionalFilter/GroupFilter.js +151 -261
- package/ConditionalFilter/GroupFilter.js.map +1 -0
- package/ConditionalFilter/RadioFilter.d.ts +37 -0
- package/ConditionalFilter/RadioFilter.js +125 -167
- package/ConditionalFilter/RadioFilter.js.map +1 -0
- package/ConditionalFilter/TextFilter.d.ts +27 -0
- package/ConditionalFilter/TextFilter.js +102 -124
- package/ConditionalFilter/TextFilter.js.map +1 -0
- package/ConditionalFilter/conditionalFilterConstants.d.ts +19 -0
- package/ConditionalFilter/conditionalFilterConstants.js +22 -31
- package/ConditionalFilter/conditionalFilterConstants.js.map +1 -0
- package/ConditionalFilter/groupFilterConstants.d.ts +7 -0
- package/ConditionalFilter/groupFilterConstants.js +149 -187
- package/ConditionalFilter/groupFilterConstants.js.map +1 -0
- package/ConditionalFilter/groupType.d.ts +8 -0
- package/ConditionalFilter/groupType.js +8 -12
- package/ConditionalFilter/groupType.js.map +1 -0
- package/ConditionalFilter/index.d.ts +7 -0
- package/ConditionalFilter/index.js +30 -81
- package/ConditionalFilter/index.js.map +1 -0
- package/ConditionalFilter/package.json +1 -1
- package/CullingInfo/CullingInformation.d.ts +31 -0
- package/CullingInfo/CullingInformation.js +85 -102
- package/CullingInfo/CullingInformation.js.map +1 -0
- package/CullingInfo/index.d.ts +1 -0
- package/CullingInfo/index.js +10 -20
- package/CullingInfo/index.js.map +1 -0
- package/CullingInfo/package.json +1 -1
- package/Dark/Dark.d.ts +3 -0
- package/Dark/Dark.js +35 -0
- package/Dark/Dark.js.map +1 -0
- package/Dark/DarkContext.d.ts +4 -0
- package/Dark/DarkContext.js +7 -30
- package/Dark/DarkContext.js.map +1 -0
- package/Dark/index.d.ts +3 -3
- package/Dark/index.js +12 -28
- package/Dark/index.js.map +1 -0
- package/DateFormat/DateFormat.d.ts +16 -0
- package/DateFormat/DateFormat.js +20 -48
- package/DateFormat/DateFormat.js.map +1 -0
- package/DateFormat/helper.d.ts +3 -0
- package/DateFormat/helper.js +51 -99
- package/DateFormat/helper.js.map +1 -0
- package/DateFormat/index.d.ts +2 -0
- package/DateFormat/index.js +20 -36
- package/DateFormat/index.js.map +1 -0
- package/DateFormat/package.json +1 -1
- package/DownloadButton/DownloadButton.d.ts +24 -0
- package/DownloadButton/DownloadButton.js +112 -142
- package/DownloadButton/DownloadButton.js.map +1 -0
- package/DownloadButton/index.d.ts +1 -0
- package/DownloadButton/index.js +10 -20
- package/DownloadButton/index.js.map +1 -0
- package/DownloadButton/package.json +1 -1
- package/EmptyTable/EmptyTable.d.ts +15 -0
- package/EmptyTable/EmptyTable.js +42 -37
- package/EmptyTable/EmptyTable.js.map +1 -0
- package/EmptyTable/index.d.ts +2 -0
- package/EmptyTable/index.js +10 -22
- package/EmptyTable/index.js.map +1 -0
- package/EmptyTable/package.json +1 -1
- package/ErrorState/DefaultErrorMessage.d.ts +2 -0
- package/ErrorState/DefaultErrorMessage.js +16 -21
- package/ErrorState/DefaultErrorMessage.js.map +1 -0
- package/ErrorState/ErrorState.d.ts +9 -0
- package/ErrorState/ErrorState.js +41 -69
- package/ErrorState/ErrorState.js.map +1 -0
- package/ErrorState/index.d.ts +3 -0
- package/ErrorState/index.js +12 -28
- package/ErrorState/index.js.map +1 -0
- package/ErrorState/package.json +1 -1
- package/FilterChips/FilterChips.d.ts +39 -0
- package/FilterChips/FilterChips.js +71 -117
- package/FilterChips/FilterChips.js.map +1 -0
- package/FilterChips/index.d.ts +1 -0
- package/FilterChips/index.js +10 -20
- package/FilterChips/index.js.map +1 -0
- package/FilterChips/package.json +1 -1
- package/FilterHooks/constants.d.ts +3 -0
- package/FilterHooks/constants.js +109 -128
- package/FilterHooks/constants.js.map +1 -0
- package/FilterHooks/index.d.ts +3 -0
- package/FilterHooks/index.js +17 -39
- package/FilterHooks/index.js.map +1 -0
- package/FilterHooks/package.json +1 -1
- package/FilterHooks/tagFilterHook.d.ts +45 -0
- package/FilterHooks/tagFilterHook.js +118 -146
- package/FilterHooks/tagFilterHook.js.map +1 -0
- package/Filters/FilterDropdown.d.ts +43 -0
- package/Filters/FilterDropdown.js +105 -159
- package/Filters/FilterDropdown.js.map +1 -0
- package/Filters/FilterInput.d.ts +37 -0
- package/Filters/FilterInput.js +109 -164
- package/Filters/FilterInput.js.map +1 -0
- package/Filters/index.d.ts +2 -0
- package/Filters/index.js +10 -22
- package/Filters/index.js.map +1 -0
- package/Filters/package.json +1 -1
- package/Input/Input.d.ts +23 -0
- package/Input/Input.js +44 -50
- package/Input/Input.js.map +1 -0
- package/Input/LabeledInput.d.ts +17 -0
- package/Input/LabeledInput.js +43 -44
- package/Input/LabeledInput.js.map +1 -0
- package/Input/index.d.ts +2 -0
- package/Input/index.js +12 -28
- package/Input/index.js.map +1 -0
- package/Input/package.json +1 -1
- package/InsightsLabel/CriticalIcon.d.ts +3 -0
- package/InsightsLabel/CriticalIcon.js +9 -22
- package/InsightsLabel/CriticalIcon.js.map +1 -0
- package/InsightsLabel/InsightsLabel.d.ts +14 -0
- package/InsightsLabel/InsightsLabel.js +42 -67
- package/InsightsLabel/InsightsLabel.js.map +1 -0
- package/InsightsLabel/index.d.ts +3 -0
- package/InsightsLabel/index.js +12 -28
- package/InsightsLabel/index.js.map +1 -0
- package/InsightsLabel/package.json +1 -1
- package/InvalidObject/InvalidObject.d.ts +4 -0
- package/InvalidObject/InvalidObject.js +40 -42
- package/InvalidObject/InvalidObject.js.map +1 -0
- package/InvalidObject/icon-404.d.ts +4 -0
- package/InvalidObject/icon-404.js +50 -202
- package/InvalidObject/icon-404.js.map +1 -0
- package/InvalidObject/index.d.ts +3 -0
- package/InvalidObject/index.js +12 -28
- package/InvalidObject/index.js.map +1 -0
- package/InvalidObject/package.json +1 -1
- package/Inventory/AppInfo.d.ts +3 -0
- package/Inventory/AppInfo.js +53 -73
- package/Inventory/AppInfo.js.map +1 -0
- package/Inventory/DetailWrapper.d.ts +3 -0
- package/Inventory/DetailWrapper.js +53 -73
- package/Inventory/DetailWrapper.js.map +1 -0
- package/Inventory/InventoryDetail.d.ts +3 -0
- package/Inventory/InventoryDetail.js +53 -73
- package/Inventory/InventoryDetail.js.map +1 -0
- package/Inventory/InventoryDetailHead.d.ts +3 -0
- package/Inventory/InventoryDetailHead.js +53 -73
- package/Inventory/InventoryDetailHead.js.map +1 -0
- package/Inventory/InventoryLoadError.d.ts +6 -0
- package/Inventory/InventoryLoadError.js +43 -31
- package/Inventory/InventoryLoadError.js.map +1 -0
- package/Inventory/InventoryTable.d.ts +3 -0
- package/Inventory/InventoryTable.js +53 -73
- package/Inventory/InventoryTable.js.map +1 -0
- package/Inventory/TagWithDialog.d.ts +3 -0
- package/Inventory/TagWithDialog.js +53 -78
- package/Inventory/TagWithDialog.js.map +1 -0
- package/Inventory/index.d.ts +7 -0
- package/Inventory/index.js +20 -62
- package/Inventory/index.js.map +1 -0
- package/Inventory/package.json +1 -1
- package/LongTextTooltip/LongTextTooltip.d.ts +25 -0
- package/LongTextTooltip/LongTextTooltip.js +68 -75
- package/LongTextTooltip/LongTextTooltip.js.map +1 -0
- package/LongTextTooltip/index.d.ts +2 -0
- package/LongTextTooltip/index.js +10 -22
- package/LongTextTooltip/index.js.map +1 -0
- package/LongTextTooltip/package.json +1 -1
- package/Main/Main.d.ts +25 -0
- package/Main/Main.js +86 -150
- package/Main/Main.js.map +1 -0
- package/Main/index.js +10 -20
- package/Main/index.js.map +1 -0
- package/Maintenance/Maintenance.d.ts +15 -0
- package/Maintenance/Maintenance.js +55 -77
- package/Maintenance/Maintenance.js.map +1 -0
- package/Maintenance/index.d.ts +2 -0
- package/Maintenance/index.js +10 -20
- package/Maintenance/index.js.map +1 -0
- package/Maintenance/package.json +1 -1
- package/NotAuthorized/NotAuthorized.d.ts +16 -0
- package/NotAuthorized/NotAuthorized.js +43 -97
- package/NotAuthorized/NotAuthorized.js.map +1 -0
- package/NotAuthorized/index.d.ts +2 -0
- package/NotAuthorized/index.js +10 -20
- package/NotAuthorized/index.js.map +1 -0
- package/NotAuthorized/package.json +1 -1
- package/NotConnected/NotConnected.d.ts +22 -0
- package/NotConnected/NotConnected.js +23 -50
- package/NotConnected/NotConnected.js.map +1 -0
- package/NotConnected/index.d.ts +1 -0
- package/NotConnected/index.js +10 -20
- package/NotConnected/index.js.map +1 -0
- package/NotConnected/package.json +1 -1
- package/PageHeader/PageHeader.d.ts +7 -0
- package/PageHeader/PageHeader.js +40 -46
- package/PageHeader/PageHeader.js.map +1 -0
- package/PageHeader/PageHeaderTitle.d.ts +7 -0
- package/PageHeader/PageHeaderTitle.js +13 -36
- package/PageHeader/PageHeaderTitle.js.map +1 -0
- package/PageHeader/index.js +12 -28
- package/PageHeader/index.js.map +1 -0
- package/Pagination/Pagination.d.ts +32 -0
- package/Pagination/Pagination.js +109 -139
- package/Pagination/Pagination.js.map +1 -0
- package/Pagination/PaginationMenu.d.ts +34 -0
- package/Pagination/PaginationMenu.js +125 -154
- package/Pagination/PaginationMenu.js.map +1 -0
- package/Pagination/PaginationNav.d.ts +39 -0
- package/Pagination/PaginationNav.js +78 -125
- package/Pagination/PaginationNav.js.map +1 -0
- package/Pagination/PaginationNext.d.ts +31 -0
- package/Pagination/PaginationNext.js +97 -118
- package/Pagination/PaginationNext.js.map +1 -0
- package/Pagination/index.d.ts +5 -0
- package/Pagination/index.js +26 -68
- package/Pagination/index.js.map +1 -0
- package/Pagination/package.json +1 -1
- package/PrimaryToolbar/Actions.d.ts +36 -0
- package/PrimaryToolbar/Actions.js +128 -187
- package/PrimaryToolbar/Actions.js.map +1 -0
- package/PrimaryToolbar/PrimaryToolbar.d.ts +83 -0
- package/PrimaryToolbar/PrimaryToolbar.js +146 -188
- package/PrimaryToolbar/PrimaryToolbar.js.map +1 -0
- package/PrimaryToolbar/SortBy.d.ts +20 -0
- package/PrimaryToolbar/SortBy.js +21 -45
- package/PrimaryToolbar/SortBy.js.map +1 -0
- package/PrimaryToolbar/index.d.ts +4 -0
- package/PrimaryToolbar/index.js +24 -58
- package/PrimaryToolbar/index.js.map +1 -0
- package/PrimaryToolbar/package.json +1 -1
- package/Reboot/Reboot.d.ts +13 -0
- package/Reboot/Reboot.js +42 -37
- package/Reboot/Reboot.js.map +1 -0
- package/Reboot/index.d.ts +1 -0
- package/Reboot/index.js +10 -20
- package/Reboot/index.js.map +1 -0
- package/Reboot/package.json +1 -1
- package/Section/Section.d.ts +8 -0
- package/Section/Section.js +38 -38
- package/Section/Section.js.map +1 -0
- package/Section/index.js +10 -20
- package/Section/index.js.map +1 -0
- package/Shield/Shield.d.ts +11 -0
- package/Shield/Shield.js +35 -57
- package/Shield/Shield.js.map +1 -0
- package/Shield/consts.d.ts +70 -0
- package/Shield/consts.js +70 -82
- package/Shield/consts.js.map +1 -0
- package/Shield/index.d.ts +3 -0
- package/Shield/index.js +20 -36
- package/Shield/index.js.map +1 -0
- package/Shield/package.json +1 -1
- package/SimpleTableFilter/SimpleTableFilter.d.ts +47 -0
- package/SimpleTableFilter/SimpleTableFilter.js +135 -188
- package/SimpleTableFilter/SimpleTableFilter.js.map +1 -0
- package/SimpleTableFilter/index.d.ts +1 -0
- package/SimpleTableFilter/index.js +10 -20
- package/SimpleTableFilter/index.js.map +1 -0
- package/SimpleTableFilter/package.json +1 -1
- package/Skeleton/Skeleton.d.ts +15 -0
- package/Skeleton/Skeleton.js +36 -49
- package/Skeleton/Skeleton.js.map +1 -0
- package/Skeleton/index.js +11 -30
- package/Skeleton/index.js.map +1 -0
- package/Skeleton/skeleton.css +14 -35
- package/Skeleton/skeleton.scss +14 -30
- package/SkeletonTable/SkeletonTable.css +3 -0
- package/SkeletonTable/SkeletonTable.d.ts +51 -0
- package/SkeletonTable/SkeletonTable.js +93 -140
- package/SkeletonTable/SkeletonTable.js.map +1 -0
- package/SkeletonTable/SkeletonTable.scss +3 -0
- package/SkeletonTable/index.d.ts +1 -0
- package/SkeletonTable/index.js +10 -20
- package/SkeletonTable/index.js.map +1 -0
- package/SkeletonTable/package.json +1 -1
- package/Spinner/Spinner.d.ts +8 -0
- package/Spinner/Spinner.js +36 -39
- package/Spinner/Spinner.js.map +1 -0
- package/Spinner/index.js +10 -20
- package/Spinner/index.js.map +1 -0
- package/TabLayout/TabLayout.d.ts +28 -0
- package/TabLayout/TabLayout.js +46 -61
- package/TabLayout/TabLayout.js.map +1 -0
- package/TabLayout/index.d.ts +1 -0
- package/TabLayout/index.js +10 -20
- package/TabLayout/index.js.map +1 -0
- package/TabLayout/package.json +1 -1
- package/TableToolbar/TableToolbar.d.ts +27 -0
- package/TableToolbar/TableToolbar.js +83 -73
- package/TableToolbar/TableToolbar.js.map +1 -0
- package/TableToolbar/index.d.ts +2 -0
- package/TableToolbar/index.js +10 -22
- package/TableToolbar/index.js.map +1 -0
- package/TableToolbar/package.json +1 -1
- package/TagCount/TagCount.d.ts +10 -0
- package/TagCount/TagCount.js +36 -50
- package/TagCount/TagCount.js.map +1 -0
- package/TagCount/index.d.ts +2 -0
- package/TagCount/index.js +10 -20
- package/TagCount/index.js.map +1 -0
- package/TagCount/package.json +1 -1
- package/TagModal/TableWithFilter.d.ts +45 -0
- package/TagModal/TableWithFilter.js +148 -201
- package/TagModal/TableWithFilter.js.map +1 -0
- package/TagModal/TagModal.d.ts +54 -0
- package/TagModal/TagModal.js +153 -228
- package/TagModal/TagModal.js.map +1 -0
- package/TagModal/index.d.ts +2 -0
- package/TagModal/index.js +12 -28
- package/TagModal/index.js.map +1 -0
- package/TagModal/package.json +1 -1
- package/TreeTable/decorator.d.ts +8 -0
- package/TreeTable/decorator.js +44 -56
- package/TreeTable/decorator.js.map +1 -0
- package/TreeTable/helpers.d.ts +4 -0
- package/TreeTable/helpers.js +43 -55
- package/TreeTable/helpers.js.map +1 -0
- package/TreeTable/index.d.ts +3 -0
- package/TreeTable/index.js +22 -45
- package/TreeTable/index.js.map +1 -0
- package/TreeTable/package.json +1 -1
- package/TreeTable/rowWrapper.d.ts +17 -0
- package/TreeTable/rowWrapper.js +39 -50
- package/TreeTable/rowWrapper.js.map +1 -0
- package/Truncate/Truncate.d.ts +26 -0
- package/Truncate/Truncate.js +75 -116
- package/Truncate/Truncate.js.map +1 -0
- package/Truncate/index.d.ts +2 -0
- package/Truncate/index.js +10 -22
- package/Truncate/index.js.map +1 -0
- package/Truncate/package.json +1 -1
- package/Unavailable/Unavailable.d.ts +2 -0
- package/Unavailable/Unavailable.js +20 -38
- package/Unavailable/Unavailable.js.map +1 -0
- package/Unavailable/index.d.ts +1 -0
- package/Unavailable/index.js +10 -20
- package/Unavailable/index.js.map +1 -0
- package/Unavailable/package.json +1 -1
- package/Wizard/Wizard.d.ts +31 -0
- package/Wizard/Wizard.js +126 -170
- package/Wizard/Wizard.js.map +1 -0
- package/Wizard/index.d.ts +1 -0
- package/Wizard/index.js +10 -20
- package/Wizard/index.js.map +1 -0
- package/Wizard/package.json +1 -1
- package/esm/Ansible/Ansible.js +49 -74
- package/esm/Ansible/Ansible.js.map +1 -0
- package/esm/Ansible/ansible.css +19 -0
- package/esm/Ansible/ansible.scss +14 -0
- package/esm/Ansible/index.js +2 -1
- package/esm/Ansible/index.js.map +1 -0
- package/esm/AsyncComponent/index.js +39 -67
- package/esm/AsyncComponent/index.js.map +1 -0
- package/esm/Battery/Battery.js +72 -99
- package/esm/Battery/Battery.js.map +1 -0
- package/esm/Battery/CriticalBattery.js +3 -12
- package/esm/Battery/CriticalBattery.js.map +1 -0
- package/esm/Battery/HighBattery.js +3 -9
- package/esm/Battery/HighBattery.js.map +1 -0
- package/esm/Battery/LowBattery.js +3 -9
- package/esm/Battery/LowBattery.js.map +1 -0
- package/esm/Battery/MediumBattery.js +3 -9
- package/esm/Battery/MediumBattery.js.map +1 -0
- package/esm/Battery/NullBattery.js +3 -9
- package/esm/Battery/NullBattery.js.map +1 -0
- package/esm/Battery/battery.css +35 -0
- package/esm/Battery/battery.scss +47 -0
- package/esm/Battery/index.js +2 -1
- package/esm/Battery/index.js.map +1 -0
- package/esm/Breadcrumbs/Breadcrumbs.js +46 -50
- package/esm/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/esm/Breadcrumbs/ConnectedBreadcrumbs.js +45 -52
- package/esm/Breadcrumbs/ConnectedBreadcrumbs.js.map +1 -0
- package/esm/Breadcrumbs/index.js +2 -1
- package/esm/Breadcrumbs/index.js.map +1 -0
- package/esm/BulkSelect/BulkSelect.js +53 -166
- package/esm/BulkSelect/BulkSelect.js.map +1 -0
- package/esm/BulkSelect/bulk-select.css +15 -0
- package/esm/BulkSelect/bulk-select.scss +19 -0
- package/esm/BulkSelect/index.js +2 -1
- package/esm/BulkSelect/index.js.map +1 -0
- package/esm/ConditionalFilter/CheckboxFilter.js +120 -183
- package/esm/ConditionalFilter/CheckboxFilter.js.map +1 -0
- package/esm/ConditionalFilter/ConditionalFilter.js +154 -225
- package/esm/ConditionalFilter/ConditionalFilter.js.map +1 -0
- package/esm/ConditionalFilter/GroupFilter.js +124 -222
- package/esm/ConditionalFilter/GroupFilter.js.map +1 -0
- package/esm/ConditionalFilter/RadioFilter.js +100 -143
- package/esm/ConditionalFilter/RadioFilter.js.map +1 -0
- package/esm/ConditionalFilter/TextFilter.js +79 -102
- package/esm/ConditionalFilter/TextFilter.js.map +1 -0
- package/esm/ConditionalFilter/conditional-filter.css +93 -0
- package/esm/ConditionalFilter/conditional-filter.scss +110 -0
- package/esm/ConditionalFilter/conditionalFilterConstants.js +12 -11
- package/esm/ConditionalFilter/conditionalFilterConstants.js.map +1 -0
- package/esm/ConditionalFilter/group-filter.css +19 -0
- package/esm/ConditionalFilter/group-filter.scss +23 -0
- package/esm/ConditionalFilter/groupFilterConstants.js +143 -165
- package/esm/ConditionalFilter/groupFilterConstants.js.map +1 -0
- package/esm/ConditionalFilter/groupType.js +7 -6
- package/esm/ConditionalFilter/groupType.js.map +1 -0
- package/esm/ConditionalFilter/index.js +2 -1
- package/esm/ConditionalFilter/index.js.map +1 -0
- package/esm/CullingInfo/CullingInformation.css +14 -0
- package/esm/CullingInfo/CullingInformation.js +79 -82
- package/esm/CullingInfo/CullingInformation.js.map +1 -0
- package/esm/CullingInfo/CullingInformation.scss +10 -0
- package/esm/CullingInfo/index.js +2 -1
- package/esm/CullingInfo/index.js.map +1 -0
- package/esm/Dark/Dark.js +30 -0
- package/esm/Dark/Dark.js.map +1 -0
- package/esm/Dark/DarkContext.js +3 -18
- package/esm/Dark/DarkContext.js.map +1 -0
- package/esm/Dark/index.js +4 -3
- package/esm/Dark/index.js.map +1 -0
- package/esm/DateFormat/DateFormat.js +12 -34
- package/esm/DateFormat/DateFormat.js.map +1 -0
- package/esm/DateFormat/helper.js +45 -82
- package/esm/DateFormat/helper.js.map +1 -0
- package/esm/DateFormat/index.js +2 -1
- package/esm/DateFormat/index.js.map +1 -0
- package/esm/DownloadButton/DownloadButton.js +89 -120
- package/esm/DownloadButton/DownloadButton.js.map +1 -0
- package/esm/DownloadButton/index.js +2 -1
- package/esm/DownloadButton/index.js.map +1 -0
- package/esm/EmptyTable/EmptyTable.css +14 -0
- package/esm/EmptyTable/EmptyTable.js +35 -20
- package/esm/EmptyTable/EmptyTable.js.map +1 -0
- package/esm/EmptyTable/EmptyTable.scss +11 -0
- package/esm/EmptyTable/index.js +2 -1
- package/esm/EmptyTable/index.js.map +1 -0
- package/esm/ErrorState/DefaultErrorMessage.js +11 -11
- package/esm/ErrorState/DefaultErrorMessage.js.map +1 -0
- package/esm/ErrorState/ErrorState.js +36 -48
- package/esm/ErrorState/ErrorState.js.map +1 -0
- package/esm/ErrorState/error-state.css +3 -0
- package/esm/ErrorState/error-state.scss +5 -0
- package/esm/ErrorState/index.js +2 -1
- package/esm/ErrorState/index.js.map +1 -0
- package/esm/FilterChips/FilterChips.js +65 -98
- package/esm/FilterChips/FilterChips.js.map +1 -0
- package/esm/FilterChips/filter-chips.css +12 -0
- package/esm/FilterChips/filter-chips.scss +15 -0
- package/esm/FilterChips/index.js +2 -1
- package/esm/FilterChips/index.js.map +1 -0
- package/esm/FilterHooks/constants.js +101 -111
- package/esm/FilterHooks/constants.js.map +1 -0
- package/esm/FilterHooks/index.js +2 -1
- package/esm/FilterHooks/index.js.map +1 -0
- package/esm/FilterHooks/tagFilterHook.css +22 -0
- package/esm/FilterHooks/tagFilterHook.js +97 -120
- package/esm/FilterHooks/tagFilterHook.js.map +1 -0
- package/esm/FilterHooks/tagFilterHook.scss +21 -0
- package/esm/Filters/FilterDropdown.js +80 -134
- package/esm/Filters/FilterDropdown.js.map +1 -0
- package/esm/Filters/FilterInput.js +85 -143
- package/esm/Filters/FilterInput.js.map +1 -0
- package/esm/Filters/filter-dropdown.css +8 -0
- package/esm/Filters/filter-dropdown.scss +10 -0
- package/esm/Filters/index.js +2 -1
- package/esm/Filters/index.js.map +1 -0
- package/esm/Input/Input.js +36 -32
- package/esm/Input/Input.js.map +1 -0
- package/esm/Input/LabeledInput.js +35 -27
- package/esm/Input/LabeledInput.js.map +1 -0
- package/esm/Input/index.js +2 -1
- package/esm/Input/index.js.map +1 -0
- package/esm/InsightsLabel/CriticalIcon.js +5 -12
- package/esm/InsightsLabel/CriticalIcon.js.map +1 -0
- package/esm/InsightsLabel/InsightsLabel.js +36 -46
- package/esm/InsightsLabel/InsightsLabel.js.map +1 -0
- package/esm/InsightsLabel/critical-icon.css +8 -0
- package/esm/InsightsLabel/critical-icon.scss +8 -0
- package/esm/InsightsLabel/index.js +2 -1
- package/esm/InsightsLabel/index.js.map +1 -0
- package/esm/InsightsLabel/labels.css +54 -0
- package/esm/InsightsLabel/labels.scss +54 -0
- package/esm/InvalidObject/InvalidObject.js +35 -27
- package/esm/InvalidObject/InvalidObject.js.map +1 -0
- package/esm/InvalidObject/icon-404.css +15 -0
- package/esm/InvalidObject/icon-404.js +46 -192
- package/esm/InvalidObject/icon-404.js.map +1 -0
- package/esm/InvalidObject/icon-404.scss +11 -0
- package/esm/InvalidObject/index.js +2 -1
- package/esm/InvalidObject/index.js.map +1 -0
- package/esm/InvalidObject/invalidObject.css +22 -0
- package/esm/InvalidObject/invalidObject.scss +15 -0
- package/esm/Inventory/AppInfo.js +25 -44
- package/esm/Inventory/AppInfo.js.map +1 -0
- package/esm/Inventory/DetailWrapper.js +25 -44
- package/esm/Inventory/DetailWrapper.js.map +1 -0
- package/esm/Inventory/InventoryDetail.js +25 -44
- package/esm/Inventory/InventoryDetail.js.map +1 -0
- package/esm/Inventory/InventoryDetailHead.js +25 -44
- package/esm/Inventory/InventoryDetailHead.js.map +1 -0
- package/esm/Inventory/InventoryLoadError.js +24 -16
- package/esm/Inventory/InventoryLoadError.js.map +1 -0
- package/esm/Inventory/InventoryTable.js +25 -44
- package/esm/Inventory/InventoryTable.js.map +1 -0
- package/esm/Inventory/TagWithDialog.js +25 -49
- package/esm/Inventory/TagWithDialog.js.map +1 -0
- package/esm/Inventory/index.js +2 -1
- package/esm/Inventory/index.js.map +1 -0
- package/esm/LongTextTooltip/LongTextTooltip.js +62 -59
- package/esm/LongTextTooltip/LongTextTooltip.js.map +1 -0
- package/esm/LongTextTooltip/index.js +2 -1
- package/esm/LongTextTooltip/index.js.map +1 -0
- package/esm/Main/Main.js +79 -119
- package/esm/Main/Main.js.map +1 -0
- package/esm/Main/index.js +2 -1
- package/esm/Main/index.js.map +1 -0
- package/esm/Main/main.css +3 -0
- package/esm/Main/main.scss +3 -0
- package/esm/Maintenance/Maintenance.js +51 -57
- package/esm/Maintenance/Maintenance.js.map +1 -0
- package/esm/Maintenance/index.js +2 -1
- package/esm/Maintenance/index.js.map +1 -0
- package/esm/Maintenance/maintenance.css +9 -0
- package/esm/Maintenance/maintenance.scss +7 -0
- package/esm/NotAuthorized/NotAuthorized.css +5 -0
- package/esm/NotAuthorized/NotAuthorized.js +40 -81
- package/esm/NotAuthorized/NotAuthorized.js.map +1 -0
- package/esm/NotAuthorized/NotAuthorized.scss +7 -0
- package/esm/NotAuthorized/index.js +2 -1
- package/esm/NotAuthorized/index.js.map +1 -0
- package/esm/NotConnected/NotConnected.js +17 -32
- package/esm/NotConnected/NotConnected.js.map +1 -0
- package/esm/NotConnected/index.js +2 -1
- package/esm/NotConnected/index.js.map +1 -0
- package/esm/PageHeader/PageHeader.js +34 -29
- package/esm/PageHeader/PageHeader.js.map +1 -0
- package/esm/PageHeader/PageHeaderTitle.js +6 -21
- package/esm/PageHeader/PageHeaderTitle.js.map +1 -0
- package/esm/PageHeader/index.js +2 -1
- package/esm/PageHeader/index.js.map +1 -0
- package/esm/PageHeader/page-header.css +13 -0
- package/esm/PageHeader/page-header.scss +12 -0
- package/esm/Pagination/Pagination.js +82 -113
- package/esm/Pagination/Pagination.js.map +1 -0
- package/esm/Pagination/PaginationMenu.js +101 -129
- package/esm/Pagination/PaginationMenu.js.map +1 -0
- package/esm/Pagination/PaginationNav.js +72 -107
- package/esm/Pagination/PaginationNav.js.map +1 -0
- package/esm/Pagination/PaginationNext.js +71 -94
- package/esm/Pagination/PaginationNext.js.map +1 -0
- package/esm/Pagination/index.js +2 -1
- package/esm/Pagination/index.js.map +1 -0
- package/esm/Pagination/pagination.css +580 -0
- package/esm/Pagination/pagination.scss +15 -0
- package/esm/PrimaryToolbar/Actions.js +104 -154
- package/esm/PrimaryToolbar/Actions.js.map +1 -0
- package/esm/PrimaryToolbar/PrimaryToolbar.js +117 -146
- package/esm/PrimaryToolbar/PrimaryToolbar.js.map +1 -0
- package/esm/PrimaryToolbar/SortBy.js +12 -26
- package/esm/PrimaryToolbar/SortBy.js.map +1 -0
- package/esm/PrimaryToolbar/index.js +2 -1
- package/esm/PrimaryToolbar/index.js.map +1 -0
- package/esm/PrimaryToolbar/primary-toolbar.css +49 -0
- package/esm/PrimaryToolbar/primary-toolbar.scss +64 -0
- package/esm/Reboot/Reboot.js +35 -19
- package/esm/Reboot/Reboot.js.map +1 -0
- package/esm/Reboot/index.js +2 -1
- package/esm/Reboot/index.js.map +1 -0
- package/esm/Reboot/reboot.css +11 -0
- package/esm/Reboot/reboot.scss +12 -0
- package/esm/Section/Section.js +32 -22
- package/esm/Section/Section.js.map +1 -0
- package/esm/Section/index.js +2 -1
- package/esm/Section/index.js.map +1 -0
- package/esm/Section/section.css +35 -0
- package/esm/Section/section.scss +27 -0
- package/esm/Shield/Shield.js +31 -41
- package/esm/Shield/Shield.js.map +1 -0
- package/esm/Shield/consts.js +67 -73
- package/esm/Shield/consts.js.map +1 -0
- package/esm/Shield/index.js +2 -1
- package/esm/Shield/index.js.map +1 -0
- package/esm/SimpleTableFilter/SimpleTableFilter.js +111 -166
- package/esm/SimpleTableFilter/SimpleTableFilter.js.map +1 -0
- package/esm/SimpleTableFilter/index.js +2 -1
- package/esm/SimpleTableFilter/index.js.map +1 -0
- package/esm/SimpleTableFilter/simple-table-filter.css +356 -0
- package/esm/SimpleTableFilter/simple-table-filter.scss +18 -0
- package/esm/Skeleton/Skeleton.js +30 -32
- package/esm/Skeleton/Skeleton.js.map +1 -0
- package/esm/Skeleton/index.js +2 -1
- package/esm/Skeleton/index.js.map +1 -0
- package/esm/Skeleton/skeleton.css +24 -0
- package/esm/Skeleton/skeleton.scss +18 -0
- package/esm/SkeletonTable/SkeletonTable.css +3 -0
- package/esm/SkeletonTable/SkeletonTable.js +86 -125
- package/esm/SkeletonTable/SkeletonTable.js.map +1 -0
- package/esm/SkeletonTable/SkeletonTable.scss +3 -0
- package/esm/SkeletonTable/index.js +2 -1
- package/esm/SkeletonTable/index.js.map +1 -0
- package/esm/Spinner/Spinner.js +31 -24
- package/esm/Spinner/Spinner.js.map +1 -0
- package/esm/Spinner/index.js +2 -1
- package/esm/Spinner/index.js.map +1 -0
- package/esm/Spinner/spinner.css +27 -0
- package/esm/Spinner/spinner.scss +24 -0
- package/esm/TabLayout/TabLayout.js +40 -46
- package/esm/TabLayout/TabLayout.js.map +1 -0
- package/esm/TabLayout/index.js +2 -1
- package/esm/TabLayout/index.js.map +1 -0
- package/esm/TabLayout/tab-layout.css +14 -0
- package/esm/TabLayout/tab-layout.scss +21 -0
- package/esm/TableToolbar/TableToolbar.css +36 -0
- package/esm/TableToolbar/TableToolbar.js +57 -48
- package/esm/TableToolbar/TableToolbar.js.map +1 -0
- package/esm/TableToolbar/TableToolbar.scss +28 -0
- package/esm/TableToolbar/index.js +2 -1
- package/esm/TableToolbar/index.js.map +1 -0
- package/esm/TagCount/TagCount.js +32 -36
- package/esm/TagCount/TagCount.js.map +1 -0
- package/esm/TagCount/index.js +2 -1
- package/esm/TagCount/index.js.map +1 -0
- package/esm/TagCount/tagCount.css +9 -0
- package/esm/TagCount/tagCount.scss +9 -0
- package/esm/TagModal/TableWithFilter.js +123 -168
- package/esm/TagModal/TableWithFilter.js.map +1 -0
- package/esm/TagModal/TagModal.js +128 -200
- package/esm/TagModal/TagModal.js.map +1 -0
- package/esm/TagModal/index.js +2 -1
- package/esm/TagModal/index.js.map +1 -0
- package/esm/TagModal/tagModal.css +3 -0
- package/esm/TagModal/tagModal.scss +3 -0
- package/esm/TreeTable/decorator.js +40 -42
- package/esm/TreeTable/decorator.js.map +1 -0
- package/esm/TreeTable/helpers.js +40 -42
- package/esm/TreeTable/helpers.js.map +1 -0
- package/esm/TreeTable/index.js +2 -1
- package/esm/TreeTable/index.js.map +1 -0
- package/esm/TreeTable/rowWrapper.js +31 -33
- package/esm/TreeTable/rowWrapper.js.map +1 -0
- package/esm/TreeTable/styles.css +338 -0
- package/esm/TreeTable/styles.scss +278 -0
- package/esm/Truncate/Truncate.js +50 -87
- package/esm/Truncate/Truncate.js.map +1 -0
- package/esm/Truncate/index.js +2 -1
- package/esm/Truncate/index.js.map +1 -0
- package/esm/Truncate/truncate.css +12 -0
- package/esm/Truncate/truncate.scss +5 -0
- package/esm/Unavailable/Unavailable.css +3 -0
- package/esm/Unavailable/Unavailable.js +16 -24
- package/esm/Unavailable/Unavailable.js.map +1 -0
- package/esm/Unavailable/Unavailable.scss +3 -0
- package/esm/Unavailable/index.js +2 -1
- package/esm/Unavailable/index.js.map +1 -0
- package/esm/Wizard/Wizard.js +102 -149
- package/esm/Wizard/Wizard.js.map +1 -0
- package/esm/Wizard/index.js +2 -1
- package/esm/Wizard/index.js.map +1 -0
- package/esm/Wizard/wizard.css +7 -0
- package/esm/Wizard/wizard.scss +7 -0
- package/esm/index.css +1902 -0
- package/esm/index.js +2 -1
- package/esm/index.js.map +1 -0
- package/esm/index.scss +32 -0
- package/esm/useChrome/index.js +2 -1
- package/esm/useChrome/index.js.map +1 -0
- package/esm/useChrome/useChrome.js +22 -23
- package/esm/useChrome/useChrome.js.map +1 -0
- package/esm/usePendoFeedback/index.js +2 -1
- package/esm/usePendoFeedback/index.js.map +1 -0
- package/esm/usePendoFeedback/usePendoFeedback.js +14 -18
- package/esm/usePendoFeedback/usePendoFeedback.js.map +1 -0
- package/esm/useScreenSize/breakpoints.js +8 -7
- package/esm/useScreenSize/breakpoints.js.map +1 -0
- package/esm/useScreenSize/getVariant.js +12 -20
- package/esm/useScreenSize/getVariant.js.map +1 -0
- package/esm/useScreenSize/index.js +2 -1
- package/esm/useScreenSize/index.js.map +1 -0
- package/esm/useScreenSize/isSmallScreen.js +3 -6
- package/esm/useScreenSize/isSmallScreen.js.map +1 -0
- package/esm/useScreenSize/useScreenSize.js +17 -29
- package/esm/useScreenSize/useScreenSize.js.map +1 -0
- package/index.css +14 -34
- package/index.d.ts +39 -0
- package/index.js +51 -511
- package/index.js.map +1 -0
- package/package.json +7 -6
- package/tsconfig.cjs.json +8 -0
- package/useChrome/index.d.ts +2 -0
- package/useChrome/index.js +10 -20
- package/useChrome/index.js.map +1 -0
- package/useChrome/package.json +1 -1
- package/useChrome/useChrome.d.ts +130 -0
- package/useChrome/useChrome.js +24 -33
- package/useChrome/useChrome.js.map +1 -0
- package/usePendoFeedback/index.d.ts +2 -0
- package/usePendoFeedback/index.js +10 -20
- package/usePendoFeedback/index.js.map +1 -0
- package/usePendoFeedback/package.json +1 -1
- package/usePendoFeedback/usePendoFeedback.d.ts +2 -0
- package/usePendoFeedback/usePendoFeedback.js +18 -27
- package/usePendoFeedback/usePendoFeedback.js.map +1 -0
- package/useScreenSize/breakpoints.d.ts +9 -0
- package/useScreenSize/breakpoints.js +18 -28
- package/useScreenSize/breakpoints.js.map +1 -0
- package/useScreenSize/getVariant.d.ts +2 -0
- package/useScreenSize/getVariant.js +17 -31
- package/useScreenSize/getVariant.js.map +1 -0
- package/useScreenSize/index.d.ts +5 -0
- package/useScreenSize/index.js +16 -44
- package/useScreenSize/index.js.map +1 -0
- package/useScreenSize/isSmallScreen.d.ts +3 -0
- package/useScreenSize/isSmallScreen.js +7 -15
- package/useScreenSize/isSmallScreen.js.map +1 -0
- package/useScreenSize/package.json +1 -1
- package/useScreenSize/useScreenSize.d.ts +2 -0
- package/useScreenSize/useScreenSize.js +23 -42
- package/useScreenSize/useScreenSize.js.map +1 -0
- package/Dark/configContext.js +0 -15
- package/esm/Dark/configContext.js +0 -3
package/Pagination/Pagination.js
CHANGED
|
@@ -1,148 +1,118 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
31
|
+
}) : (function(o, m, k, k2) {
|
|
32
|
+
if (k2 === undefined) k2 = k;
|
|
33
|
+
o[k2] = m[k];
|
|
34
|
+
}));
|
|
35
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
36
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
37
|
+
}) : function(o, v) {
|
|
38
|
+
o["default"] = v;
|
|
9
39
|
});
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
41
|
-
|
|
42
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
43
|
-
|
|
44
|
-
var dropDirection = {
|
|
45
|
-
up: 'up',
|
|
46
|
-
down: 'down'
|
|
40
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
exports.dropDirection = void 0;
|
|
63
|
+
var react_1 = __importStar(require("react"));
|
|
64
|
+
var PaginationNext_1 = __importDefault(require("./PaginationNext"));
|
|
65
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
66
|
+
exports.dropDirection = {
|
|
67
|
+
up: 'up',
|
|
68
|
+
down: 'down',
|
|
47
69
|
};
|
|
48
|
-
exports.dropDirection = dropDirection;
|
|
49
70
|
var pager = [10, 15, 20, 25, 50];
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
66
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "setPage", function (page, debounce) {
|
|
67
|
-
var currPage = _this.props.page;
|
|
68
|
-
var perPage = _this.props.itemsPerPage || pager[0];
|
|
69
|
-
var maxPage = Math.ceil(_this.props.numberOfItems / perPage);
|
|
70
|
-
page = isNaN(page) ? currPage : page;
|
|
71
|
-
page = page > maxPage ? maxPage : page < 0 ? 0 : page;
|
|
72
|
-
_this.props.hasOwnProperty('onSetPage') && _this.props.onSetPage(page, debounce);
|
|
73
|
-
});
|
|
74
|
-
return _this;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
(0, _createClass2["default"])(Pagination, [{
|
|
78
|
-
key: "render",
|
|
79
|
-
value: function render() {
|
|
80
|
-
var _this2 = this;
|
|
81
|
-
|
|
82
|
-
var _this$props = this.props,
|
|
83
|
-
page = _this$props.page,
|
|
84
|
-
onSetPage = _this$props.onSetPage,
|
|
85
|
-
numberOfItems = _this$props.numberOfItems,
|
|
86
|
-
itemsPerPage = _this$props.itemsPerPage,
|
|
87
|
-
perPageOptions = _this$props.perPageOptions,
|
|
88
|
-
onPerPageSelect = _this$props.onPerPageSelect,
|
|
89
|
-
onFirstPage = _this$props.onFirstPage,
|
|
90
|
-
onLastPage = _this$props.onLastPage,
|
|
91
|
-
onPreviousPage = _this$props.onPreviousPage,
|
|
92
|
-
onNextPage = _this$props.onNextPage,
|
|
93
|
-
props = (0, _objectWithoutProperties2["default"])(_this$props, ["page", "onSetPage", "numberOfItems", "itemsPerPage", "perPageOptions", "onPerPageSelect", "onFirstPage", "onLastPage", "onPreviousPage", "onNextPage"]);
|
|
94
|
-
var pagerOptions = perPageOptions || pager;
|
|
95
|
-
var perPage = itemsPerPage || pagerOptions[0];
|
|
96
|
-
var lastPage = Math.ceil(numberOfItems / perPage);
|
|
97
|
-
var lastIndex = numberOfItems === 0 ? 0 : page === lastPage ? numberOfItems : page * perPage;
|
|
98
|
-
var firstIndex = numberOfItems === 0 ? 0 : (page - 1) * perPage + 1;
|
|
99
|
-
return /*#__PURE__*/_react["default"].createElement(_PaginationNext["default"], (0, _extends2["default"])({}, props, {
|
|
100
|
-
itemCount: this.props.numberOfItems,
|
|
101
|
-
className: "ins-c-pagination-next",
|
|
102
|
-
itemsStart: firstIndex,
|
|
103
|
-
itemsEnd: lastIndex,
|
|
104
|
-
lastPage: lastPage || 1,
|
|
105
|
-
dropDirection: this.props.direction,
|
|
106
|
-
onFirstPage: onFirstPage,
|
|
107
|
-
onLastPage: onLastPage,
|
|
108
|
-
onPreviousPage: onPreviousPage,
|
|
109
|
-
onNextPage: onNextPage,
|
|
110
|
-
perPage: perPage,
|
|
111
|
-
onSetPerPage: function onSetPerPage(_event, value) {
|
|
112
|
-
return _this2.props.onPerPageSelect(value);
|
|
113
|
-
},
|
|
114
|
-
page: this.props.page,
|
|
115
|
-
setPage: function setPage(event, page) {
|
|
116
|
-
return _this2.setPage(page, event.currentTarget.tagName === 'INPUT');
|
|
117
|
-
},
|
|
118
|
-
perPageOptions: pagerOptions.map(function (value) {
|
|
119
|
-
return {
|
|
120
|
-
title: value,
|
|
121
|
-
value: value
|
|
122
|
-
};
|
|
123
|
-
})
|
|
124
|
-
}));
|
|
71
|
+
var Pagination = (function (_super) {
|
|
72
|
+
__extends(Pagination, _super);
|
|
73
|
+
function Pagination() {
|
|
74
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
75
|
+
_this.setPage = function (page, debounce) {
|
|
76
|
+
var currPage = _this.props.page;
|
|
77
|
+
var perPage = _this.props.itemsPerPage || pager[0];
|
|
78
|
+
var maxPage = Math.ceil(_this.props.numberOfItems / perPage);
|
|
79
|
+
page = isNaN(page) ? currPage : page;
|
|
80
|
+
page = page > maxPage ? maxPage : page < 0 ? 0 : page;
|
|
81
|
+
_this.props.hasOwnProperty('onSetPage') && _this.props.onSetPage(page, debounce);
|
|
82
|
+
};
|
|
83
|
+
return _this;
|
|
125
84
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
85
|
+
Pagination.prototype.render = function () {
|
|
86
|
+
var _this = this;
|
|
87
|
+
var _a = this.props, page = _a.page, onSetPage = _a.onSetPage, numberOfItems = _a.numberOfItems, itemsPerPage = _a.itemsPerPage, perPageOptions = _a.perPageOptions, onPerPageSelect = _a.onPerPageSelect, onFirstPage = _a.onFirstPage, onLastPage = _a.onLastPage, onPreviousPage = _a.onPreviousPage, onNextPage = _a.onNextPage, props = __rest(_a, ["page", "onSetPage", "numberOfItems", "itemsPerPage", "perPageOptions", "onPerPageSelect", "onFirstPage", "onLastPage", "onPreviousPage", "onNextPage"]);
|
|
88
|
+
var pagerOptions = perPageOptions || pager;
|
|
89
|
+
var perPage = itemsPerPage || pagerOptions[0];
|
|
90
|
+
var lastPage = Math.ceil(numberOfItems / perPage);
|
|
91
|
+
var lastIndex = numberOfItems === 0 ? 0 : page === lastPage ? numberOfItems : page * perPage;
|
|
92
|
+
var firstIndex = numberOfItems === 0 ? 0 : (page - 1) * perPage + 1;
|
|
93
|
+
return (react_1.default.createElement(PaginationNext_1.default, __assign({}, props, { itemCount: this.props.numberOfItems, className: "ins-c-pagination-next", itemsStart: firstIndex, itemsEnd: lastIndex, lastPage: lastPage || 1, dropDirection: this.props.direction, onFirstPage: onFirstPage, onLastPage: onLastPage, onPreviousPage: onPreviousPage, onNextPage: onNextPage, perPage: perPage, onSetPerPage: function (_event, value) { return _this.props.onPerPageSelect(value); }, page: this.props.page, setPage: function (event, page) { return _this.setPage(page, event.currentTarget.tagName === 'INPUT'); }, perPageOptions: pagerOptions.map(function (value) { return ({
|
|
94
|
+
title: value,
|
|
95
|
+
value: value,
|
|
96
|
+
}); }) })));
|
|
97
|
+
};
|
|
98
|
+
return Pagination;
|
|
99
|
+
}(react_1.Component));
|
|
130
100
|
Pagination.propTypes = {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
101
|
+
direction: prop_types_1.default.oneOf(Object.keys(exports.dropDirection)),
|
|
102
|
+
viewType: prop_types_1.default.string,
|
|
103
|
+
itemsPerPage: prop_types_1.default.number,
|
|
104
|
+
perPageOptions: prop_types_1.default.arrayOf(prop_types_1.default.number),
|
|
105
|
+
numberOfItems: prop_types_1.default.number.isRequired,
|
|
106
|
+
onSetPage: prop_types_1.default.func,
|
|
107
|
+
onPerPageSelect: prop_types_1.default.func,
|
|
108
|
+
onFirstPage: prop_types_1.default.func,
|
|
109
|
+
onLastPage: prop_types_1.default.func,
|
|
110
|
+
onPreviousPage: prop_types_1.default.func,
|
|
111
|
+
onNextPage: prop_types_1.default.func,
|
|
112
|
+
page: prop_types_1.default.number,
|
|
143
113
|
};
|
|
144
114
|
Pagination.defaultProps = {
|
|
145
|
-
|
|
115
|
+
page: 1,
|
|
146
116
|
};
|
|
147
|
-
|
|
148
|
-
|
|
117
|
+
exports.default = Pagination;
|
|
118
|
+
//# sourceMappingURL=Pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../src/Pagination/Pagination.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AACzC,oEAA8C;AAC9C,0DAAmC;AAEtB,QAAA,aAAa,GAAG;IAC3B,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;CACb,CAAC;AAEF,IAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAEnC;IAAyB,8BAAS;IAAlC;QAAA,qEAsDC;QArDC,aAAO,GAAG,UAAC,IAAI,EAAE,QAAQ;YACf,IAAM,QAAQ,GAAK,KAAI,CAAC,KAAK,KAAf,CAAgB;YACtC,IAAM,OAAO,GAAG,KAAI,CAAC,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;YACpD,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAI,CAAC,KAAK,CAAC,aAAa,GAAG,OAAO,CAAC,CAAC;YAC9D,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;YACrC,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YACtD,KAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,IAA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E,CAAC;CACR,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default PaginationNav;
|
|
2
|
+
declare class PaginationNav extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
onSelect: () => void;
|
|
6
|
+
onToggle: (isOpen: any) => void;
|
|
7
|
+
}
|
|
8
|
+
declare namespace PaginationNav {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const itemsTitle: PropTypes.Requireable<string>;
|
|
11
|
+
const itemsStart: PropTypes.Requireable<number>;
|
|
12
|
+
const itemsEnd: PropTypes.Requireable<number>;
|
|
13
|
+
const dropDirection: PropTypes.Requireable<string>;
|
|
14
|
+
const widtgetId: PropTypes.Requireable<string>;
|
|
15
|
+
const onSetPerPage: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
const itemCount: PropTypes.Validator<number>;
|
|
17
|
+
const perPage: PropTypes.Requireable<number>;
|
|
18
|
+
const perPageOptions: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
19
|
+
title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
20
|
+
value: PropTypes.Requireable<number>;
|
|
21
|
+
}> | null | undefined)[]>;
|
|
22
|
+
const className: PropTypes.Requireable<string>;
|
|
23
|
+
}
|
|
24
|
+
namespace defaultProps {
|
|
25
|
+
const itemsTitle_1: string;
|
|
26
|
+
export { itemsTitle_1 as itemsTitle };
|
|
27
|
+
const dropDirection_1: string;
|
|
28
|
+
export { dropDirection_1 as dropDirection };
|
|
29
|
+
const className_1: string;
|
|
30
|
+
export { className_1 as className };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
import React from "react";
|
|
34
|
+
import PropTypes from "prop-types";
|
|
@@ -1,161 +1,132 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
31
|
+
}) : (function(o, m, k, k2) {
|
|
32
|
+
if (k2 === undefined) k2 = k;
|
|
33
|
+
o[k2] = m[k];
|
|
34
|
+
}));
|
|
35
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
36
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
37
|
+
}) : function(o, v) {
|
|
38
|
+
o["default"] = v;
|
|
9
39
|
});
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var PaginationNav = /*#__PURE__*/function (_Component) {
|
|
55
|
-
(0, _inherits2["default"])(PaginationNav, _Component);
|
|
56
|
-
|
|
57
|
-
var _super = _createSuper(PaginationNav);
|
|
58
|
-
|
|
59
|
-
function PaginationNav() {
|
|
60
|
-
var _this;
|
|
61
|
-
|
|
62
|
-
(0, _classCallCheck2["default"])(this, PaginationNav);
|
|
63
|
-
|
|
64
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
65
|
-
args[_key] = arguments[_key];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
69
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
|
70
|
-
isOpen: false
|
|
71
|
-
});
|
|
72
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onSelect", function () {
|
|
73
|
-
_this.setState({
|
|
74
|
-
isOpen: !_this.state.isOpen
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onToggle", function (isOpen) {
|
|
78
|
-
_this.setState({
|
|
79
|
-
isOpen: isOpen
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
return _this;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
(0, _createClass2["default"])(PaginationNav, [{
|
|
86
|
-
key: "render",
|
|
87
|
-
value: function render() {
|
|
88
|
-
var _this$props = this.props,
|
|
89
|
-
itemsTitle = _this$props.itemsTitle,
|
|
90
|
-
itemsStart = _this$props.itemsStart,
|
|
91
|
-
itemsEnd = _this$props.itemsEnd,
|
|
92
|
-
widtgetId = _this$props.widtgetId,
|
|
93
|
-
dropDirection = _this$props.dropDirection,
|
|
94
|
-
onSetPerPage = _this$props.onSetPerPage,
|
|
95
|
-
itemCount = _this$props.itemCount,
|
|
96
|
-
perPageOptions = _this$props.perPageOptions,
|
|
97
|
-
className = _this$props.className,
|
|
98
|
-
perPage = _this$props.perPage,
|
|
99
|
-
props = (0, _objectWithoutProperties2["default"])(_this$props, ["itemsTitle", "itemsStart", "itemsEnd", "widtgetId", "dropDirection", "onSetPerPage", "itemCount", "perPageOptions", "className", "perPage"]);
|
|
100
|
-
var isOpen = this.state.isOpen;
|
|
101
|
-
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
102
|
-
className: "pf-c-options-menu ".concat(className)
|
|
103
|
-
}, props), /*#__PURE__*/_react["default"].createElement("span", {
|
|
104
|
-
id: "".concat(widtgetId, "-label"),
|
|
105
|
-
hidden: true
|
|
106
|
-
}, "Items per page:"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
|
-
className: "pf-c-options-menu__toggle pf-m-text pf-m-plain"
|
|
108
|
-
}, /*#__PURE__*/_react["default"].createElement(_Dropdown.Dropdown, {
|
|
109
|
-
direction: dropDirection,
|
|
110
|
-
isPlain: true,
|
|
111
|
-
isOpen: isOpen,
|
|
112
|
-
onSelect: this.onSelect,
|
|
113
|
-
dropdownItems: perPageOptions.map(function (_ref) {
|
|
114
|
-
var title = _ref.title,
|
|
115
|
-
value = _ref.value;
|
|
116
|
-
return /*#__PURE__*/_react["default"].createElement(_DropdownItem.DropdownItem, {
|
|
117
|
-
onClick: function onClick(event) {
|
|
118
|
-
return value !== perPage && onSetPerPage(event, value);
|
|
119
|
-
},
|
|
120
|
-
key: value,
|
|
121
|
-
component: "button"
|
|
122
|
-
}, title, value === perPage && /*#__PURE__*/_react["default"].createElement(_checkIcon["default"], {
|
|
123
|
-
className: "pf-c-options-menu__menu-item-icon",
|
|
124
|
-
size: "md"
|
|
125
|
-
}));
|
|
126
|
-
}),
|
|
127
|
-
toggle: /*#__PURE__*/_react["default"].createElement(_DropdownToggle.DropdownToggle, {
|
|
128
|
-
onToggle: this.onToggle,
|
|
129
|
-
toggleIndicator: null,
|
|
130
|
-
className: "pf-c-options-menu__toggle-button"
|
|
131
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
132
|
-
className: "pf-c-options-menu__toggle-text"
|
|
133
|
-
}, /*#__PURE__*/_react["default"].createElement("b", null, itemsStart, " - ", itemsEnd), " of ", /*#__PURE__*/_react["default"].createElement("b", null, itemCount), " ", itemsTitle), dropDirection === 'up' ? /*#__PURE__*/_react["default"].createElement(_caretUpIcon["default"], null) : /*#__PURE__*/_react["default"].createElement(_caretDownIcon["default"], null))
|
|
134
|
-
})));
|
|
40
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
var react_1 = __importStar(require("react"));
|
|
63
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
64
|
+
var react_icons_1 = require("@patternfly/react-icons");
|
|
65
|
+
var react_core_1 = require("@patternfly/react-core");
|
|
66
|
+
var PaginationNav = (function (_super) {
|
|
67
|
+
__extends(PaginationNav, _super);
|
|
68
|
+
function PaginationNav() {
|
|
69
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
70
|
+
_this.state = {
|
|
71
|
+
isOpen: false,
|
|
72
|
+
};
|
|
73
|
+
_this.onSelect = function () {
|
|
74
|
+
_this.setState({
|
|
75
|
+
isOpen: !_this.state.isOpen,
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
_this.onToggle = function (isOpen) {
|
|
79
|
+
_this.setState({
|
|
80
|
+
isOpen: isOpen,
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
return _this;
|
|
135
84
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
85
|
+
PaginationNav.prototype.render = function () {
|
|
86
|
+
var _a = this.props, itemsTitle = _a.itemsTitle, itemsStart = _a.itemsStart, itemsEnd = _a.itemsEnd, widtgetId = _a.widtgetId, dropDirection = _a.dropDirection, onSetPerPage = _a.onSetPerPage, itemCount = _a.itemCount, perPageOptions = _a.perPageOptions, className = _a.className, perPage = _a.perPage, props = __rest(_a, ["itemsTitle", "itemsStart", "itemsEnd", "widtgetId", "dropDirection", "onSetPerPage", "itemCount", "perPageOptions", "className", "perPage"]);
|
|
87
|
+
var isOpen = this.state.isOpen;
|
|
88
|
+
return (react_1.default.createElement("div", __assign({ className: "pf-c-options-menu ".concat(className) }, props),
|
|
89
|
+
react_1.default.createElement("span", { id: "".concat(widtgetId, "-label"), hidden: true }, "Items per page:"),
|
|
90
|
+
react_1.default.createElement("div", { className: "pf-c-options-menu__toggle pf-m-text pf-m-plain" },
|
|
91
|
+
react_1.default.createElement(react_core_1.Dropdown, { direction: dropDirection, isPlain: true, isOpen: isOpen, onSelect: this.onSelect, dropdownItems: perPageOptions.map(function (_a) {
|
|
92
|
+
var title = _a.title, value = _a.value;
|
|
93
|
+
return (react_1.default.createElement(react_core_1.DropdownItem, { onClick: function (event) { return value !== perPage && onSetPerPage(event, value); }, key: value, component: "button" },
|
|
94
|
+
title,
|
|
95
|
+
value === perPage && react_1.default.createElement(react_icons_1.CheckIcon, { className: "pf-c-options-menu__menu-item-icon", size: "md" })));
|
|
96
|
+
}), toggle: react_1.default.createElement(react_core_1.DropdownToggle, { onToggle: this.onToggle, toggleIndicator: null, className: "pf-c-options-menu__toggle-button" },
|
|
97
|
+
react_1.default.createElement("span", { className: "pf-c-options-menu__toggle-text" },
|
|
98
|
+
react_1.default.createElement("b", null,
|
|
99
|
+
itemsStart,
|
|
100
|
+
" - ",
|
|
101
|
+
itemsEnd),
|
|
102
|
+
' ',
|
|
103
|
+
"of ",
|
|
104
|
+
react_1.default.createElement("b", null, itemCount),
|
|
105
|
+
" ",
|
|
106
|
+
itemsTitle),
|
|
107
|
+
dropDirection === 'up' ? react_1.default.createElement(react_icons_1.CaretUpIcon, null) : react_1.default.createElement(react_icons_1.CaretDownIcon, null)) }))));
|
|
108
|
+
};
|
|
109
|
+
return PaginationNav;
|
|
110
|
+
}(react_1.Component));
|
|
140
111
|
PaginationNav.propTypes = {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
112
|
+
itemsTitle: prop_types_1.default.string,
|
|
113
|
+
itemsStart: prop_types_1.default.number,
|
|
114
|
+
itemsEnd: prop_types_1.default.number,
|
|
115
|
+
dropDirection: prop_types_1.default.string,
|
|
116
|
+
widtgetId: prop_types_1.default.string,
|
|
117
|
+
onSetPerPage: prop_types_1.default.func,
|
|
118
|
+
itemCount: prop_types_1.default.number.isRequired,
|
|
119
|
+
perPage: prop_types_1.default.number,
|
|
120
|
+
perPageOptions: prop_types_1.default.arrayOf(prop_types_1.default.shape({
|
|
121
|
+
title: prop_types_1.default.node,
|
|
122
|
+
value: prop_types_1.default.number,
|
|
123
|
+
})),
|
|
124
|
+
className: prop_types_1.default.string,
|
|
154
125
|
};
|
|
155
126
|
PaginationNav.defaultProps = {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
127
|
+
itemsTitle: 'items',
|
|
128
|
+
dropDirection: 'up',
|
|
129
|
+
className: '',
|
|
159
130
|
};
|
|
160
|
-
|
|
161
|
-
|
|
131
|
+
exports.default = PaginationNav;
|
|
132
|
+
//# sourceMappingURL=PaginationMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginationMenu.js","sourceRoot":"","sources":["../src/Pagination/PaginationMenu.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyC;AACzC,0DAAmC;AACnC,uDAAgF;AAChF,qDAAgF;AAEhF;IAA4B,iCAAS;IAArC;QAAA,qEAsDC;QArDC,WAAK,GAAG;YACN,MAAM,EAAE,KAAK;SACd,CAAC;QAEF,cAAQ,GAAG;YACT,KAA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