@redhat-cloud-services/frontend-components 3.9.1 → 3.9.4
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/BulkSelect/BulkSelect.d.ts +1 -1
- package/BulkSelect/bulk-select.scss +13 -13
- package/ConditionalFilter/ConditionalFilter.d.ts +4 -4
- package/ConditionalFilter/conditional-filter.css +1 -1
- package/ConditionalFilter/conditional-filter.scss +78 -87
- package/CullingInfo/CullingInformation.scss +4 -4
- package/DownloadButton/DownloadButton.d.ts +2 -2
- package/DownloadButton/DownloadButton.js +1 -1
- package/DownloadButton/DownloadButton.spec.ct.d.ts +1 -0
- package/DownloadButton/DownloadButton.spec.ct.js +24 -0
- package/EmptyTable/EmptyTable.scss +7 -7
- package/ErrorState/error-state.scss +3 -3
- package/FilterChips/filter-chips.scss +9 -10
- package/FilterHooks/tagFilterHook.scss +15 -16
- package/InsightsLabel/labels.scss +14 -12
- package/InvalidObject/icon-404.scss +5 -9
- package/LongTextTooltip/index.d.ts +1 -1
- package/LongTextTooltip/index.js +2 -2
- package/Main/main.scss +1 -1
- package/Maintenance/maintenance.scss +5 -5
- package/NotAuthorized/NotAuthorized.scss +5 -5
- package/PageHeader/page-header.scss +5 -5
- package/Pagination/pagination.scss +5 -6
- package/PrimaryToolbar/PrimaryToolbar.d.ts +3 -2
- package/PrimaryToolbar/PrimaryToolbar.js +1 -1
- package/PrimaryToolbar/primary-toolbar.scss +40 -51
- package/Reboot/reboot.scss +7 -7
- package/SimpleTableFilter/simple-table-filter.scss +10 -10
- package/Skeleton/skeleton.scss +16 -16
- package/SkeletonTable/SkeletonTable.scss +1 -1
- package/Spinner/spinner.scss +15 -17
- package/TableToolbar/TableToolbar.scss +9 -9
- package/TagCount/tagCount.scss +4 -4
- package/TagModal/TableWithFilter.d.ts +29 -44
- package/TagModal/TableWithFilter.js +3 -30
- package/TagModal/TagModal.d.ts +32 -52
- package/TagModal/TagModal.js +13 -43
- package/TagModal/index.d.ts +3 -2
- package/TagModal/tagModal.scss +1 -1
- package/Unavailable/Unavailable.scss +1 -1
- package/cypress/cypress.webpack.config.js +37 -0
- package/cypress/fixtures/example.json +5 -0
- package/cypress/plugins/index.js +30 -0
- package/cypress/support/commands.js +25 -0
- package/cypress/support/index.js +21 -0
- package/cypress.json +9 -0
- package/esm/BulkSelect/bulk-select.scss +13 -13
- package/esm/ConditionalFilter/conditional-filter.css +1 -1
- package/esm/ConditionalFilter/conditional-filter.scss +78 -87
- package/esm/CullingInfo/CullingInformation.scss +4 -4
- package/esm/DownloadButton/DownloadButton.js +1 -1
- package/esm/DownloadButton/DownloadButton.spec.ct.js +19 -0
- package/esm/EmptyTable/EmptyTable.scss +7 -7
- package/esm/ErrorState/error-state.scss +3 -3
- package/esm/FilterChips/filter-chips.scss +9 -10
- package/esm/FilterHooks/tagFilterHook.scss +15 -16
- package/esm/InsightsLabel/labels.scss +14 -12
- package/esm/InvalidObject/icon-404.scss +5 -9
- package/esm/LongTextTooltip/index.js +1 -1
- package/esm/Main/main.scss +1 -1
- package/esm/Maintenance/maintenance.scss +5 -5
- package/esm/NotAuthorized/NotAuthorized.scss +5 -5
- package/esm/PageHeader/page-header.scss +5 -5
- package/esm/Pagination/pagination.scss +5 -6
- package/esm/PrimaryToolbar/PrimaryToolbar.js +1 -1
- package/esm/PrimaryToolbar/primary-toolbar.scss +40 -51
- package/esm/Reboot/reboot.scss +7 -7
- package/esm/SimpleTableFilter/simple-table-filter.scss +10 -10
- package/esm/Skeleton/skeleton.scss +16 -16
- package/esm/SkeletonTable/SkeletonTable.scss +1 -1
- package/esm/Spinner/spinner.scss +15 -17
- package/esm/TableToolbar/TableToolbar.scss +9 -9
- package/esm/TagCount/tagCount.scss +4 -4
- package/esm/TagModal/TableWithFilter.js +3 -30
- package/esm/TagModal/TagModal.js +13 -43
- package/esm/TagModal/tagModal.scss +1 -1
- package/esm/Unavailable/Unavailable.scss +1 -1
- package/esm/index.css +1 -1
- package/esm/usePendoFeedback/usePendoFeedback.js +1 -5
- package/index.css +1 -1
- package/package.json +10 -2
- package/useChrome/useChrome.d.ts +1 -1
- package/usePendoFeedback/usePendoFeedback.d.ts +1 -1
- package/usePendoFeedback/usePendoFeedback.js +1 -5
- package/Ansible/Ansible.js.map +0 -1
- package/Ansible/index.js.map +0 -1
- package/AsyncComponent/index.js.map +0 -1
- package/Battery/Battery.js.map +0 -1
- package/Battery/CriticalBattery.js.map +0 -1
- package/Battery/HighBattery.js.map +0 -1
- package/Battery/LowBattery.js.map +0 -1
- package/Battery/MediumBattery.js.map +0 -1
- package/Battery/NullBattery.js.map +0 -1
- package/Battery/index.js.map +0 -1
- package/Breadcrumbs/Breadcrumbs.js.map +0 -1
- package/Breadcrumbs/ConnectedBreadcrumbs.js.map +0 -1
- package/Breadcrumbs/index.js.map +0 -1
- package/BulkSelect/BulkSelect.js.map +0 -1
- package/BulkSelect/index.js.map +0 -1
- package/ConditionalFilter/CheckboxFilter.js.map +0 -1
- package/ConditionalFilter/ConditionalFilter.js.map +0 -1
- package/ConditionalFilter/GroupFilter.js.map +0 -1
- package/ConditionalFilter/RadioFilter.js.map +0 -1
- package/ConditionalFilter/TextFilter.js.map +0 -1
- package/ConditionalFilter/conditionalFilterConstants.js.map +0 -1
- package/ConditionalFilter/groupFilterConstants.js.map +0 -1
- package/ConditionalFilter/groupType.js.map +0 -1
- package/ConditionalFilter/index.js.map +0 -1
- package/CullingInfo/CullingInformation.js.map +0 -1
- package/CullingInfo/index.js.map +0 -1
- package/CullingInfo/utils.js.map +0 -1
- package/Dark/Dark.js.map +0 -1
- package/Dark/DarkContext.js.map +0 -1
- package/Dark/index.js.map +0 -1
- package/DateFormat/DateFormat.js.map +0 -1
- package/DateFormat/helper.js.map +0 -1
- package/DateFormat/index.js.map +0 -1
- package/DownloadButton/DownloadButton.js.map +0 -1
- package/DownloadButton/index.js.map +0 -1
- package/EmptyTable/EmptyTable.js.map +0 -1
- package/EmptyTable/index.js.map +0 -1
- package/ErrorBoundary/ErrorBoundary.js.map +0 -1
- package/ErrorBoundary/ErrorStack.js.map +0 -1
- package/ErrorBoundary/index.js.map +0 -1
- package/ErrorState/DefaultErrorMessage.js.map +0 -1
- package/ErrorState/ErrorState.js.map +0 -1
- package/ErrorState/index.js.map +0 -1
- package/FilterChips/FilterChips.js.map +0 -1
- package/FilterChips/index.js.map +0 -1
- package/FilterHooks/constants.js.map +0 -1
- package/FilterHooks/index.js.map +0 -1
- package/FilterHooks/tagFilterHook.js.map +0 -1
- package/Filters/FilterDropdown.js.map +0 -1
- package/Filters/FilterInput.js.map +0 -1
- package/Filters/index.js.map +0 -1
- package/Input/Input.js.map +0 -1
- package/Input/LabeledInput.js.map +0 -1
- package/Input/index.js.map +0 -1
- package/InsightsLabel/InsightsLabel.js.map +0 -1
- package/InsightsLabel/index.js.map +0 -1
- package/InvalidObject/InvalidObject.js.map +0 -1
- package/InvalidObject/icon-404.js.map +0 -1
- package/InvalidObject/index.js.map +0 -1
- package/Inventory/AppInfo.js.map +0 -1
- package/Inventory/DetailWrapper.js.map +0 -1
- package/Inventory/InventoryDetail.js.map +0 -1
- package/Inventory/InventoryDetailHead.js.map +0 -1
- package/Inventory/InventoryLoadError.js.map +0 -1
- package/Inventory/InventoryTable.js.map +0 -1
- package/Inventory/TagWithDialog.js.map +0 -1
- package/Inventory/index.js.map +0 -1
- package/LongTextTooltip/LongTextTooltip.js.map +0 -1
- package/LongTextTooltip/index.js.map +0 -1
- package/Main/Main.js.map +0 -1
- package/Main/index.js.map +0 -1
- package/Maintenance/Maintenance.js.map +0 -1
- package/Maintenance/index.js.map +0 -1
- package/NotAuthorized/NotAuthorized.js.map +0 -1
- package/NotAuthorized/index.js.map +0 -1
- package/NotConnected/NotConnected.js.map +0 -1
- package/NotConnected/index.js.map +0 -1
- package/Ouia/Ouia.js.map +0 -1
- package/Ouia/WithOuia.js.map +0 -1
- package/Ouia/index.js.map +0 -1
- package/Ouia/useOuia.js.map +0 -1
- package/PageHeader/PageHeader.js.map +0 -1
- package/PageHeader/PageHeaderTitle.js.map +0 -1
- package/PageHeader/index.js.map +0 -1
- package/Pagination/Pagination.js.map +0 -1
- package/Pagination/PaginationMenu.js.map +0 -1
- package/Pagination/PaginationNav.js.map +0 -1
- package/Pagination/PaginationNext.js.map +0 -1
- package/Pagination/index.js.map +0 -1
- package/PrimaryToolbar/Actions.js.map +0 -1
- package/PrimaryToolbar/PrimaryToolbar.js.map +0 -1
- package/PrimaryToolbar/SortBy.js.map +0 -1
- package/PrimaryToolbar/index.js.map +0 -1
- package/Reboot/Reboot.js.map +0 -1
- package/Reboot/index.js.map +0 -1
- package/Section/Section.js.map +0 -1
- package/Section/index.js.map +0 -1
- package/Shield/Shield.js.map +0 -1
- package/Shield/consts.js.map +0 -1
- package/Shield/index.js.map +0 -1
- package/SimpleTableFilter/SimpleTableFilter.js.map +0 -1
- package/SimpleTableFilter/index.js.map +0 -1
- package/Skeleton/Skeleton.js.map +0 -1
- package/Skeleton/index.js.map +0 -1
- package/SkeletonTable/SkeletonTable.js.map +0 -1
- package/SkeletonTable/index.js.map +0 -1
- package/Spinner/Spinner.js.map +0 -1
- package/Spinner/index.js.map +0 -1
- package/TabLayout/TabLayout.js.map +0 -1
- package/TabLayout/index.js.map +0 -1
- package/TableToolbar/TableToolbar.js.map +0 -1
- package/TableToolbar/index.js.map +0 -1
- package/TagCount/TagCount.js.map +0 -1
- package/TagCount/index.js.map +0 -1
- package/TagModal/TableWithFilter.js.map +0 -1
- package/TagModal/TagModal.js.map +0 -1
- package/TagModal/index.js.map +0 -1
- package/TreeTable/decorator.js.map +0 -1
- package/TreeTable/helpers.js.map +0 -1
- package/TreeTable/index.js.map +0 -1
- package/TreeTable/rowWrapper.js.map +0 -1
- package/Truncate/Truncate.js.map +0 -1
- package/Truncate/index.js.map +0 -1
- package/Unavailable/Unavailable.js.map +0 -1
- package/Unavailable/index.js.map +0 -1
- package/esm/Ansible/Ansible.js.map +0 -1
- package/esm/Ansible/index.js.map +0 -1
- package/esm/AsyncComponent/index.js.map +0 -1
- package/esm/Battery/Battery.js.map +0 -1
- package/esm/Battery/CriticalBattery.js.map +0 -1
- package/esm/Battery/HighBattery.js.map +0 -1
- package/esm/Battery/LowBattery.js.map +0 -1
- package/esm/Battery/MediumBattery.js.map +0 -1
- package/esm/Battery/NullBattery.js.map +0 -1
- package/esm/Battery/index.js.map +0 -1
- package/esm/Breadcrumbs/Breadcrumbs.js.map +0 -1
- package/esm/Breadcrumbs/ConnectedBreadcrumbs.js.map +0 -1
- package/esm/Breadcrumbs/index.js.map +0 -1
- package/esm/BulkSelect/BulkSelect.js.map +0 -1
- package/esm/BulkSelect/index.js.map +0 -1
- package/esm/ConditionalFilter/CheckboxFilter.js.map +0 -1
- package/esm/ConditionalFilter/ConditionalFilter.js.map +0 -1
- package/esm/ConditionalFilter/GroupFilter.js.map +0 -1
- package/esm/ConditionalFilter/RadioFilter.js.map +0 -1
- package/esm/ConditionalFilter/TextFilter.js.map +0 -1
- package/esm/ConditionalFilter/conditionalFilterConstants.js.map +0 -1
- package/esm/ConditionalFilter/groupFilterConstants.js.map +0 -1
- package/esm/ConditionalFilter/groupType.js.map +0 -1
- package/esm/ConditionalFilter/index.js.map +0 -1
- package/esm/CullingInfo/CullingInformation.js.map +0 -1
- package/esm/CullingInfo/index.js.map +0 -1
- package/esm/CullingInfo/utils.js.map +0 -1
- package/esm/Dark/Dark.js.map +0 -1
- package/esm/Dark/DarkContext.js.map +0 -1
- package/esm/Dark/index.js.map +0 -1
- package/esm/DateFormat/DateFormat.js.map +0 -1
- package/esm/DateFormat/helper.js.map +0 -1
- package/esm/DateFormat/index.js.map +0 -1
- package/esm/DownloadButton/DownloadButton.js.map +0 -1
- package/esm/DownloadButton/index.js.map +0 -1
- package/esm/EmptyTable/EmptyTable.js.map +0 -1
- package/esm/EmptyTable/index.js.map +0 -1
- package/esm/ErrorBoundary/ErrorBoundary.js.map +0 -1
- package/esm/ErrorBoundary/ErrorStack.js.map +0 -1
- package/esm/ErrorBoundary/index.js.map +0 -1
- package/esm/ErrorState/DefaultErrorMessage.js.map +0 -1
- package/esm/ErrorState/ErrorState.js.map +0 -1
- package/esm/ErrorState/index.js.map +0 -1
- package/esm/FilterChips/FilterChips.js.map +0 -1
- package/esm/FilterChips/index.js.map +0 -1
- package/esm/FilterHooks/constants.js.map +0 -1
- package/esm/FilterHooks/index.js.map +0 -1
- package/esm/FilterHooks/tagFilterHook.js.map +0 -1
- package/esm/Filters/FilterDropdown.js.map +0 -1
- package/esm/Filters/FilterInput.js.map +0 -1
- package/esm/Filters/index.js.map +0 -1
- package/esm/Input/Input.js.map +0 -1
- package/esm/Input/LabeledInput.js.map +0 -1
- package/esm/Input/index.js.map +0 -1
- package/esm/InsightsLabel/InsightsLabel.js.map +0 -1
- package/esm/InsightsLabel/index.js.map +0 -1
- package/esm/InvalidObject/InvalidObject.js.map +0 -1
- package/esm/InvalidObject/icon-404.js.map +0 -1
- package/esm/InvalidObject/index.js.map +0 -1
- package/esm/Inventory/AppInfo.js.map +0 -1
- package/esm/Inventory/DetailWrapper.js.map +0 -1
- package/esm/Inventory/InventoryDetail.js.map +0 -1
- package/esm/Inventory/InventoryDetailHead.js.map +0 -1
- package/esm/Inventory/InventoryLoadError.js.map +0 -1
- package/esm/Inventory/InventoryTable.js.map +0 -1
- package/esm/Inventory/TagWithDialog.js.map +0 -1
- package/esm/Inventory/index.js.map +0 -1
- package/esm/LongTextTooltip/LongTextTooltip.js.map +0 -1
- package/esm/LongTextTooltip/index.js.map +0 -1
- package/esm/Main/Main.js.map +0 -1
- package/esm/Main/index.js.map +0 -1
- package/esm/Maintenance/Maintenance.js.map +0 -1
- package/esm/Maintenance/index.js.map +0 -1
- package/esm/NotAuthorized/NotAuthorized.js.map +0 -1
- package/esm/NotAuthorized/index.js.map +0 -1
- package/esm/NotConnected/NotConnected.js.map +0 -1
- package/esm/NotConnected/index.js.map +0 -1
- package/esm/Ouia/Ouia.js.map +0 -1
- package/esm/Ouia/WithOuia.js.map +0 -1
- package/esm/Ouia/index.js.map +0 -1
- package/esm/Ouia/useOuia.js.map +0 -1
- package/esm/PageHeader/PageHeader.js.map +0 -1
- package/esm/PageHeader/PageHeaderTitle.js.map +0 -1
- package/esm/PageHeader/index.js.map +0 -1
- package/esm/Pagination/Pagination.js.map +0 -1
- package/esm/Pagination/PaginationMenu.js.map +0 -1
- package/esm/Pagination/PaginationNav.js.map +0 -1
- package/esm/Pagination/PaginationNext.js.map +0 -1
- package/esm/Pagination/index.js.map +0 -1
- package/esm/PrimaryToolbar/Actions.js.map +0 -1
- package/esm/PrimaryToolbar/PrimaryToolbar.js.map +0 -1
- package/esm/PrimaryToolbar/SortBy.js.map +0 -1
- package/esm/PrimaryToolbar/index.js.map +0 -1
- package/esm/Reboot/Reboot.js.map +0 -1
- package/esm/Reboot/index.js.map +0 -1
- package/esm/Section/Section.js.map +0 -1
- package/esm/Section/index.js.map +0 -1
- package/esm/Shield/Shield.js.map +0 -1
- package/esm/Shield/consts.js.map +0 -1
- package/esm/Shield/index.js.map +0 -1
- package/esm/SimpleTableFilter/SimpleTableFilter.js.map +0 -1
- package/esm/SimpleTableFilter/index.js.map +0 -1
- package/esm/Skeleton/Skeleton.js.map +0 -1
- package/esm/Skeleton/index.js.map +0 -1
- package/esm/SkeletonTable/SkeletonTable.js.map +0 -1
- package/esm/SkeletonTable/index.js.map +0 -1
- package/esm/Spinner/Spinner.js.map +0 -1
- package/esm/Spinner/index.js.map +0 -1
- package/esm/TabLayout/TabLayout.js.map +0 -1
- package/esm/TabLayout/index.js.map +0 -1
- package/esm/TableToolbar/TableToolbar.js.map +0 -1
- package/esm/TableToolbar/index.js.map +0 -1
- package/esm/TagCount/TagCount.js.map +0 -1
- package/esm/TagCount/index.js.map +0 -1
- package/esm/TagModal/TableWithFilter.js.map +0 -1
- package/esm/TagModal/TagModal.js.map +0 -1
- package/esm/TagModal/index.js.map +0 -1
- package/esm/TreeTable/decorator.js.map +0 -1
- package/esm/TreeTable/helpers.js.map +0 -1
- package/esm/TreeTable/index.js.map +0 -1
- package/esm/TreeTable/rowWrapper.js.map +0 -1
- package/esm/Truncate/Truncate.js.map +0 -1
- package/esm/Truncate/index.js.map +0 -1
- package/esm/Unavailable/Unavailable.js.map +0 -1
- package/esm/Unavailable/index.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/useChrome/index.js.map +0 -1
- package/esm/useChrome/useChrome.js.map +0 -1
- package/esm/usePendoFeedback/index.js.map +0 -1
- package/esm/usePendoFeedback/usePendoFeedback.js.map +0 -1
- package/esm/useScreenSize/breakpoints.js.map +0 -1
- package/esm/useScreenSize/getVariant.js.map +0 -1
- package/esm/useScreenSize/index.js.map +0 -1
- package/esm/useScreenSize/isSmallScreen.js.map +0 -1
- package/esm/useScreenSize/useScreenSize.js.map +0 -1
- package/index.js.map +0 -1
- package/useChrome/index.js.map +0 -1
- package/useChrome/useChrome.js.map +0 -1
- package/usePendoFeedback/index.js.map +0 -1
- package/usePendoFeedback/usePendoFeedback.js.map +0 -1
- package/useScreenSize/breakpoints.js.map +0 -1
- package/useScreenSize/getVariant.js.map +0 -1
- package/useScreenSize/index.js.map +0 -1
- package/useScreenSize/isSmallScreen.js.map +0 -1
- package/useScreenSize/useScreenSize.js.map +0 -1
|
@@ -1,64 +1,53 @@
|
|
|
1
1
|
.ins-c-primary-toolbar {
|
|
2
|
+
.pf-c-toolbar__item.ins-c-primary-toolbar__first-action {
|
|
3
|
+
display: initial;
|
|
4
|
+
}
|
|
5
|
+
.ins-c-primary-toolbar__first-action {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
.ins-c-primary-toolbar__pagination {
|
|
9
|
+
margin-left: auto;
|
|
10
|
+
}
|
|
11
|
+
.ins-c-primary-toolbar__sort-by {
|
|
12
|
+
display: initial
|
|
13
|
+
}
|
|
14
|
+
.ins-c-primary-toolbar__overflow-actions, .ins-c-primary-toolbar__overflow-actions-separator {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
.ins-m-actions--empty {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
.ins-c-primary-toolbar__group-filter {
|
|
21
|
+
flex-grow: initial;
|
|
22
|
+
.ins-c-primary-toolbar__filter {
|
|
23
|
+
flex: initial;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media only screen and (max-width: 768px) {
|
|
29
|
+
.ins-c-primary-toolbar {
|
|
2
30
|
.pf-c-toolbar__item.ins-c-primary-toolbar__first-action {
|
|
3
|
-
|
|
31
|
+
display: none;
|
|
4
32
|
}
|
|
5
|
-
|
|
6
33
|
.ins-c-primary-toolbar__first-action {
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.ins-c-primary-toolbar__pagination {
|
|
11
|
-
margin-left: auto;
|
|
34
|
+
display: block;
|
|
12
35
|
}
|
|
13
|
-
|
|
14
36
|
.ins-c-primary-toolbar__sort-by {
|
|
15
|
-
|
|
37
|
+
display: none
|
|
16
38
|
}
|
|
17
|
-
|
|
18
39
|
.ins-c-primary-toolbar__overflow-actions, .ins-c-primary-toolbar__overflow-actions-separator {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ins-m-actions--empty {
|
|
23
|
-
display: none;
|
|
40
|
+
display: block;
|
|
24
41
|
}
|
|
25
|
-
|
|
26
42
|
.ins-c-primary-toolbar__group-filter {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
43
|
+
margin-right: 0;
|
|
44
|
+
flex-grow: 1;
|
|
45
|
+
.ins-c-primary-toolbar__filter {
|
|
46
|
+
flex: 1;
|
|
47
|
+
}
|
|
31
48
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
@media only screen and (max-width: 768px) {
|
|
35
|
-
.ins-c-primary-toolbar {
|
|
36
|
-
.pf-c-toolbar__item.ins-c-primary-toolbar__first-action {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ins-c-primary-toolbar__first-action {
|
|
41
|
-
display: block;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ins-c-primary-toolbar__sort-by {
|
|
45
|
-
display: none
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.ins-c-primary-toolbar__overflow-actions, .ins-c-primary-toolbar__overflow-actions-separator {
|
|
49
|
-
display: block;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ins-c-primary-toolbar__group-filter {
|
|
53
|
-
margin-right: 0;
|
|
54
|
-
flex-grow: 1;
|
|
55
|
-
.ins-c-primary-toolbar__filter {
|
|
56
|
-
flex: 1;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.ins-m-actions--empty {
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
49
|
+
.ins-m-actions--empty {
|
|
50
|
+
display: block;
|
|
63
51
|
}
|
|
52
|
+
}
|
|
64
53
|
}
|
package/Reboot/reboot.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
|
|
2
2
|
|
|
3
3
|
.ins-c-reboot {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
span {
|
|
5
|
+
// 4px because the battery icon is 1px bigger than the reboot icon
|
|
6
|
+
@include rem('margin-left', 4px);
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
&.ins-m-red {
|
|
10
|
+
span, svg { color: var(--pf-global--danger-color--100); }
|
|
11
|
+
}
|
|
12
12
|
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
@import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
|
|
6
6
|
|
|
7
7
|
.pf-c-input-group.ins-c-filter {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
&.ins-u-no-title input {
|
|
9
|
+
@include rem('padding-right', 35px);
|
|
10
|
+
@include rem('margin-right', -23px);
|
|
11
|
+
}
|
|
12
|
+
.ins-c-search-icon {
|
|
13
|
+
color: var(--pf-global--secondary-color--100);
|
|
14
|
+
position: relative;
|
|
15
|
+
@include rem('left', -5px);
|
|
16
|
+
@include rem('top', 8px);
|
|
17
|
+
}
|
|
18
18
|
}
|
package/Skeleton/skeleton.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
.ins-c-skeleton {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
&__xs { width: 16% !important; }
|
|
3
|
+
&__sm { width: 33% !important; }
|
|
4
|
+
&__md { width: 66% !important; }
|
|
5
|
+
&__lg { width: 100% !important; }
|
|
6
|
+
&.ins-m-dark {
|
|
7
|
+
--pf-c-skeleton--BackgroundColor: var(--pf-global--palette--black-600);
|
|
8
|
+
--pf-c-skeleton--after--LinearGradientColorStop1: var(
|
|
9
|
+
--pf-global--palette--black-600
|
|
10
|
+
);
|
|
11
|
+
--pf-c-skeleton--after--LinearGradientColorStop2: var(
|
|
12
|
+
--pf-global--palette--black-500
|
|
13
|
+
);
|
|
14
|
+
--pf-c-skeleton--after--LinearGradientColorStop3: var(
|
|
15
|
+
--pf-global--palette--black-600
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
18
|
}
|
package/Spinner/spinner.scss
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
@import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
|
|
2
2
|
|
|
3
3
|
@keyframes spinner {
|
|
4
|
-
|
|
4
|
+
to { transform: rotate(360deg); }
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.ins-c-spinner {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
animation: spinner 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
23
|
-
}
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
&.ins-m-center {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
}
|
|
13
|
+
&:before {
|
|
14
|
+
content: '';
|
|
15
|
+
@include rem('width', 30px);
|
|
16
|
+
@include rem('height', 30px);
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
border: 3px solid var(--pf-global--active-color--200);
|
|
19
|
+
border-top-color: var(--pf-global--active-color--100);
|
|
20
|
+
animation: spinner 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
21
|
+
}
|
|
24
22
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.ins-c-table__toolbar, .ins-c-table__toolbar-results {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
background: var(--pf-global--Color--light-100);
|
|
10
|
+
border-bottom: 1px solid var(--pf-global--BorderColor--light-200);
|
|
11
|
+
padding: var(--ins-c-table-toolbar--PaddingVertical) var(--ins-c-table-toolbar--PaddingHorizontal);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ins-c-table__toolbar.ins-m-footer { border-top: 1px solid var(--pf-global--BorderColor--light-200); }
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
.ins-c-table__toolbar-results { color: var(--pf-global--Color--200); }
|
|
17
17
|
|
|
18
18
|
.ins-c-table__toolbar-results-count + .ins-c-table__toolbar-results-selected {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
@include rem('margin-left', 15px);
|
|
20
|
+
@include rem('padding-left', 15px);
|
|
21
|
+
border-left: 2px solid var(--pf-global--BorderColor--light);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@media only screen and (max-width: 768px) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
.ins-c-table__toolbar, .ins-c-table__toolbar-results {
|
|
26
|
+
padding: 0 0;
|
|
27
|
+
}
|
|
28
28
|
}
|
package/TagCount/tagCount.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
button.ins-c-tag-count {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
color: var(--pf-global--icon--Color--light);
|
|
3
|
+
display: flex;
|
|
4
|
+
align-content: center;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.ins-c-tag__text {
|
|
8
|
-
|
|
8
|
+
margin-left: 10px;
|
|
9
9
|
}
|
|
@@ -1,45 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ICell, IRow, TableProps } from '@patternfly/react-table';
|
|
3
|
+
import { PrimaryToolbarProps } from '../PrimaryToolbar';
|
|
4
|
+
import { BulkSelectProps } from '../BulkSelect';
|
|
5
|
+
import { ConditionalFilterItem } from '../ConditionalFilter';
|
|
6
|
+
export declare type TableWithFilterPagination = {
|
|
7
|
+
count: number;
|
|
8
|
+
page: number;
|
|
9
|
+
perPage: number;
|
|
10
|
+
};
|
|
11
|
+
export interface TableWithFilterProps {
|
|
12
|
+
rows?: IRow[];
|
|
13
|
+
onSelect?: (selected?: IRow[]) => void;
|
|
14
|
+
selected?: IRow[];
|
|
15
|
+
onUpdateData: (pagination: TableWithFilterPagination) => number | undefined;
|
|
16
|
+
pagination: TableWithFilterPagination;
|
|
17
|
+
loaded?: boolean;
|
|
18
|
+
calculateChecked?: (rows: IRow[], selected: IRow[]) => boolean | null;
|
|
19
|
+
unique?: (rows: IRow[]) => IRow[];
|
|
20
|
+
filters?: ConditionalFilterItem[];
|
|
21
|
+
primaryToolbarProps: PrimaryToolbarProps;
|
|
22
|
+
title?: string;
|
|
23
|
+
systemName?: string;
|
|
24
|
+
columns?: (string | ICell)[];
|
|
25
|
+
tableProps?: TableProps;
|
|
26
|
+
entityName?: string;
|
|
27
|
+
bulkSelect?: BulkSelectProps;
|
|
45
28
|
}
|
|
29
|
+
declare const TableWithFilter: React.FC<TableWithFilterProps>;
|
|
30
|
+
export default TableWithFilter;
|
|
@@ -41,7 +41,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
var react_1 = __importStar(require("react"));
|
|
43
43
|
var react_core_1 = require("@patternfly/react-core");
|
|
44
|
-
var prop_types_1 = require("prop-types");
|
|
45
44
|
var react_table_1 = require("@patternfly/react-table");
|
|
46
45
|
var EmptyTable_1 = require("../EmptyTable");
|
|
47
46
|
var TableToolbar_1 = require("../TableToolbar");
|
|
@@ -49,11 +48,11 @@ var PrimaryToolbar_1 = require("../PrimaryToolbar");
|
|
|
49
48
|
var Skeleton_1 = require("../Skeleton");
|
|
50
49
|
var SkeletonTable_1 = require("../SkeletonTable");
|
|
51
50
|
var TableWithFilter = function (_a) {
|
|
52
|
-
var
|
|
51
|
+
var _b = _a.rows, rows = _b === void 0 ? [] : _b, onSelect = _a.onSelect, _c = _a.selected, selected = _c === void 0 ? [] : _c, 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, _d = _a.columns, columns = _d === void 0 ? [] : _d, tableProps = _a.tableProps, _f = _a.entityName, entityName = _f === void 0 ? 'tags' : _f, bulkSelect = _a.bulkSelect;
|
|
53
52
|
var onRowSelect = function (_a) {
|
|
54
53
|
var isSelected = _a.isSelected, rowId = _a.rowId;
|
|
55
54
|
var currRow = rows === null || rows === void 0 ? void 0 : rows[rowId];
|
|
56
|
-
if (currRow) {
|
|
55
|
+
if (currRow && onSelect) {
|
|
57
56
|
onSelect(isSelected ? __spreadArray(__spreadArray([], selected, true), [currRow], false) : selected.filter(function (_a) {
|
|
58
57
|
var id = _a.id;
|
|
59
58
|
return id !== currRow.id;
|
|
@@ -84,7 +83,7 @@ var TableWithFilter = function (_a) {
|
|
|
84
83
|
__assign({}, (loaded && (rows === null || rows === void 0 ? void 0 : rows.length) > 0
|
|
85
84
|
? {
|
|
86
85
|
title: "Select page (".concat(rows.length, ")"),
|
|
87
|
-
onClick: function () { return onSelect(unique(__spreadArray(__spreadArray([], rows, true), selected, true))); },
|
|
86
|
+
onClick: function () { return onSelect(unique === null || unique === void 0 ? void 0 : unique(__spreadArray(__spreadArray([], rows, true), selected, true))); },
|
|
88
87
|
}
|
|
89
88
|
: {})),
|
|
90
89
|
] }, (bulkSelect || {})),
|
|
@@ -128,31 +127,5 @@ var TableWithFilter = function (_a) {
|
|
|
128
127
|
onUpdateData && pagination && loaded && (react_1.default.createElement(TableToolbar_1.TableToolbar, { isFooter: true, className: "ins-c-inventory__table--toolbar" },
|
|
129
128
|
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 })); } })))));
|
|
130
129
|
};
|
|
131
|
-
TableWithFilter.propTypes = {
|
|
132
|
-
entityName: prop_types_1.PropTypes.string,
|
|
133
|
-
loaded: prop_types_1.PropTypes.bool,
|
|
134
|
-
systemName: prop_types_1.PropTypes.string,
|
|
135
|
-
rows: prop_types_1.PropTypes.array,
|
|
136
|
-
selected: prop_types_1.PropTypes.array,
|
|
137
|
-
columns: prop_types_1.PropTypes.array,
|
|
138
|
-
filters: prop_types_1.PropTypes.array,
|
|
139
|
-
pagination: prop_types_1.PropTypes.shape({
|
|
140
|
-
count: prop_types_1.PropTypes.number,
|
|
141
|
-
page: prop_types_1.PropTypes.number,
|
|
142
|
-
perPage: prop_types_1.PropTypes.number,
|
|
143
|
-
}),
|
|
144
|
-
primaryToolbarProps: prop_types_1.PropTypes.object,
|
|
145
|
-
tableProps: prop_types_1.PropTypes.object,
|
|
146
|
-
children: prop_types_1.PropTypes.node,
|
|
147
|
-
title: prop_types_1.PropTypes.node,
|
|
148
|
-
calculateChecked: prop_types_1.PropTypes.func,
|
|
149
|
-
unique: prop_types_1.PropTypes.func,
|
|
150
|
-
onSelect: prop_types_1.PropTypes.func,
|
|
151
|
-
onUpdateData: prop_types_1.PropTypes.func,
|
|
152
|
-
bulkSelect: prop_types_1.PropTypes.any,
|
|
153
|
-
};
|
|
154
|
-
TableWithFilter.defaultProps = {
|
|
155
|
-
entityName: 'tags',
|
|
156
|
-
};
|
|
157
130
|
exports.default = TableWithFilter;
|
|
158
131
|
//# sourceMappingURL=TableWithFilter.js.map
|
package/TagModal/TagModal.d.ts
CHANGED
|
@@ -1,54 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import './tagModal.scss';
|
|
3
|
+
import { TableWithFilterPagination, TableWithFilterProps } from './TableWithFilter';
|
|
4
|
+
import { ICell, IRow } from '@patternfly/react-table';
|
|
5
|
+
import { ConditionalFilterItem } from '../ConditionalFilter';
|
|
6
|
+
import { BulkSelectProps } from '../BulkSelect';
|
|
7
|
+
export interface TagModalProps extends Omit<TableWithFilterProps, 'columns' | 'pagination' | 'loaded' | 'filters' | 'onUpdateData' | 'bulkSelect'> {
|
|
8
|
+
title: string;
|
|
9
|
+
systemName?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
toggleModal: (e?: React.MouseEventHandler<HTMLButtonElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>, open?: boolean) => void;
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
tabNames?: string[];
|
|
14
|
+
onApply?: (...args: unknown[]) => void;
|
|
15
|
+
rows: IRow[] | IRow[][];
|
|
16
|
+
columns: (string | ICell)[] | (string | ICell)[][];
|
|
17
|
+
pagination: TableWithFilterPagination | TableWithFilterPagination[];
|
|
18
|
+
loaded: boolean | boolean[];
|
|
19
|
+
filters?: ConditionalFilterItem[][] | ConditionalFilterItem[];
|
|
20
|
+
selected?: IRow[] | IRow[][];
|
|
21
|
+
onSelect?: (selected?: IRow[]) => void | ((selected?: IRow[]) => void)[];
|
|
22
|
+
onUpdateData?: (pagination: TableWithFilterPagination) => number | undefined | ((pagination: TableWithFilterPagination) => number | undefined)[];
|
|
23
|
+
bulkSelect?: BulkSelectProps | BulkSelectProps[];
|
|
7
24
|
}
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
}
|
|
25
|
+
declare class TagModal extends Component<TagModalProps> {
|
|
26
|
+
state: {
|
|
27
|
+
selectedTab: number;
|
|
28
|
+
activeTabKey: undefined;
|
|
29
|
+
};
|
|
30
|
+
handleTabClick: (_event: React.MouseEvent<HTMLElement, MouseEvent>, tabIndex: string | number) => void;
|
|
31
|
+
renderTable: (rows: IRow[], columns: (string | ICell)[], pagination: TableWithFilterPagination, loaded: boolean, filters: ConditionalFilterItem[], selected: IRow[], onSelect?: ((selected?: IRow[] | undefined) => void) | undefined, onUpdateData?: (pagination: TableWithFilterPagination) => number | undefined, bulkSelect?: BulkSelectProps | undefined) => JSX.Element;
|
|
32
|
+
render(): JSX.Element;
|
|
52
33
|
}
|
|
53
|
-
|
|
54
|
-
import PropTypes from "prop-types";
|
|
34
|
+
export default TagModal;
|
package/TagModal/TagModal.js
CHANGED
|
@@ -58,10 +58,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
58
58
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
59
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
60
|
};
|
|
61
|
-
var _a, _b;
|
|
62
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
62
|
var react_1 = __importStar(require("react"));
|
|
64
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
65
63
|
require("./tagModal.css");
|
|
66
64
|
var react_core_1 = require("@patternfly/react-core");
|
|
67
65
|
var classnames_1 = __importDefault(require("classnames"));
|
|
@@ -97,18 +95,22 @@ var TagModal = (function (_super) {
|
|
|
97
95
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
98
96
|
_this.state = {
|
|
99
97
|
selectedTab: 0,
|
|
98
|
+
activeTabKey: undefined,
|
|
100
99
|
};
|
|
101
100
|
_this.handleTabClick = function (_event, tabIndex) {
|
|
102
101
|
_this.setState({ activeTabKey: tabIndex });
|
|
103
102
|
};
|
|
104
|
-
_this.renderTable = function (rows, columns, pagination, loaded, filters, selected, onSelect, onUpdateData, bulkSelect) {
|
|
103
|
+
_this.renderTable = function (rows, columns, pagination, loaded, filters, selected, onSelect, onUpdateData, bulkSelect) {
|
|
104
|
+
if (onUpdateData === void 0) { onUpdateData = function () { return undefined; }; }
|
|
105
|
+
return (react_1.default.createElement(TableWithFilter_1.default, __assign({}, _this.props, { rows: rows, pagination: pagination, loaded: loaded, calculateChecked: calculateChecked, unique: unique, filters: filters, title: _this.props.title, systemName: _this.props.systemName, columns: columns, onSelect: onSelect, onUpdateData: onUpdateData, selected: selected, bulkSelect: bulkSelect }), _this.props.children));
|
|
106
|
+
};
|
|
105
107
|
return _this;
|
|
106
108
|
}
|
|
107
109
|
TagModal.prototype.render = function () {
|
|
108
110
|
var _this = this;
|
|
109
|
-
var _a = this.props, className = _a.className, title = _a.title, systemName = _a.systemName,
|
|
111
|
+
var _a = this.props, className = _a.className, title = _a.title, systemName = _a.systemName, _b = _a.toggleModal, toggleModal = _b === void 0 ? function () { return undefined; } : _b, _c = _a.isOpen, isOpen = _c === void 0 ? false : _c, _d = _a.rows, rows = _d === void 0 ? [] : _d, _e = _a.columns, columns = _e === void 0 ? [{ title: 'Name' }, { title: 'Tag source' }] : _e, children = _a.children, _f = _a.pagination, pagination = _f === void 0 ? { count: 10 } : _f, _g = _a.loaded, loaded = _g === void 0 ? false : _g, filters = _a.filters, onApply = _a.onApply, tabNames = _a.tabNames, onSelect = _a.onSelect, _h = _a.onUpdateData, onUpdateData = _h === void 0 ? function () { return undefined; } : _h, selected = _a.selected, _j = _a.tableProps, tableProps = _j === void 0 ? {} : _j, bulkSelect = _a.bulkSelect, props = __rest(_a, ["className", "title", "systemName", "toggleModal", "isOpen", "rows", "columns", "children", "pagination", "loaded", "filters", "onApply", "tabNames", "onSelect", "onUpdateData", "selected", "tableProps", "bulkSelect"]);
|
|
110
112
|
var isTabbed = Array.isArray(tabNames);
|
|
111
|
-
return (react_1.default.createElement(react_core_1.Modal, __assign({}, props, { className: (0, classnames_1.default)('ins-c-tag-modal', className), isOpen: isOpen, title: title || "Tags for ".concat(systemName), onClose: function (
|
|
113
|
+
return (react_1.default.createElement(react_core_1.Modal, __assign({}, props, { className: (0, classnames_1.default)('ins-c-tag-modal', className), isOpen: isOpen, title: title || "Tags for ".concat(systemName), onClose: function () { return toggleModal(undefined, false); }, variant: "medium" }, (onApply && {
|
|
112
114
|
actions: [
|
|
113
115
|
react_1.default.createElement(react_core_1.Button, { key: "confirm", variant: "primary", isDisabled: isTabbed ? Object.values(selected || {}).every(function (values) { return !values || (values === null || values === void 0 ? void 0 : values.length) === 0; }) : !selected || (selected === null || selected === void 0 ? void 0 : selected.length) === 0, onClick: function (e) {
|
|
114
116
|
onApply();
|
|
@@ -118,46 +120,14 @@ var TagModal = (function (_super) {
|
|
|
118
120
|
isTabbed ? 'selected' : 'tags'),
|
|
119
121
|
react_1.default.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: function (e) { return toggleModal(e, false); } }, "Cancel"),
|
|
120
122
|
],
|
|
121
|
-
})), isTabbed ? (react_1.default.createElement(react_core_1.Tabs, { activeKey: this.state.activeTabKey, onSelect: this.handleTabClick }, tabNames.map(function (item, key) {
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
})), isTabbed ? (react_1.default.createElement(react_core_1.Tabs, { activeKey: this.state.activeTabKey, onSelect: this.handleTabClick }, tabNames.map(function (item, key) {
|
|
124
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
125
|
+
return (react_1.default.createElement(react_core_1.Tab, { key: key, eventKey: key, title: react_1.default.createElement(react_core_1.TabTitleText, null,
|
|
126
|
+
"All ",
|
|
127
|
+
item) }, _this.renderTable(rows === null || rows === void 0 ? void 0 : rows[key], columns === null || columns === void 0 ? void 0 : columns[key], (_a = pagination) === null || _a === void 0 ? void 0 : _a[key], (_b = loaded) === null || _b === void 0 ? void 0 : _b[key], (_c = filters) === null || _c === void 0 ? void 0 : _c[key], (_d = selected) === null || _d === void 0 ? void 0 : _d[key], (_e = onSelect) === null || _e === void 0 ? void 0 : _e[key], (_f = onUpdateData) === null || _f === void 0 ? void 0 : _f[key], (_g = bulkSelect) === null || _g === void 0 ? void 0 : _g[key])));
|
|
128
|
+
}))) : (this.renderTable(rows, columns, pagination, loaded, filters, selected, onSelect, onUpdateData, bulkSelect))));
|
|
124
129
|
};
|
|
125
130
|
return TagModal;
|
|
126
131
|
}(react_1.Component));
|
|
127
|
-
TagModal.propTypes = {
|
|
128
|
-
tabNames: prop_types_1.default.arrayOf(prop_types_1.default.string),
|
|
129
|
-
loaded: prop_types_1.default.oneOfType([prop_types_1.default.bool, prop_types_1.default.arrayOf(prop_types_1.default.bool)]),
|
|
130
|
-
title: prop_types_1.default.string,
|
|
131
|
-
systemName: prop_types_1.default.string,
|
|
132
|
-
isOpen: prop_types_1.default.bool,
|
|
133
|
-
toggleModal: prop_types_1.default.func,
|
|
134
|
-
rows: prop_types_1.default.array,
|
|
135
|
-
columns: prop_types_1.default.array,
|
|
136
|
-
className: prop_types_1.default.string,
|
|
137
|
-
tableProps: prop_types_1.default.shape((_a = {},
|
|
138
|
-
_a[prop_types_1.default.string] = prop_types_1.default.any,
|
|
139
|
-
_a)),
|
|
140
|
-
onSelect: prop_types_1.default.oneOfType([prop_types_1.default.func, prop_types_1.default.arrayOf(prop_types_1.default.func)]),
|
|
141
|
-
onUpdateData: prop_types_1.default.oneOfType([prop_types_1.default.func, prop_types_1.default.arrayOf(prop_types_1.default.func)]),
|
|
142
|
-
bulkSelect: prop_types_1.default.oneOfType([prop_types_1.default.any, prop_types_1.default.arrayOf(prop_types_1.default.any)]),
|
|
143
|
-
pagination: prop_types_1.default.oneOfType([TableWithFilter_1.default.propTypes.pagination, prop_types_1.default.arrayOf(TableWithFilter_1.default.propTypes.pagination)]),
|
|
144
|
-
primaryToolbarProps: prop_types_1.default.shape((_b = {},
|
|
145
|
-
_b[prop_types_1.default.string] = prop_types_1.default.any,
|
|
146
|
-
_b)),
|
|
147
|
-
selected: prop_types_1.default.array,
|
|
148
|
-
children: prop_types_1.default.node,
|
|
149
|
-
filters: prop_types_1.default.any,
|
|
150
|
-
onApply: prop_types_1.default.func,
|
|
151
|
-
};
|
|
152
|
-
TagModal.defaultProps = {
|
|
153
|
-
loaded: false,
|
|
154
|
-
isOpen: false,
|
|
155
|
-
toggleModal: function () { return undefined; },
|
|
156
|
-
columns: [{ title: 'Name' }, { title: 'Tag source' }],
|
|
157
|
-
onUpdateData: function () { return undefined; },
|
|
158
|
-
rows: [],
|
|
159
|
-
tableProps: {},
|
|
160
|
-
pagination: { count: 10 },
|
|
161
|
-
};
|
|
162
132
|
exports.default = TagModal;
|
|
163
133
|
//# sourceMappingURL=TagModal.js.map
|
package/TagModal/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default
|
|
2
|
-
export { default
|
|
1
|
+
export { default } from './TagModal';
|
|
2
|
+
export { default as TagModal } from './TagModal';
|
|
3
|
+
export { default as TableWithFilter } from './TableWithFilter';
|
package/TagModal/tagModal.scss
CHANGED