@redhat-cloud-services/frontend-components 3.4.13 → 3.6.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/Ansible/Ansible.d.ts +13 -0
- package/Ansible/Ansible.js +61 -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 +21 -0
- package/Battery/Battery.js +80 -122
- package/Battery/Battery.js.map +1 -0
- package/Battery/CriticalBattery.d.ts +2 -0
- package/Battery/CriticalBattery.js +9 -22
- package/Battery/CriticalBattery.js.map +1 -0
- package/Battery/HighBattery.d.ts +2 -0
- package/Battery/HighBattery.js +9 -18
- package/Battery/HighBattery.js.map +1 -0
- package/Battery/LowBattery.d.ts +2 -0
- package/Battery/LowBattery.js +9 -18
- package/Battery/LowBattery.js.map +1 -0
- package/Battery/MediumBattery.d.ts +2 -0
- package/Battery/MediumBattery.js +9 -18
- package/Battery/MediumBattery.js.map +1 -0
- package/Battery/NullBattery.d.ts +2 -0
- package/Battery/NullBattery.js +9 -18
- package/Battery/NullBattery.js.map +1 -0
- package/Battery/index.d.ts +6 -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 +52 -66
- package/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/Breadcrumbs/ConnectedBreadcrumbs.d.ts +2 -0
- package/Breadcrumbs/ConnectedBreadcrumbs.js +54 -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 +39 -0
- package/BulkSelect/BulkSelect.js +129 -188
- package/BulkSelect/BulkSelect.js.map +1 -0
- package/BulkSelect/index.d.ts +1 -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 +142 -208
- package/ConditionalFilter/CheckboxFilter.js.map +1 -0
- package/ConditionalFilter/ConditionalFilter.d.ts +58 -0
- package/ConditionalFilter/ConditionalFilter.js +185 -262
- package/ConditionalFilter/ConditionalFilter.js.map +1 -0
- package/ConditionalFilter/GroupFilter.d.ts +47 -0
- package/ConditionalFilter/GroupFilter.js +161 -243
- package/ConditionalFilter/GroupFilter.js.map +1 -0
- package/ConditionalFilter/RadioFilter.d.ts +37 -0
- package/ConditionalFilter/RadioFilter.js +124 -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/group-filter.css +19 -0
- package/ConditionalFilter/group-filter.scss +23 -0
- package/ConditionalFilter/groupFilterConstants.d.ts +7 -0
- package/ConditionalFilter/groupFilterConstants.js +156 -110
- package/ConditionalFilter/groupFilterConstants.js.map +1 -0
- package/ConditionalFilter/groupType.d.ts +8 -0
- package/ConditionalFilter/groupType.js +8 -11
- 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 +84 -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 +47 -101
- 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 +17 -0
- package/ErrorState/ErrorState.js +49 -66
- package/ErrorState/ErrorState.js.map +1 -0
- package/ErrorState/index.d.ts +2 -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 +70 -116
- 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 +117 -145
- package/FilterHooks/tagFilterHook.js.map +1 -0
- package/Filters/FilterDropdown.d.ts +43 -0
- package/Filters/FilterDropdown.js +108 -159
- package/Filters/FilterDropdown.js.map +1 -0
- package/Filters/FilterInput.d.ts +37 -0
- package/Filters/FilterInput.js +109 -163
- 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 +2 -0
- package/InvalidObject/icon-404.js +50 -202
- package/InvalidObject/icon-404.js.map +1 -0
- package/InvalidObject/index.d.ts +2 -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 +11 -0
- package/Inventory/InventoryLoadError.js +49 -30
- 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 +24 -0
- package/Main/Main.js +85 -149
- 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 +43 -0
- package/Maintenance/Maintenance.js +75 -74
- package/Maintenance/Maintenance.js.map +1 -0
- package/Maintenance/index.d.ts +1 -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 +42 -0
- package/NotAuthorized/NotAuthorized.js +78 -92
- package/NotAuthorized/NotAuthorized.js.map +1 -0
- package/NotAuthorized/index.d.ts +1 -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 +124 -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 +131 -187
- package/PrimaryToolbar/Actions.js.map +1 -0
- package/PrimaryToolbar/PrimaryToolbar.d.ts +97 -0
- package/PrimaryToolbar/PrimaryToolbar.js +165 -188
- package/PrimaryToolbar/PrimaryToolbar.js.map +1 -0
- package/PrimaryToolbar/SortBy.d.ts +20 -0
- package/PrimaryToolbar/SortBy.js +23 -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 +27 -0
- package/Shield/Shield.js +51 -55
- package/Shield/Shield.js.map +1 -0
- package/Shield/consts.d.ts +71 -0
- package/Shield/consts.js +69 -81
- package/Shield/consts.js.map +1 -0
- package/Shield/index.d.ts +2 -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 +137 -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 +86 -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 +86 -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 +19 -0
- package/TagCount/TagCount.js +43 -47
- package/TagCount/TagCount.js.map +1 -0
- package/TagCount/index.d.ts +1 -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 +135 -201
- package/TagModal/TableWithFilter.js.map +1 -0
- package/TagModal/TagModal.d.ts +54 -0
- package/TagModal/TagModal.js +163 -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 +42 -56
- package/TreeTable/decorator.js.map +1 -0
- package/TreeTable/helpers.d.ts +4 -0
- package/TreeTable/helpers.js +45 -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 +76 -115
- 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 +17 -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 +54 -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 +68 -95
- package/esm/Battery/Battery.js.map +1 -0
- package/esm/Battery/CriticalBattery.js +4 -11
- package/esm/Battery/CriticalBattery.js.map +1 -0
- package/esm/Battery/HighBattery.js +4 -8
- package/esm/Battery/HighBattery.js.map +1 -0
- package/esm/Battery/LowBattery.js +4 -8
- package/esm/Battery/LowBattery.js.map +1 -0
- package/esm/Battery/MediumBattery.js +4 -8
- package/esm/Battery/MediumBattery.js.map +1 -0
- package/esm/Battery/NullBattery.js +4 -8
- 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 +45 -49
- package/esm/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/esm/Breadcrumbs/ConnectedBreadcrumbs.js +47 -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 +104 -160
- 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 +117 -183
- package/esm/ConditionalFilter/CheckboxFilter.js.map +1 -0
- package/esm/ConditionalFilter/ConditionalFilter.js +155 -225
- package/esm/ConditionalFilter/ConditionalFilter.js.map +1 -0
- package/esm/ConditionalFilter/GroupFilter.js +134 -206
- package/esm/ConditionalFilter/GroupFilter.js.map +1 -0
- package/esm/ConditionalFilter/RadioFilter.js +99 -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 +148 -94
- package/esm/ConditionalFilter/groupFilterConstants.js.map +1 -0
- package/esm/ConditionalFilter/groupType.js +7 -5
- 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 +78 -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 +41 -84
- 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 +42 -43
- 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 +64 -97
- 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 +96 -119
- package/esm/FilterHooks/tagFilterHook.js.map +1 -0
- package/esm/FilterHooks/tagFilterHook.scss +21 -0
- package/esm/Filters/FilterDropdown.js +83 -134
- package/esm/Filters/FilterDropdown.js.map +1 -0
- package/esm/Filters/FilterInput.js +85 -142
- 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 +25 -13
- 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 +69 -52
- 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 +73 -74
- 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 +100 -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 +107 -154
- package/esm/PrimaryToolbar/Actions.js.map +1 -0
- package/esm/PrimaryToolbar/PrimaryToolbar.js +136 -146
- package/esm/PrimaryToolbar/PrimaryToolbar.js.map +1 -0
- package/esm/PrimaryToolbar/SortBy.js +14 -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 +44 -36
- package/esm/Shield/Shield.js.map +1 -0
- package/esm/Shield/consts.js +66 -72
- 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 +113 -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 +79 -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 +60 -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 +37 -31
- 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 +110 -168
- package/esm/TagModal/TableWithFilter.js.map +1 -0
- package/esm/TagModal/TagModal.js +138 -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 +39 -43
- package/esm/TreeTable/decorator.js.map +1 -0
- package/esm/TreeTable/helpers.js +42 -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 +51 -86
- 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 +13 -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 +1 -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 +2 -0
- package/useChrome/useChrome.js +24 -33
- package/useChrome/useChrome.js.map +1 -0
- package/usePendoFeedback/index.d.ts +1 -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 +4 -0
- package/useScreenSize/index.js +16 -44
- package/useScreenSize/index.js.map +1 -0
- package/useScreenSize/isSmallScreen.d.ts +2 -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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default TagCount;
|
|
2
|
+
declare function TagCount({ count, onTagClick, className, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
count: any;
|
|
5
|
+
onTagClick: any;
|
|
6
|
+
className: any;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
declare namespace TagCount {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const count: PropTypes.Requireable<number>;
|
|
11
|
+
const onTagClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
const className: PropTypes.Requireable<string>;
|
|
13
|
+
}
|
|
14
|
+
namespace defaultProps {
|
|
15
|
+
export function onTagClick_1(): undefined;
|
|
16
|
+
export { onTagClick_1 as onTagClick };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
import PropTypes from "prop-types";
|
package/TagCount/TagCount.js
CHANGED
|
@@ -1,54 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
18
30
|
require("./tagCount.css");
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
onTagClick = _ref.onTagClick,
|
|
29
|
-
className = _ref.className,
|
|
30
|
-
props = (0, _objectWithoutProperties2["default"])(_ref, ["count", "onTagClick", "className"]);
|
|
31
|
-
return /*#__PURE__*/_react["default"].createElement(_Button.Button, (0, _extends2["default"])({}, props, {
|
|
32
|
-
variant: "plain",
|
|
33
|
-
isDisabled: !count,
|
|
34
|
-
className: (0, _classnames["default"])('ins-c-tag-count', className),
|
|
35
|
-
onClick: onTagClick
|
|
36
|
-
}), /*#__PURE__*/_react["default"].createElement(_tagIcon["default"], {
|
|
37
|
-
size: "md"
|
|
38
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
39
|
-
className: "ins-c-tag__text"
|
|
40
|
-
}, count));
|
|
31
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
32
|
+
var react_core_1 = require("@patternfly/react-core");
|
|
33
|
+
var react_icons_1 = require("@patternfly/react-icons");
|
|
34
|
+
require("./tagCount.scss");
|
|
35
|
+
var TagCount = function (_a) {
|
|
36
|
+
var count = _a.count, onTagClick = _a.onTagClick, className = _a.className, props = __rest(_a, ["count", "onTagClick", "className"]);
|
|
37
|
+
return (react_1.default.createElement(react_core_1.Button, __assign({}, props, { variant: "plain", isDisabled: !count, className: (0, classnames_1.default)('ins-c-tag-count', className), onClick: onTagClick }),
|
|
38
|
+
react_1.default.createElement(react_icons_1.TagIcon, { size: "md" }),
|
|
39
|
+
react_1.default.createElement("span", { className: "ins-c-tag__text" }, count)));
|
|
41
40
|
};
|
|
42
|
-
|
|
43
41
|
TagCount.propTypes = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
count: prop_types_1.default.number,
|
|
43
|
+
onTagClick: prop_types_1.default.func,
|
|
44
|
+
className: prop_types_1.default.string
|
|
47
45
|
};
|
|
48
46
|
TagCount.defaultProps = {
|
|
49
|
-
|
|
50
|
-
return undefined;
|
|
51
|
-
}
|
|
47
|
+
onTagClick: function () { return undefined; }
|
|
52
48
|
};
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
exports.default = TagCount;
|
|
50
|
+
//# sourceMappingURL=TagCount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagCount.js","sourceRoot":"","sources":["../src/TagCount/TagCount.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,0DAAmC;AACnC,2BAAyB;AACzB,0DAAoC;AACpC,qDAAgD;AAChD,uDAAkD;AAClD,2BAAyB;AAEzB,IAAM,QAAQ,GAAG,UAAC,EAA0C;IAAxC,IAAA,KAAK,WAAA,EAAE,UAAU,gBAAA,EAAE,SAAS,eAAA,EAAK,KAAK,cAAxC,oCAA0C,CAAF;IACtD,OAAO,CACH,8BAAC,mBAAM,eAAM,KAAK,IAAE,OAAO,EAAC,OAAO,EAAC,UAAU,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,iBAAiB,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,UAAU;QAC5H,8BAAC,qBAAO,IAAC,IAAI,EAAC,IAAI,GAAE;QACpB,wCAAM,SAAS,EAAC,iBAAiB,IAAE,KAAK,CAAQ,CAC3C,CACZ,CAAC;AACN,CAAC,CAAC;AAEF,QAAQ,CAAC,SAAS,GAAG;IACjB,KAAK,EAAE,oBAAS,CAAC,MAAM;IACvB,UAAU,EAAE,oBAAS,CAAC,IAAI;IAC1B,SAAS,EAAE,oBAAS,CAAC,MAAM;CAC9B,CAAC;AAEF,QAAQ,CAAC,YAAY,GAAG;IACpB,UAAU,EAAE,cAAM,OAAA,SAAS,EAAT,CAAS;CAC9B,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, default as TagCount } from "./TagCount";
|
package/TagCount/index.js
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "default", {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "TagCount", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _TagCount["default"];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
var _TagCount = _interopRequireDefault(require("./TagCount"));
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TagCount = exports.default = void 0;
|
|
7
|
+
var TagCount_1 = require("./TagCount");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(TagCount_1).default; } });
|
|
9
|
+
var TagCount_2 = require("./TagCount");
|
|
10
|
+
Object.defineProperty(exports, "TagCount", { enumerable: true, get: function () { return __importDefault(TagCount_2).default; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/TagCount/index.js"],"names":[],"mappings":";;;;;;AAAA,uCAAqC;AAA5B,oHAAA,OAAO,OAAA;AAChB,uCAAiD;AAAxC,qHAAA,OAAO,OAAY"}
|
package/TagCount/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"main":"index.js","module":"../esm/TagCount/index.js"}
|
|
1
|
+
{"main":"index.js","module":"../esm/TagCount/index.js","typings":"index.d.ts"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export default TableWithFilter;
|
|
2
|
+
declare function TableWithFilter({ rows, onSelect, selected, onUpdateData, pagination, loaded, calculateChecked, unique, filters, primaryToolbarProps, children, title, systemName, columns, tableProps, entityName, bulkSelect }: {
|
|
3
|
+
rows: any;
|
|
4
|
+
onSelect: any;
|
|
5
|
+
selected: any;
|
|
6
|
+
onUpdateData: any;
|
|
7
|
+
pagination: any;
|
|
8
|
+
loaded: any;
|
|
9
|
+
calculateChecked: any;
|
|
10
|
+
unique: any;
|
|
11
|
+
filters: any;
|
|
12
|
+
primaryToolbarProps: any;
|
|
13
|
+
children: any;
|
|
14
|
+
title: any;
|
|
15
|
+
systemName: any;
|
|
16
|
+
columns: any;
|
|
17
|
+
tableProps: any;
|
|
18
|
+
entityName: any;
|
|
19
|
+
bulkSelect: any;
|
|
20
|
+
}): JSX.Element;
|
|
21
|
+
declare namespace TableWithFilter {
|
|
22
|
+
namespace propTypes {
|
|
23
|
+
const entityName: any;
|
|
24
|
+
const loaded: any;
|
|
25
|
+
const systemName: any;
|
|
26
|
+
const rows: any;
|
|
27
|
+
const selected: any;
|
|
28
|
+
const columns: any;
|
|
29
|
+
const filters: any;
|
|
30
|
+
const pagination: any;
|
|
31
|
+
const primaryToolbarProps: any;
|
|
32
|
+
const tableProps: any;
|
|
33
|
+
const children: any;
|
|
34
|
+
const title: any;
|
|
35
|
+
const calculateChecked: any;
|
|
36
|
+
const unique: any;
|
|
37
|
+
const onSelect: any;
|
|
38
|
+
const onUpdateData: any;
|
|
39
|
+
const bulkSelect: any;
|
|
40
|
+
}
|
|
41
|
+
namespace defaultProps {
|
|
42
|
+
const entityName_1: string;
|
|
43
|
+
export { entityName_1 as entityName };
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,211 +1,145 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
-
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
|
|
16
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
17
|
-
|
|
18
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
|
|
20
|
-
var _Pagination = require("@patternfly/react-core/dist/js/components/Pagination/Pagination.js");
|
|
21
|
-
|
|
22
|
-
var _Bullseye = require("@patternfly/react-core/dist/js/layouts/Bullseye/Bullseye.js");
|
|
23
|
-
|
|
24
|
-
var _EmptyState = require("@patternfly/react-core/dist/js/components/EmptyState/EmptyState.js");
|
|
25
|
-
|
|
26
|
-
var _Title = require("@patternfly/react-core/dist/js/components/Title/Title.js");
|
|
27
|
-
|
|
28
|
-
var _EmptyStateBody = require("@patternfly/react-core/dist/js/components/EmptyState/EmptyStateBody.js");
|
|
29
|
-
|
|
30
|
-
var _propTypes = require("prop-types");
|
|
31
|
-
|
|
32
|
-
var _reactTable = require("@patternfly/react-table");
|
|
33
|
-
|
|
34
|
-
var _EmptyTable = require("../EmptyTable");
|
|
35
|
-
|
|
36
|
-
var _TableToolbar = require("../TableToolbar");
|
|
37
|
-
|
|
38
|
-
var _PrimaryToolbar = require("../PrimaryToolbar");
|
|
39
|
-
|
|
40
|
-
var _Skeleton = require("../Skeleton");
|
|
41
|
-
|
|
42
|
-
var _SkeletonTable = require("../SkeletonTable");
|
|
43
|
-
|
|
44
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
45
|
-
|
|
46
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
47
|
-
|
|
48
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
49
|
-
|
|
50
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
51
|
-
|
|
52
|
-
var TableWithFilter = function TableWithFilter(_ref) {
|
|
53
|
-
var rows = _ref.rows,
|
|
54
|
-
_onSelect = _ref.onSelect,
|
|
55
|
-
selected = _ref.selected,
|
|
56
|
-
onUpdateData = _ref.onUpdateData,
|
|
57
|
-
pagination = _ref.pagination,
|
|
58
|
-
loaded = _ref.loaded,
|
|
59
|
-
calculateChecked = _ref.calculateChecked,
|
|
60
|
-
unique = _ref.unique,
|
|
61
|
-
filters = _ref.filters,
|
|
62
|
-
primaryToolbarProps = _ref.primaryToolbarProps,
|
|
63
|
-
children = _ref.children,
|
|
64
|
-
title = _ref.title,
|
|
65
|
-
systemName = _ref.systemName,
|
|
66
|
-
columns = _ref.columns,
|
|
67
|
-
tableProps = _ref.tableProps,
|
|
68
|
-
entityName = _ref.entityName,
|
|
69
|
-
bulkSelect = _ref.bulkSelect;
|
|
70
|
-
|
|
71
|
-
var onRowSelect = function onRowSelect(_ref2) {
|
|
72
|
-
var isSelected = _ref2.isSelected,
|
|
73
|
-
rowId = _ref2.rowId;
|
|
74
|
-
var currRow = rows === null || rows === void 0 ? void 0 : rows[rowId];
|
|
75
|
-
|
|
76
|
-
if (currRow) {
|
|
77
|
-
_onSelect(isSelected ? [].concat((0, _toConsumableArray2["default"])(selected), [currRow]) : selected.filter(function (_ref3) {
|
|
78
|
-
var id = _ref3.id;
|
|
79
|
-
return id !== currRow.id;
|
|
80
|
-
}));
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, onUpdateData && /*#__PURE__*/_react["default"].createElement(_PrimaryToolbar.PrimaryToolbar, (0, _extends2["default"])({}, _onSelect && pagination && {
|
|
85
|
-
bulkSelect: _objectSpread({
|
|
86
|
-
count: selected === null || selected === void 0 ? void 0 : selected.length,
|
|
87
|
-
onSelect: function onSelect(isSelected) {
|
|
88
|
-
if (isSelected) {
|
|
89
|
-
_onSelect(unique === null || unique === void 0 ? void 0 : unique([].concat((0, _toConsumableArray2["default"])(rows), (0, _toConsumableArray2["default"])(selected))));
|
|
90
|
-
} else {
|
|
91
|
-
_onSelect(selected.filter(function (_ref4) {
|
|
92
|
-
var id = _ref4.id;
|
|
93
|
-
return !rows.find(function (_ref5) {
|
|
94
|
-
var rowId = _ref5.id;
|
|
95
|
-
return rowId === id;
|
|
96
|
-
});
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
checked: loaded && (calculateChecked === null || calculateChecked === void 0 ? void 0 : calculateChecked(rows, selected)),
|
|
101
|
-
items: [{
|
|
102
|
-
title: 'Select none (0)',
|
|
103
|
-
onClick: function onClick() {
|
|
104
|
-
return _onSelect([]);
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
105
8
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
33
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
34
|
+
if (ar || !(i in from)) {
|
|
35
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
36
|
+
ar[i] = from[i];
|
|
110
37
|
}
|
|
111
|
-
} : {})]
|
|
112
|
-
}, bulkSelect || {})
|
|
113
|
-
}, filters && {
|
|
114
|
-
filterConfig: {
|
|
115
|
-
items: filters
|
|
116
38
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
rows: rows !== null && rows !== void 0 && rows.length ? rows : [{
|
|
140
|
-
cells: [{
|
|
141
|
-
title: /*#__PURE__*/_react["default"].createElement(_EmptyTable.EmptyTable, null, /*#__PURE__*/_react["default"].createElement(_Bullseye.Bullseye, null, /*#__PURE__*/_react["default"].createElement(_EmptyState.EmptyState, {
|
|
142
|
-
variant: _EmptyState.EmptyStateVariant.full
|
|
143
|
-
}, /*#__PURE__*/_react["default"].createElement(_Title.Title, {
|
|
144
|
-
headingLevel: "h5",
|
|
145
|
-
size: "lg"
|
|
146
|
-
}, "No ", entityName, " found"), /*#__PURE__*/_react["default"].createElement(_EmptyStateBody.EmptyStateBody, null, "This filter criteria matches no ", entityName, ". ", /*#__PURE__*/_react["default"].createElement("br", null), " Try changing your filter settings.")))),
|
|
147
|
-
props: {
|
|
148
|
-
colSpan: columns.length
|
|
39
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
var react_1 = __importStar(require("react"));
|
|
43
|
+
var react_core_1 = require("@patternfly/react-core");
|
|
44
|
+
var prop_types_1 = require("prop-types");
|
|
45
|
+
var react_table_1 = require("@patternfly/react-table");
|
|
46
|
+
var EmptyTable_1 = require("../EmptyTable");
|
|
47
|
+
var TableToolbar_1 = require("../TableToolbar");
|
|
48
|
+
var PrimaryToolbar_1 = require("../PrimaryToolbar");
|
|
49
|
+
var Skeleton_1 = require("../Skeleton");
|
|
50
|
+
var SkeletonTable_1 = require("../SkeletonTable");
|
|
51
|
+
var TableWithFilter = function (_a) {
|
|
52
|
+
var rows = _a.rows, onSelect = _a.onSelect, selected = _a.selected, onUpdateData = _a.onUpdateData, pagination = _a.pagination, loaded = _a.loaded, calculateChecked = _a.calculateChecked, unique = _a.unique, filters = _a.filters, primaryToolbarProps = _a.primaryToolbarProps, children = _a.children, title = _a.title, systemName = _a.systemName, columns = _a.columns, tableProps = _a.tableProps, entityName = _a.entityName, bulkSelect = _a.bulkSelect;
|
|
53
|
+
var onRowSelect = function (_a) {
|
|
54
|
+
var isSelected = _a.isSelected, rowId = _a.rowId;
|
|
55
|
+
var currRow = rows === null || rows === void 0 ? void 0 : rows[rowId];
|
|
56
|
+
if (currRow) {
|
|
57
|
+
onSelect(isSelected ? __spreadArray(__spreadArray([], selected, true), [currRow], false) : selected.filter(function (_a) {
|
|
58
|
+
var id = _a.id;
|
|
59
|
+
return id !== currRow.id;
|
|
60
|
+
}));
|
|
149
61
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
page: 1,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
62
|
+
};
|
|
63
|
+
return (react_1.default.createElement(react_1.Fragment, null,
|
|
64
|
+
onUpdateData && react_1.default.createElement(PrimaryToolbar_1.PrimaryToolbar, __assign({}, onSelect && pagination && {
|
|
65
|
+
bulkSelect: __assign({ count: selected === null || selected === void 0 ? void 0 : selected.length, onSelect: function (isSelected) {
|
|
66
|
+
if (isSelected) {
|
|
67
|
+
onSelect(unique === null || unique === void 0 ? void 0 : unique(__spreadArray(__spreadArray([], rows, true), selected, true)));
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
onSelect(selected.filter(function (_a) {
|
|
71
|
+
var id = _a.id;
|
|
72
|
+
return !rows.find(function (_a) {
|
|
73
|
+
var rowId = _a.id;
|
|
74
|
+
return rowId === id;
|
|
75
|
+
});
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
}, checked: loaded && (calculateChecked === null || calculateChecked === void 0 ? void 0 : calculateChecked(rows, selected)), items: [{
|
|
79
|
+
title: 'Select none (0)',
|
|
80
|
+
onClick: function () { return onSelect([]); }
|
|
81
|
+
}, __assign({}, loaded && (rows === null || rows === void 0 ? void 0 : rows.length) > 0 ? {
|
|
82
|
+
title: "Select page (".concat(rows.length, ")"),
|
|
83
|
+
onClick: function () { return onSelect(unique(__spreadArray(__spreadArray([], rows, true), selected, true))); }
|
|
84
|
+
} : {})] }, bulkSelect || {})
|
|
85
|
+
}, filters && {
|
|
86
|
+
filterConfig: {
|
|
87
|
+
items: filters
|
|
88
|
+
}
|
|
89
|
+
}, { pagination: loaded ? __assign(__assign({}, pagination || {}), { itemCount: pagination === null || pagination === void 0 ? void 0 : pagination.count, onSetPage: function (_e, page) { return onUpdateData(__assign(__assign({}, pagination), { page: page })); }, onPerPageSelect: function (_e, perPage) { return onUpdateData(__assign(__assign({}, pagination), { page: 1, perPage: perPage })); } }) : react_1.default.createElement(Skeleton_1.Skeleton, { size: "lg" }) }, primaryToolbarProps)),
|
|
90
|
+
children,
|
|
91
|
+
loaded ? react_1.default.createElement(react_table_1.Table, __assign({ "aria-label": title || "".concat(systemName, " ").concat(entityName), variant: "compact", className: "ins-c-tag-modal__table", cells: columns, rows: (rows === null || rows === void 0 ? void 0 : rows.length) ? rows : [{
|
|
92
|
+
cells: [{
|
|
93
|
+
title: (react_1.default.createElement(EmptyTable_1.EmptyTable, null,
|
|
94
|
+
react_1.default.createElement(react_core_1.Bullseye, null,
|
|
95
|
+
react_1.default.createElement(react_core_1.EmptyState, { variant: react_core_1.EmptyStateVariant.full },
|
|
96
|
+
react_1.default.createElement(react_core_1.Title, { headingLevel: "h5", size: "lg" },
|
|
97
|
+
"No ",
|
|
98
|
+
entityName,
|
|
99
|
+
" found"),
|
|
100
|
+
react_1.default.createElement(react_core_1.EmptyStateBody, null,
|
|
101
|
+
"This filter criteria matches no ",
|
|
102
|
+
entityName,
|
|
103
|
+
". ",
|
|
104
|
+
react_1.default.createElement("br", null),
|
|
105
|
+
" Try changing your filter settings."))))),
|
|
106
|
+
props: {
|
|
107
|
+
colSpan: columns.length
|
|
108
|
+
}
|
|
109
|
+
}]
|
|
110
|
+
}] }, onSelect && (rows === null || rows === void 0 ? void 0 : rows.length) && {
|
|
111
|
+
onSelect: function (_event, isSelected, rowId) { return onRowSelect({ isSelected: isSelected, rowId: rowId }); }
|
|
112
|
+
}, tableProps),
|
|
113
|
+
react_1.default.createElement(react_table_1.TableHeader, null),
|
|
114
|
+
react_1.default.createElement(react_table_1.TableBody, null)) : react_1.default.createElement(SkeletonTable_1.SkeletonTable, { columns: columns, rowSize: (pagination === null || pagination === void 0 ? void 0 : pagination.perPage) || 10 }),
|
|
115
|
+
onUpdateData && pagination && loaded && react_1.default.createElement(TableToolbar_1.TableToolbar, { isFooter: true, className: "ins-c-inventory__table--toolbar" },
|
|
116
|
+
react_1.default.createElement(react_core_1.Pagination, { itemCount: pagination === null || pagination === void 0 ? void 0 : pagination.count, perPage: pagination === null || pagination === void 0 ? void 0 : pagination.perPage, page: (pagination === null || pagination === void 0 ? void 0 : pagination.page) || 0, variant: "bottom", onSetPage: function (_event, page) { return onUpdateData(__assign(__assign({}, pagination), { page: page })); }, onPerPageSelect: function (_event, perPage) { return onUpdateData(__assign(__assign({}, pagination), { page: 1, perPage: perPage })); } }))));
|
|
182
117
|
};
|
|
183
|
-
|
|
184
118
|
TableWithFilter.propTypes = {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
119
|
+
entityName: prop_types_1.PropTypes.string,
|
|
120
|
+
loaded: prop_types_1.PropTypes.bool,
|
|
121
|
+
systemName: prop_types_1.PropTypes.string,
|
|
122
|
+
rows: prop_types_1.PropTypes.array,
|
|
123
|
+
selected: prop_types_1.PropTypes.array,
|
|
124
|
+
columns: prop_types_1.PropTypes.array,
|
|
125
|
+
filters: prop_types_1.PropTypes.array,
|
|
126
|
+
pagination: prop_types_1.PropTypes.shape({
|
|
127
|
+
count: prop_types_1.PropTypes.number,
|
|
128
|
+
page: prop_types_1.PropTypes.number,
|
|
129
|
+
perPage: prop_types_1.PropTypes.number
|
|
130
|
+
}),
|
|
131
|
+
primaryToolbarProps: prop_types_1.PropTypes.object,
|
|
132
|
+
tableProps: prop_types_1.PropTypes.object,
|
|
133
|
+
children: prop_types_1.PropTypes.node,
|
|
134
|
+
title: prop_types_1.PropTypes.node,
|
|
135
|
+
calculateChecked: prop_types_1.PropTypes.func,
|
|
136
|
+
unique: prop_types_1.PropTypes.func,
|
|
137
|
+
onSelect: prop_types_1.PropTypes.func,
|
|
138
|
+
onUpdateData: prop_types_1.PropTypes.func,
|
|
139
|
+
bulkSelect: prop_types_1.PropTypes.any
|
|
206
140
|
};
|
|
207
141
|
TableWithFilter.defaultProps = {
|
|
208
|
-
|
|
142
|
+
entityName: 'tags'
|
|
209
143
|
};
|
|
210
|
-
|
|
211
|
-
|
|
144
|
+
exports.default = TableWithFilter;
|
|
145
|
+
//# sourceMappingURL=TableWithFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableWithFilter.js","sourceRoot":"","sources":["../src/TagModal/TableWithFilter.js"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export default TagModal;
|
|
2
|
+
declare class TagModal extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
handleTabClick: (_event: any, tabIndex: any) => void;
|
|
6
|
+
renderTable: (rows: any, columns: any, pagination: any, loaded: any, filters: any, selected: any, onSelect: any, onUpdateData: any, bulkSelect: any) => JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
declare namespace TagModal {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const tabNames: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
11
|
+
const loaded: PropTypes.Requireable<boolean | (boolean | null | undefined)[]>;
|
|
12
|
+
const title: PropTypes.Requireable<string>;
|
|
13
|
+
const systemName: PropTypes.Requireable<string>;
|
|
14
|
+
const isOpen: PropTypes.Requireable<boolean>;
|
|
15
|
+
const toggleModal: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
const rows: PropTypes.Requireable<any[]>;
|
|
17
|
+
const columns: PropTypes.Requireable<any[]>;
|
|
18
|
+
const className: PropTypes.Requireable<string>;
|
|
19
|
+
const tableProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
20
|
+
const onSelect: PropTypes.Requireable<((...args: any[]) => any) | (((...args: any[]) => any) | null | undefined)[]>;
|
|
21
|
+
const onUpdateData: PropTypes.Requireable<((...args: any[]) => any) | (((...args: any[]) => any) | null | undefined)[]>;
|
|
22
|
+
const bulkSelect: PropTypes.Requireable<any>;
|
|
23
|
+
const pagination: PropTypes.Requireable<any>;
|
|
24
|
+
const primaryToolbarProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
25
|
+
const selected: PropTypes.Requireable<any[]>;
|
|
26
|
+
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
27
|
+
const filters: PropTypes.Requireable<any>;
|
|
28
|
+
const onApply: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
+
}
|
|
30
|
+
namespace defaultProps {
|
|
31
|
+
const loaded_1: boolean;
|
|
32
|
+
export { loaded_1 as loaded };
|
|
33
|
+
const isOpen_1: boolean;
|
|
34
|
+
export { isOpen_1 as isOpen };
|
|
35
|
+
export function toggleModal_1(): undefined;
|
|
36
|
+
export { toggleModal_1 as toggleModal };
|
|
37
|
+
const columns_1: {
|
|
38
|
+
title: string;
|
|
39
|
+
}[];
|
|
40
|
+
export { columns_1 as columns };
|
|
41
|
+
export function onUpdateData_1(): undefined;
|
|
42
|
+
export { onUpdateData_1 as onUpdateData };
|
|
43
|
+
const rows_1: never[];
|
|
44
|
+
export { rows_1 as rows };
|
|
45
|
+
const tableProps_1: {};
|
|
46
|
+
export { tableProps_1 as tableProps };
|
|
47
|
+
export namespace pagination_1 {
|
|
48
|
+
const count: number;
|
|
49
|
+
}
|
|
50
|
+
export { pagination_1 as pagination };
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
import React from "react";
|
|
54
|
+
import PropTypes from "prop-types";
|