@rh-support/cases 2.6.235 → 2.7.11
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/lib/esm/components/case/NewCaseButton.js +1 -1
- package/lib/esm/components/case-list/CaseList.d.ts +0 -7
- package/lib/esm/components/case-list/CaseList.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseList.js +372 -137
- package/lib/esm/components/case-list/CaseListContext.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseListContext.js +5 -2
- package/lib/esm/components/case-list/CaseListFilterContext.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseListFilterContext.js +2 -1
- package/lib/esm/components/case-list/CaseListFilterHelpers.d.ts +3 -2
- package/lib/esm/components/case-list/CaseListFilterHelpers.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseListFilterHelpers.js +19 -6
- package/lib/esm/components/case-list/CaseListFilterReducer.d.ts +36 -4
- package/lib/esm/components/case-list/CaseListFilterReducer.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseListFilterReducer.js +6 -12
- package/lib/esm/components/case-list/CaseListReducer.d.ts +22 -10
- package/lib/esm/components/case-list/CaseListReducer.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseListReducer.js +25 -7
- package/lib/esm/components/case-list/case-list-filters/AccountsFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/AccountsFilter.js +18 -11
- package/lib/esm/components/case-list/case-list-filters/AdditionalFilters.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/AdditionalFilters.js +20 -4
- package/lib/esm/components/case-list/case-list-filters/CaseLabelsFilter.d.ts +3 -0
- package/lib/esm/components/case-list/case-list-filters/CaseLabelsFilter.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-list-filters/CaseLabelsFilter.js +178 -0
- package/lib/esm/components/case-list/case-list-filters/CaseListFilterChips.d.ts +1 -7
- package/lib/esm/components/case-list/case-list-filters/CaseListFilterChips.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/CaseListFilterChips.js +12 -16
- package/lib/esm/components/case-list/case-list-filters/CaseListFilters.d.ts +2 -5
- package/lib/esm/components/case-list/case-list-filters/CaseListFilters.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/CaseListFilters.js +14 -13
- package/lib/esm/components/case-list/case-list-filters/CreatorSsoNameFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/CreatorSsoNameFilter.js +21 -14
- package/lib/esm/components/case-list/case-list-filters/CreatorSsoNameFilterChip.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/CreatorSsoNameFilterChip.js +3 -0
- package/lib/esm/components/case-list/case-list-filters/GroupsFilter.d.ts +11 -1
- package/lib/esm/components/case-list/case-list-filters/GroupsFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/GroupsFilter.js +90 -70
- package/lib/esm/components/case-list/case-list-filters/ProductFilterChip.d.ts +1 -3
- package/lib/esm/components/case-list/case-list-filters/ProductFilterChip.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/ProductFilterChip.js +2 -2
- package/lib/esm/components/case-list/case-list-filters/ProductsFilter.d.ts +5 -4
- package/lib/esm/components/case-list/case-list-filters/ProductsFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/ProductsFilter.js +15 -54
- package/lib/esm/components/case-list/case-list-filters/SeverityFilter.d.ts +0 -3
- package/lib/esm/components/case-list/case-list-filters/SeverityFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/SeverityFilter.js +18 -44
- package/lib/esm/components/case-list/case-list-filters/StatusFilter.d.ts +0 -3
- package/lib/esm/components/case-list/case-list-filters/StatusFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/StatusFilter.js +23 -49
- package/lib/esm/components/case-list/case-list-filters/VersionsFilter.d.ts +1 -3
- package/lib/esm/components/case-list/case-list-filters/VersionsFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/VersionsFilter.js +60 -59
- package/lib/esm/components/case-list/case-list-table/ArchivedCaseLabel.d.ts +3 -0
- package/lib/esm/components/case-list/case-list-table/ArchivedCaseLabel.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-list-table/ArchivedCaseLabel.js +8 -0
- package/lib/esm/components/case-list/case-list-table/CaseListLabelGroup.d.ts +9 -0
- package/lib/esm/components/case-list/case-list-table/CaseListLabelGroup.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-list-table/CaseListLabelGroup.js +105 -0
- package/lib/esm/components/case-list/case-list-table/CaseListTable.d.ts +10 -3
- package/lib/esm/components/case-list/case-list-table/CaseListTable.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-table/CaseListTable.js +98 -84
- package/lib/esm/components/case-list/case-list-table/CaseListTableRow.d.ts +33 -0
- package/lib/esm/components/case-list/case-list-table/CaseListTableRow.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-list-table/CaseListTableRow.js +51 -0
- package/lib/esm/components/case-list/case-list-table/CaseListTableSkeletonRow.d.ts +9 -0
- package/lib/esm/components/case-list/case-list-table/CaseListTableSkeletonRow.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-list-table/CaseListTableSkeletonRow.js +10 -0
- package/lib/esm/components/case-list/case-list-table/CloseCaseBtn.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-table/CloseCaseBtn.js +27 -28
- package/lib/esm/components/case-list/case-list-table/DownloadCSVFileModal.d.ts +0 -5
- package/lib/esm/components/case-list/case-list-table/DownloadCSVFileModal.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-table/DownloadCSVFileModal.js +51 -70
- package/lib/esm/components/case-list/case-list-table/ExportCaseListCSV.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-table/ExportCaseListCSV.js +5 -15
- package/lib/esm/components/case-list/case-list-table/SeverityLabel.js +1 -1
- package/lib/esm/components/case-list/case-list-table/TableActionsDropdown.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-table/TableActionsDropdown.js +4 -5
- package/lib/esm/components/case-list/case-list-table/table-column-selector/TableColumnSelector.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-table/table-column-selector/TableColumnSelector.js +1 -0
- package/lib/esm/components/case-list/case-search/AdvanceSearchToggleButton.d.ts +8 -0
- package/lib/esm/components/case-list/case-search/AdvanceSearchToggleButton.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/AdvanceSearchToggleButton.js +8 -0
- package/lib/esm/components/case-list/case-search/BookmarkedSearchesSelector.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-search/BookmarkedSearchesSelector.js +15 -2
- package/lib/esm/components/case-list/case-search/CaseSearch.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-search/CaseSearch.js +55 -24
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchAccountSection.d.ts +10 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchAccountSection.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchAccountSection.js +29 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchAuditsSection.d.ts +10 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchAuditsSection.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchAuditsSection.js +16 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchCaseSection.d.ts +9 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchCaseSection.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchCaseSection.js +21 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchDateRangeField.d.ts +12 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchDateRangeField.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchDateRangeField.js +31 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchFieldBlock.d.ts +10 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchFieldBlock.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchFieldBlock.js +10 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchModal.d.ts +10 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchModal.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchModal.js +92 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchOwnerSection.d.ts +9 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchOwnerSection.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchOwnerSection.js +20 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchProductSection.d.ts +9 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchProductSection.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/AdvanceSearchProductSection.js +28 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/ProductVersionDrilldownSelect.d.ts +9 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/ProductVersionDrilldownSelect.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/ProductVersionDrilldownSelect.js +241 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/SelectableLabelFilter.d.ts +11 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/SelectableLabelFilter.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-search/advance-search-modal/SelectableLabelFilter.js +23 -0
- package/lib/esm/components/case-list/case-search/useAdvanceSearchParser.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-search/useAdvanceSearchParser.js +2 -1
- package/lib/esm/css/caseList.css +197 -28
- package/lib/esm/css/caseSearch.css +114 -0
- package/lib/esm/enums/case.d.ts +13 -5
- package/lib/esm/enums/case.d.ts.map +1 -1
- package/lib/esm/enums/case.js +23 -3
- package/lib/esm/enums/caseSearch.d.ts +3 -0
- package/lib/esm/enums/caseSearch.d.ts.map +1 -1
- package/lib/esm/enums/caseSearch.js +2 -1
- package/lib/esm/enums/filters.d.ts +5 -1
- package/lib/esm/enums/filters.d.ts.map +1 -1
- package/lib/esm/enums/filters.js +4 -0
- package/lib/esm/hooks/useCaseLabels.d.ts +14 -0
- package/lib/esm/hooks/useCaseLabels.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseLabels.js +50 -0
- package/lib/esm/hooks/useCloseCase.d.ts +2 -2
- package/lib/esm/hooks/useCloseCase.d.ts.map +1 -1
- package/lib/esm/hooks/useCloseCase.js +54 -30
- package/lib/esm/hooks/useExportCaseListCSV.d.ts +1 -1
- package/lib/esm/hooks/useExportCaseListCSV.d.ts.map +1 -1
- package/lib/esm/hooks/useExportCaseListCSV.js +1 -9
- package/lib/esm/hooks/useFilterStateOnLoad.d.ts +1 -1
- package/lib/esm/hooks/useFilterStateOnLoad.d.ts.map +1 -1
- package/lib/esm/hooks/useFilterStateOnLoad.js +7 -5
- package/lib/esm/index.js +1 -0
- package/lib/esm/models/caseList.d.ts +1 -0
- package/lib/esm/models/caseList.d.ts.map +1 -1
- package/lib/esm/test-utils/mockData.d.ts +1 -0
- package/lib/esm/test-utils/mockData.d.ts.map +1 -1
- package/lib/esm/test-utils/mockData.js +2 -1
- package/lib/esm/utils/advanceSearchFormMapper.d.ts +11 -0
- package/lib/esm/utils/advanceSearchFormMapper.d.ts.map +1 -0
- package/lib/esm/utils/advanceSearchFormMapper.js +71 -0
- package/lib/esm/utils/advanceSearchUtils.d.ts +24 -0
- package/lib/esm/utils/advanceSearchUtils.d.ts.map +1 -0
- package/lib/esm/utils/advanceSearchUtils.js +150 -0
- package/lib/esm/utils/caseGroupDefaultFilterUtils.d.ts +12 -0
- package/lib/esm/utils/caseGroupDefaultFilterUtils.d.ts.map +1 -0
- package/lib/esm/utils/caseGroupDefaultFilterUtils.js +34 -0
- package/lib/esm/utils/caseGroupDefaultUtils.d.ts +10 -0
- package/lib/esm/utils/caseGroupDefaultUtils.d.ts.map +1 -0
- package/lib/esm/utils/caseGroupDefaultUtils.js +20 -0
- package/lib/esm/utils/caseListGraphQLUtils.d.ts +28 -0
- package/lib/esm/utils/caseListGraphQLUtils.d.ts.map +1 -0
- package/lib/esm/utils/caseListGraphQLUtils.js +304 -0
- package/lib/esm/utils/caseListMapper.d.ts +6 -0
- package/lib/esm/utils/caseListMapper.d.ts.map +1 -0
- package/lib/esm/utils/caseListMapper.js +47 -0
- package/lib/esm/utils/caseListVariablesBuilder.d.ts +17 -0
- package/lib/esm/utils/caseListVariablesBuilder.d.ts.map +1 -0
- package/lib/esm/utils/caseListVariablesBuilder.js +535 -0
- package/lib/esm/utils/caseSearchUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseSearchUtils.js +39 -2
- package/lib/esm/utils/constants.d.ts +22 -19
- package/lib/esm/utils/constants.d.ts.map +1 -1
- package/lib/esm/utils/constants.js +9 -2
- package/lib/esm/utils/mockSolrResponse.js +1 -1
- package/package.json +9 -7
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { useApolloClient } from '@apollo/client/react';
|
|
2
|
+
import { Badge, Divider, DrilldownMenu, Flex, FlexItem, Menu, MenuContainer, MenuContent, MenuItem, MenuList, MenuToggle, SearchInput, Spinner, } from '@patternfly/react-core';
|
|
3
|
+
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
|
+
import { compareVersions, GET_PRODUCTS, handleGraphQLVersionsResponse } from '@rh-support/utils';
|
|
5
|
+
import React, { useContext, useMemo, useRef, useState } from 'react';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
|
+
import { SolrKeys } from '../../../../enums/filters';
|
|
8
|
+
const ROOT_MENU_ID = 'advance-search-product-version-root';
|
|
9
|
+
export function ProductVersionDrilldownSelect({ products, onChange }) {
|
|
10
|
+
var _a;
|
|
11
|
+
const { t } = useTranslation();
|
|
12
|
+
const apolloClient = useApolloClient();
|
|
13
|
+
const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
|
|
14
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
15
|
+
const [productSearch, setProductSearch] = useState('');
|
|
16
|
+
const [menuDrilledIn, setMenuDrilledIn] = useState([]);
|
|
17
|
+
const [drilldownPath, setDrilldownPath] = useState([]);
|
|
18
|
+
const [activeMenu, setActiveMenu] = useState(ROOT_MENU_ID);
|
|
19
|
+
const [menuHeights, setMenuHeights] = useState({});
|
|
20
|
+
const [versionsByProductId, setVersionsByProductId] = useState({});
|
|
21
|
+
const [loadingProductIds, setLoadingProductIds] = useState({});
|
|
22
|
+
const toggleRef = useRef(null);
|
|
23
|
+
const menuRef = useRef(null);
|
|
24
|
+
const productOptions = useMemo(() => {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
return ((_b = (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult) === null || _b === void 0 ? void 0 : _b.map((product) => ({
|
|
27
|
+
name: product.product || product.name || '',
|
|
28
|
+
productId: product.productId || '',
|
|
29
|
+
}))) || [];
|
|
30
|
+
}, [(_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult]);
|
|
31
|
+
const filteredProducts = useMemo(() => {
|
|
32
|
+
if (!productSearch.trim()) {
|
|
33
|
+
return productOptions;
|
|
34
|
+
}
|
|
35
|
+
const formattedValue = productSearch.replace(/\\/g, '');
|
|
36
|
+
const searchPattern = new RegExp(formattedValue, 'i');
|
|
37
|
+
return productOptions.filter((product) => searchPattern.test(product.name));
|
|
38
|
+
}, [productOptions, productSearch]);
|
|
39
|
+
const selectedFilterCount = useMemo(() => products.reduce((count, product) => {
|
|
40
|
+
const versions = product[SolrKeys.version] || [];
|
|
41
|
+
return count + (versions.length > 0 ? versions.length : 1);
|
|
42
|
+
}, 0), [products]);
|
|
43
|
+
const resetDrilldownState = () => {
|
|
44
|
+
setMenuDrilledIn([]);
|
|
45
|
+
setDrilldownPath([]);
|
|
46
|
+
setActiveMenu(ROOT_MENU_ID);
|
|
47
|
+
setProductSearch('');
|
|
48
|
+
setMenuHeights({});
|
|
49
|
+
};
|
|
50
|
+
const handleOpenChange = (open) => {
|
|
51
|
+
setIsOpen(open);
|
|
52
|
+
if (!open) {
|
|
53
|
+
resetDrilldownState();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const setHeight = (menuId, height) => {
|
|
57
|
+
setMenuHeights((previousHeights) => {
|
|
58
|
+
if (previousHeights[menuId] === undefined ||
|
|
59
|
+
(menuId !== ROOT_MENU_ID && previousHeights[menuId] !== height)) {
|
|
60
|
+
return Object.assign(Object.assign({}, previousHeights), { [menuId]: height });
|
|
61
|
+
}
|
|
62
|
+
return previousHeights;
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
const updateMenuHeight = (menuId) => {
|
|
66
|
+
requestAnimationFrame(() => {
|
|
67
|
+
var _a;
|
|
68
|
+
const menuContent = (_a = document.getElementById(menuId)) === null || _a === void 0 ? void 0 : _a.querySelector('.pf-v6-c-menu__content');
|
|
69
|
+
if (menuContent instanceof HTMLElement) {
|
|
70
|
+
setHeight(menuId, menuContent.clientHeight);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
const drillIn = (_event, fromMenuId, toMenuId, pathId) => {
|
|
75
|
+
setMenuDrilledIn((previousMenus) => [...previousMenus, fromMenuId]);
|
|
76
|
+
setDrilldownPath((previousPath) => [...previousPath, pathId]);
|
|
77
|
+
setActiveMenu(toMenuId);
|
|
78
|
+
const productId = pathId.replace('product-', '');
|
|
79
|
+
const product = productOptions.find((item) => item.productId === productId);
|
|
80
|
+
if (product) {
|
|
81
|
+
fetchVersionsForProduct(product);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const drillOut = (_event, toMenuId) => {
|
|
85
|
+
setMenuDrilledIn((previousMenus) => previousMenus.slice(0, -1));
|
|
86
|
+
setDrilldownPath((previousPath) => previousPath.slice(0, -1));
|
|
87
|
+
setActiveMenu(toMenuId);
|
|
88
|
+
};
|
|
89
|
+
const fetchVersionsForProduct = (product) => {
|
|
90
|
+
if (!product.productId || versionsByProductId[product.productId] || loadingProductIds[product.productId]) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
setLoadingProductIds((previousState) => (Object.assign(Object.assign({}, previousState), { [product.productId]: true })));
|
|
94
|
+
apolloClient
|
|
95
|
+
.query({
|
|
96
|
+
query: GET_PRODUCTS,
|
|
97
|
+
variables: {
|
|
98
|
+
where: { ParentProduct__c: { eq: product.productId }, IsActive: { eq: true } },
|
|
99
|
+
first: 200,
|
|
100
|
+
orderBy: { Name: { order: 'ASC' } },
|
|
101
|
+
},
|
|
102
|
+
fetchPolicy: 'cache-first',
|
|
103
|
+
})
|
|
104
|
+
.then(({ data }) => {
|
|
105
|
+
var _a, _b, _c, _d;
|
|
106
|
+
const edges = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.redhat_support_uiapi) === null || _a === void 0 ? void 0 : _a.query) === null || _b === void 0 ? void 0 : _b.RedHatSupportProduct2) === null || _c === void 0 ? void 0 : _c.edges) !== null && _d !== void 0 ? _d : [];
|
|
107
|
+
const versionData = handleGraphQLVersionsResponse(edges, product.name);
|
|
108
|
+
const sortedVersions = [...versionData].sort((versionA, versionB) => compareVersions(versionA.name, versionB.name));
|
|
109
|
+
setVersionsByProductId((previousState) => (Object.assign(Object.assign({}, previousState), { [product.productId]: sortedVersions })));
|
|
110
|
+
updateMenuHeight(`versions-menu-${product.productId}`);
|
|
111
|
+
})
|
|
112
|
+
.catch((error) => {
|
|
113
|
+
console.error('[ProductVersionDrilldownSelect] Failed to fetch versions:', error);
|
|
114
|
+
setVersionsByProductId((previousState) => (Object.assign(Object.assign({}, previousState), { [product.productId]: [] })));
|
|
115
|
+
updateMenuHeight(`versions-menu-${product.productId}`);
|
|
116
|
+
})
|
|
117
|
+
.finally(() => {
|
|
118
|
+
setLoadingProductIds((previousState) => (Object.assign(Object.assign({}, previousState), { [product.productId]: false })));
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
const getProductAppliedFilterCount = (product) => {
|
|
122
|
+
const selectedProduct = products.find((item) => item.value === product.name);
|
|
123
|
+
if (!selectedProduct) {
|
|
124
|
+
return 0;
|
|
125
|
+
}
|
|
126
|
+
const versions = selectedProduct[SolrKeys.version] || [];
|
|
127
|
+
return versions.length > 0 ? versions.length : 1;
|
|
128
|
+
};
|
|
129
|
+
const isProductOnlySelected = (product) => {
|
|
130
|
+
var _a;
|
|
131
|
+
const selectedProduct = products.find((item) => item.value === product.name);
|
|
132
|
+
return !!selectedProduct && !((_a = selectedProduct[SolrKeys.version]) === null || _a === void 0 ? void 0 : _a.length);
|
|
133
|
+
};
|
|
134
|
+
const toggleProductOnlySelection = (product) => {
|
|
135
|
+
var _a;
|
|
136
|
+
const productIndex = products.findIndex((item) => item.value === product.name);
|
|
137
|
+
if (productIndex === -1) {
|
|
138
|
+
onChange([
|
|
139
|
+
...products,
|
|
140
|
+
{
|
|
141
|
+
field: SolrKeys.product,
|
|
142
|
+
value: product.name,
|
|
143
|
+
productId: product.productId,
|
|
144
|
+
[SolrKeys.version]: [],
|
|
145
|
+
},
|
|
146
|
+
]);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const currentProduct = products[productIndex];
|
|
150
|
+
const hasVersions = (((_a = currentProduct[SolrKeys.version]) === null || _a === void 0 ? void 0 : _a.length) || 0) > 0;
|
|
151
|
+
if (!hasVersions) {
|
|
152
|
+
onChange(products.filter((_, index) => index !== productIndex));
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
const nextProducts = [...products];
|
|
156
|
+
nextProducts[productIndex] = Object.assign(Object.assign({}, currentProduct), { [SolrKeys.version]: [] });
|
|
157
|
+
onChange(nextProducts);
|
|
158
|
+
};
|
|
159
|
+
const isVersionSelected = (productName, versionName) => {
|
|
160
|
+
var _a, _b;
|
|
161
|
+
const selectedProduct = products.find((product) => product.value === productName);
|
|
162
|
+
return (_b = (_a = selectedProduct === null || selectedProduct === void 0 ? void 0 : selectedProduct[SolrKeys.version]) === null || _a === void 0 ? void 0 : _a.some((version) => version.value === versionName)) !== null && _b !== void 0 ? _b : false;
|
|
163
|
+
};
|
|
164
|
+
const toggleVersionSelection = (product, version) => {
|
|
165
|
+
const nextProducts = [...products];
|
|
166
|
+
const productIndex = nextProducts.findIndex((item) => item.value === product.name);
|
|
167
|
+
if (productIndex === -1) {
|
|
168
|
+
onChange([
|
|
169
|
+
...nextProducts,
|
|
170
|
+
{
|
|
171
|
+
field: SolrKeys.product,
|
|
172
|
+
value: product.name,
|
|
173
|
+
productId: product.productId,
|
|
174
|
+
[SolrKeys.version]: [
|
|
175
|
+
{
|
|
176
|
+
field: SolrKeys.version,
|
|
177
|
+
value: version.name,
|
|
178
|
+
productId: version.id,
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
},
|
|
182
|
+
]);
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
const currentProduct = nextProducts[productIndex];
|
|
186
|
+
const currentVersions = currentProduct[SolrKeys.version] || [];
|
|
187
|
+
const versionIndex = currentVersions.findIndex((item) => item.value === version.name);
|
|
188
|
+
const nextVersions = versionIndex >= 0
|
|
189
|
+
? currentVersions.filter((_, index) => index !== versionIndex)
|
|
190
|
+
: [
|
|
191
|
+
...currentVersions,
|
|
192
|
+
{
|
|
193
|
+
field: SolrKeys.version,
|
|
194
|
+
value: version.name,
|
|
195
|
+
productId: version.id,
|
|
196
|
+
},
|
|
197
|
+
];
|
|
198
|
+
if (nextVersions.length === 0) {
|
|
199
|
+
onChange(nextProducts.filter((_, index) => index !== productIndex));
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
nextProducts[productIndex] = Object.assign(Object.assign({}, currentProduct), { [SolrKeys.version]: nextVersions });
|
|
203
|
+
onChange(nextProducts);
|
|
204
|
+
};
|
|
205
|
+
const renderVersionItems = (product) => {
|
|
206
|
+
const versions = versionsByProductId[product.productId];
|
|
207
|
+
const isLoading = loadingProductIds[product.productId];
|
|
208
|
+
if (isLoading || versions === undefined) {
|
|
209
|
+
return (React.createElement(MenuItem, { itemId: `loading-${product.productId}`, isDisabled: true },
|
|
210
|
+
React.createElement(Spinner, { size: "sm", "aria-label": t('Loading versions') }),
|
|
211
|
+
" ",
|
|
212
|
+
t('Loading...')));
|
|
213
|
+
}
|
|
214
|
+
if (!versions.length) {
|
|
215
|
+
return (React.createElement(MenuItem, { itemId: `no-versions-${product.productId}`, isDisabled: true }, t('No versions found')));
|
|
216
|
+
}
|
|
217
|
+
return versions.map((version) => (React.createElement(MenuItem, { key: `${product.productId}-${version.name}`, itemId: `version-${product.productId}-${version.name}`, hasCheckbox: true, isSelected: isVersionSelected(product.name, version.name), onClick: () => toggleVersionSelection(product, version) }, version.name)));
|
|
218
|
+
};
|
|
219
|
+
const renderProductDrilldownMenu = (product) => (React.createElement(DrilldownMenu, { id: `versions-menu-${product.productId}` },
|
|
220
|
+
React.createElement(MenuItem, { itemId: `breadcrumb-${product.productId}`, direction: "up" }, product.name),
|
|
221
|
+
React.createElement(Divider, { component: "li" }),
|
|
222
|
+
React.createElement(MenuItem, { itemId: `product-only-${product.productId}`, hasCheckbox: true, isSelected: isProductOnlySelected(product), onClick: () => toggleProductOnlySelection(product) }, t('Entire product')),
|
|
223
|
+
React.createElement(Divider, { component: "li" }),
|
|
224
|
+
renderVersionItems(product)));
|
|
225
|
+
const toggleLabel = t('Select Product & version');
|
|
226
|
+
const isRootMenuActive = activeMenu === ROOT_MENU_ID;
|
|
227
|
+
return (React.createElement(MenuContainer, { isOpen: isOpen, onOpenChange: handleOpenChange, menuRef: menuRef, toggleRef: toggleRef, popperProps: { direction: 'down', enableFlip: false, width: 'trigger' }, toggle: React.createElement(MenuToggle, { ref: toggleRef, onClick: () => handleOpenChange(!isOpen), isExpanded: isOpen, isFullWidth: true, "aria-label": t('Select Product & version') },
|
|
228
|
+
React.createElement(Flex, { alignItems: { default: 'alignItemsCenter' }, justifyContent: { default: 'justifyContentSpaceBetween' }, className: "pf-v6-u-w-100 advance-search-dropdown-toggle-content" },
|
|
229
|
+
React.createElement(FlexItem, { className: "pf-v6-u-text-align-left" }, toggleLabel),
|
|
230
|
+
selectedFilterCount > 0 ? (React.createElement(FlexItem, { className: "advance-search-dropdown-toggle-badge-wrap" },
|
|
231
|
+
React.createElement(Badge, { className: "advance-search-dropdown-toggle-badge" }, t('{{count}} selected', { count: selectedFilterCount })))) : null)), menu: React.createElement(Menu, { id: ROOT_MENU_ID, ref: menuRef, containsDrilldown: true, drilldownItemPath: drilldownPath, drilledInMenus: menuDrilledIn, activeMenu: activeMenu, onDrillIn: drillIn, onDrillOut: drillOut, onGetMenuHeight: setHeight, isScrollable: true, "data-tracking-id": "advance-search-product-version-drilldown" },
|
|
232
|
+
React.createElement(MenuContent, { menuHeight: `${menuHeights[activeMenu]}px` },
|
|
233
|
+
!isRootMenuActive ? null : (React.createElement("div", { className: "advance-search-product-version-search pf-v6-u-p-sm", onMouseDown: (event) => event.stopPropagation() },
|
|
234
|
+
React.createElement(SearchInput, { placeholder: t('Find product by name'), value: productSearch, onChange: (_event, value) => setProductSearch(value), onClear: () => setProductSearch(''), "aria-label": t('Find product by name') }))),
|
|
235
|
+
React.createElement(MenuList, null, filteredProducts.length === 0 ? (React.createElement(MenuItem, { itemId: "no-products-found", isDisabled: true }, t('No results found'))) : (filteredProducts.map((product) => {
|
|
236
|
+
const productAppliedCount = getProductAppliedFilterCount(product);
|
|
237
|
+
return (React.createElement(MenuItem, { key: product.productId, itemId: `product-${product.productId}`, direction: "down", actions: productAppliedCount > 0 ? (React.createElement(Badge, { className: "advance-search-product-menu-item-badge pf-v6-u-mx-sm", "aria-label": t('{{count}} filters applied', {
|
|
238
|
+
count: productAppliedCount,
|
|
239
|
+
}) }, productAppliedCount)) : undefined, drilldownMenu: renderProductDrilldownMenu(product) }, product.name));
|
|
240
|
+
}))))) }));
|
|
241
|
+
}
|
package/lib/esm/components/case-list/case-search/advance-search-modal/SelectableLabelFilter.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
label: string;
|
|
4
|
+
options: string[];
|
|
5
|
+
selected: string[];
|
|
6
|
+
onChange: (selected: string[]) => void;
|
|
7
|
+
sectionId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function SelectableLabelFilter({ label, options, selected, onChange, sectionId }: IProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=SelectableLabelFilter.d.ts.map
|
package/lib/esm/components/case-list/case-search/advance-search-modal/SelectableLabelFilter.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectableLabelFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/case-list/case-search/advance-search-modal/SelectableLabelFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,MAAM;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,MAAM,qBAwD9F"}
|
package/lib/esm/components/case-list/case-search/advance-search-modal/SelectableLabelFilter.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Button, Flex, Label } from '@patternfly/react-core';
|
|
2
|
+
import CloseIcon from '@patternfly/react-icons/dist/esm/icons/close-icon';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { AdvanceSearchFieldBlock } from './AdvanceSearchFieldBlock';
|
|
6
|
+
export function SelectableLabelFilter({ label, options, selected, onChange, sectionId }) {
|
|
7
|
+
const { t } = useTranslation();
|
|
8
|
+
const toggleOption = (option) => {
|
|
9
|
+
if (selected.includes(option)) {
|
|
10
|
+
onChange(selected.filter((value) => value !== option));
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
onChange([...selected, option]);
|
|
14
|
+
};
|
|
15
|
+
const clearSelection = () => onChange([]);
|
|
16
|
+
return (React.createElement(AdvanceSearchFieldBlock, { label: React.createElement(React.Fragment, null,
|
|
17
|
+
label,
|
|
18
|
+
selected.length > 0 ? ` (${selected.length})` : ''), headerActions: selected.length > 0 ? (React.createElement(Button, { variant: "plain", onClick: clearSelection, "aria-label": t('Clear {{label}} selection', { label }), icon: React.createElement(CloseIcon, { "aria-hidden": true }), className: "pf-v6-u-p-0" })) : undefined },
|
|
19
|
+
React.createElement(Flex, { flexWrap: { default: 'wrap' }, spaceItems: { default: 'spaceItemsSm' }, rowGap: { default: 'rowGapSm' } }, options.map((option) => {
|
|
20
|
+
const isSelected = selected.includes(option);
|
|
21
|
+
return (React.createElement(Label, { key: option, color: isSelected ? 'blue' : 'grey', variant: isSelected ? 'filled' : 'outline', isCompact: true, onClick: () => toggleOption(option), id: `${sectionId}-${option.replace(/\s+/g, '-')}` }, option));
|
|
22
|
+
}))));
|
|
23
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAdvanceSearchParser.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/useAdvanceSearchParser.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,MAAM,EAAE;;CAAA;
|
|
1
|
+
{"version":3,"file":"useAdvanceSearchParser.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/useAdvanceSearchParser.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,MAAM,EAAE;;CAAA;yBAUzB,MAAM;6BAIF,MAAM;;EA+LzC"}
|
|
@@ -5,7 +5,8 @@ import { useEffect, useRef } from 'react';
|
|
|
5
5
|
import { SolrKeys } from '../../../enums/filters';
|
|
6
6
|
import { useCaseListStateContext } from '../CaseListContext';
|
|
7
7
|
export default function useAdvanceSearchParser({ onInit }) {
|
|
8
|
-
const
|
|
8
|
+
const caseListState = useCaseListStateContext();
|
|
9
|
+
const filterValuesFromFacetResponse = caseListState.filterValuesFromFacetResponse || {};
|
|
9
10
|
const { globalMetadataState: { caseGroups, loggedInUsersAccount, bookmarkedGroupAccounts, allCaseTypes }, } = useGlobalStateContext();
|
|
10
11
|
const parserRef = useRef(null);
|
|
11
12
|
const parse = (stringQuery) => {
|
package/lib/esm/css/caseList.css
CHANGED
|
@@ -186,11 +186,17 @@
|
|
|
186
186
|
.cases-main .case-search-table {
|
|
187
187
|
-ms-flex: 1;
|
|
188
188
|
flex-grow: 1;
|
|
189
|
-
display:
|
|
190
|
-
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
min-width: 0;
|
|
191
192
|
border-radius: 0 0 16px !important;
|
|
192
193
|
}
|
|
193
194
|
|
|
195
|
+
.cases-main .case-search-table > .pf-v6-c-scroll-inner-wrapper {
|
|
196
|
+
overflow-x: auto;
|
|
197
|
+
flex: 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
194
200
|
.case-search-bottom .case-list-table-toolbar {
|
|
195
201
|
-ms-flex-align: center;
|
|
196
202
|
align-items: center;
|
|
@@ -200,6 +206,10 @@
|
|
|
200
206
|
background-color: var(--pf-t--color--gray--10);
|
|
201
207
|
border-top: 1px solid var(--pf-t--global--border--color--100);
|
|
202
208
|
border-right: 1px solid var(--pf-t--global--border--color--100);
|
|
209
|
+
border-bottom: 1px solid var(--pf-t--global--border--color--100);
|
|
210
|
+
position: sticky;
|
|
211
|
+
top: 0;
|
|
212
|
+
z-index: 100;
|
|
203
213
|
}
|
|
204
214
|
|
|
205
215
|
.case-search-bottom .case-list-table-toolbar .toolbar-actions {
|
|
@@ -219,26 +229,105 @@
|
|
|
219
229
|
color: #06c !important;
|
|
220
230
|
}
|
|
221
231
|
|
|
222
|
-
.case-search-bottom .case-list-table-toolbar .toolbar-pagination button[disabled] {
|
|
223
|
-
color: #999;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
232
|
.case-search-bottom .case-list-table-toolbar button.pf-m-secondary:not([disabled]),
|
|
227
233
|
.case-search-bottom .case-list-table-toolbar button.pf-m-tertiary:not([disabled]),
|
|
228
234
|
.case-search-bottom .case-list-table-toolbar button.pf-m-control:not([disabled]) {
|
|
229
235
|
background-color: #fff;
|
|
230
236
|
}
|
|
231
237
|
|
|
238
|
+
.case-count-indicator {
|
|
239
|
+
font-size: 14px !important;
|
|
240
|
+
line-height: 1.5em;
|
|
241
|
+
white-space: nowrap;
|
|
242
|
+
padding-right: 1rem;
|
|
243
|
+
color: var(--pf-t--global--text--color--regular, #151515);
|
|
244
|
+
}
|
|
245
|
+
|
|
232
246
|
.cases-main .case-search-table .case-list-table {
|
|
233
|
-
border-top: 1px solid var(--pf-t--global--border--color--100);
|
|
234
247
|
border-right: 1px solid var(--pf-t--global--border--color--100);
|
|
235
248
|
border-bottom: 1px solid var(--pf-t--global--border--color--100);
|
|
236
249
|
}
|
|
237
250
|
|
|
238
|
-
.case-list-table .pf-v6-c-label .pf-v6-c-label__content .pf-v6-c-label__icon {
|
|
251
|
+
.case-list-table td[data-label='Case labels'] .pf-v6-c-label .pf-v6-c-label__content .pf-v6-c-label__icon {
|
|
239
252
|
display: none;
|
|
240
253
|
}
|
|
241
254
|
|
|
255
|
+
.case-number-section .archived-case-label.pf-m-purple .pf-v6-c-label__icon {
|
|
256
|
+
color: #5e40be;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.case-list-table th#caseLabel,
|
|
260
|
+
.case-list-table td[data-label='Case labels'] {
|
|
261
|
+
width: 20rem;
|
|
262
|
+
min-width: 20rem;
|
|
263
|
+
max-width: 20rem;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.case-list-label-cell {
|
|
267
|
+
--case-list-label-gap: 8px;
|
|
268
|
+
position: relative;
|
|
269
|
+
max-width: 100%;
|
|
270
|
+
width: 100%;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.case-list-label-cell__measure {
|
|
274
|
+
display: flex;
|
|
275
|
+
column-gap: var(--case-list-label-gap);
|
|
276
|
+
position: absolute;
|
|
277
|
+
visibility: hidden;
|
|
278
|
+
pointer-events: none;
|
|
279
|
+
height: 0;
|
|
280
|
+
overflow: hidden;
|
|
281
|
+
white-space: nowrap;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.case-list-table td[data-label='Case labels'] .case-list-label-group,
|
|
285
|
+
.case-list-table td[data-label='Case labels'] .case-list-label-group .pf-v6-c-label-group__main,
|
|
286
|
+
.case-list-table td[data-label='Case labels'] .case-list-label-group .pf-v6-c-label-group__list {
|
|
287
|
+
max-width: 100%;
|
|
288
|
+
width: 100%;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.case-list-table td[data-label='Case labels'] .case-list-label-group .pf-v6-c-label-group__list {
|
|
292
|
+
column-gap: var(--case-list-label-gap);
|
|
293
|
+
flex-wrap: nowrap;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.case-list-table td[data-label='Case labels'] .case-list-label-group .pf-v6-c-label-group__list-item {
|
|
297
|
+
flex-shrink: 0;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.case-list-table td[data-label='Case labels'] .case-list-label-group .pf-v6-c-label__text {
|
|
301
|
+
white-space: nowrap;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.case-list-label-popover .pf-v6-c-label-group__list {
|
|
305
|
+
column-gap: var(--case-list-label-gap);
|
|
306
|
+
row-gap: var(--case-list-label-gap);
|
|
307
|
+
flex-wrap: wrap;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.case-list-label-popover-panel {
|
|
311
|
+
--case-list-label-gap: 8px;
|
|
312
|
+
--case-list-label-popover-offset-x: 0.9rem;
|
|
313
|
+
--case-list-label-popover-offset-y: 0.1rem;
|
|
314
|
+
--case-list-label-popover-close-offset-x: 0.5rem;
|
|
315
|
+
--pf-v6-c-popover__close--sibling--PaddingInlineEnd: var(--pf-t--global--spacer--md);
|
|
316
|
+
--pf-v6-c-popover__close--InsetInlineEnd: calc(
|
|
317
|
+
var(--pf-v6-c-popover__content--PaddingInlineEnd, 1rem) - var(--case-list-label-popover-close-offset-x)
|
|
318
|
+
);
|
|
319
|
+
margin-inline-start: var(--case-list-label-popover-offset-x);
|
|
320
|
+
margin-block-start: var(--case-list-label-popover-offset-y);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.case-list-label-popover-panel .pf-v6-c-popover__close .pf-v6-c-button {
|
|
324
|
+
width: 21px;
|
|
325
|
+
height: 21px;
|
|
326
|
+
min-width: 21px;
|
|
327
|
+
min-height: 21px;
|
|
328
|
+
padding: 0;
|
|
329
|
+
}
|
|
330
|
+
|
|
242
331
|
.case-list-table td[data-label='Title'] {
|
|
243
332
|
text-align: start !important;
|
|
244
333
|
}
|
|
@@ -264,6 +353,11 @@
|
|
|
264
353
|
background-color: white;
|
|
265
354
|
}
|
|
266
355
|
|
|
356
|
+
.case-search-bottom .case-list-table th#product.pf-v6-c-table__th {
|
|
357
|
+
white-space: nowrap;
|
|
358
|
+
min-width: 12.5rem;
|
|
359
|
+
}
|
|
360
|
+
|
|
267
361
|
.case-search-bottom .case-list-table .case-number,
|
|
268
362
|
.case-search-bottom .case-list-table .modified-name,
|
|
269
363
|
.case-search-bottom .case-list-table .created-name {
|
|
@@ -277,17 +371,6 @@
|
|
|
277
371
|
text-transform: uppercase;
|
|
278
372
|
}
|
|
279
373
|
|
|
280
|
-
.case-search-bottom .case-search-table footer.toolbar-pagination {
|
|
281
|
-
margin-top: 0 !important;
|
|
282
|
-
border-right: 1px solid var(--pf-t--global--border--color--100);
|
|
283
|
-
border-bottom: 1px solid var(--pf-t--global--border--color--100);
|
|
284
|
-
border-radius: 16px !important;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.case-search-bottom .case-search-table footer.toolbar-pagination > :first-child {
|
|
288
|
-
padding: 1rem;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
374
|
.case-search-bottom #case-filters-panel {
|
|
292
375
|
-ms-flex: 100%;
|
|
293
376
|
flex-basis: 100%;
|
|
@@ -300,11 +383,13 @@
|
|
|
300
383
|
border-right: 1px solid var(--pf-t--global--border--color--100);
|
|
301
384
|
border-bottom: 1px solid var(--pf-t--global--border--color--100);
|
|
302
385
|
border-radius: 0 0 0 16px;
|
|
386
|
+
align-self: stretch;
|
|
303
387
|
}
|
|
304
388
|
|
|
305
389
|
.case-search-filters .filter-header {
|
|
306
390
|
min-height: 4rem;
|
|
307
391
|
margin: 0;
|
|
392
|
+
padding: 0;
|
|
308
393
|
}
|
|
309
394
|
|
|
310
395
|
.case-search-filters .filter-header .pf-v6-svg {
|
|
@@ -349,6 +434,10 @@
|
|
|
349
434
|
font-size: 1rem;
|
|
350
435
|
font-weight: 600;
|
|
351
436
|
height: 4.3rem;
|
|
437
|
+
position: sticky;
|
|
438
|
+
top: 0;
|
|
439
|
+
z-index: 100;
|
|
440
|
+
background-color: #f2f2f2;
|
|
352
441
|
|
|
353
442
|
.pf-v6-c-button__icon.pf-m-end {
|
|
354
443
|
margin-right: -4px !important;
|
|
@@ -359,6 +448,8 @@
|
|
|
359
448
|
.filter-wrapper {
|
|
360
449
|
padding: 24px;
|
|
361
450
|
background-color: var(--pf-t--color--gray--10);
|
|
451
|
+
position: relative;
|
|
452
|
+
z-index: 0;
|
|
362
453
|
}
|
|
363
454
|
|
|
364
455
|
.filter-wrapper .filter-group > * {
|
|
@@ -413,10 +504,6 @@
|
|
|
413
504
|
.case-search-bottom .case-list-table-toolbar .toolbar-actions > * {
|
|
414
505
|
margin-bottom: 0;
|
|
415
506
|
}
|
|
416
|
-
|
|
417
|
-
.case-search-bottom .case-list-table-toolbar .toolbar-pagination {
|
|
418
|
-
margin-top: 0;
|
|
419
|
-
}
|
|
420
507
|
}
|
|
421
508
|
|
|
422
509
|
@media (min-width: 768px) {
|
|
@@ -604,11 +691,14 @@
|
|
|
604
691
|
min-width: 180px !important;
|
|
605
692
|
}
|
|
606
693
|
|
|
607
|
-
th#product.pf-v6-c-table__th,
|
|
608
694
|
th#type.pf-v6-c-table__th {
|
|
609
695
|
min-width: 190px !important;
|
|
610
696
|
}
|
|
611
697
|
|
|
698
|
+
th#product.pf-v6-c-table__th {
|
|
699
|
+
min-width: 210px !important;
|
|
700
|
+
}
|
|
701
|
+
|
|
612
702
|
th#accountNumber.pf-v6-c-table__th {
|
|
613
703
|
min-width: 205px;
|
|
614
704
|
}
|
|
@@ -638,10 +728,89 @@
|
|
|
638
728
|
}
|
|
639
729
|
}
|
|
640
730
|
|
|
641
|
-
th#product.pf-v6-c-table__th {
|
|
642
|
-
padding-top: 20px !important;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
731
|
.case-list-table .pf-v6-c-table__button {
|
|
646
732
|
margin-bottom: 0px !important;
|
|
647
733
|
}
|
|
734
|
+
|
|
735
|
+
.skeleton-loader-row {
|
|
736
|
+
height: 62px;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.skeleton-loader-row .skeleton-sentinel {
|
|
740
|
+
display: flex;
|
|
741
|
+
align-items: center;
|
|
742
|
+
height: 100%;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.skeleton-loader-row .skeleton-bar {
|
|
746
|
+
display: block;
|
|
747
|
+
height: 24px;
|
|
748
|
+
border-radius: 4px;
|
|
749
|
+
background-color: #e0e0e0;
|
|
750
|
+
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.skeleton-loader-row .skeleton-bar--checkbox {
|
|
754
|
+
display: inline-block;
|
|
755
|
+
width: 16px;
|
|
756
|
+
height: 16px;
|
|
757
|
+
border-radius: 3px;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
@keyframes skeleton-pulse {
|
|
761
|
+
0% {
|
|
762
|
+
opacity: 1;
|
|
763
|
+
}
|
|
764
|
+
50% {
|
|
765
|
+
opacity: 0.4;
|
|
766
|
+
}
|
|
767
|
+
100% {
|
|
768
|
+
opacity: 1;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
.infinite-scroll-footer-message {
|
|
773
|
+
display: flex;
|
|
774
|
+
justify-content: center;
|
|
775
|
+
align-items: center;
|
|
776
|
+
gap: 8px;
|
|
777
|
+
padding: 12px 0;
|
|
778
|
+
position: sticky;
|
|
779
|
+
left: 0;
|
|
780
|
+
background-color: #fff;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.infinite-scroll-footer-text,
|
|
784
|
+
.infinite-scroll-alert,
|
|
785
|
+
.infinite-scroll-alert * {
|
|
786
|
+
font-size: 14px !important;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.infinite-scroll-footer-message .pf-v6-c-alert.pf-m-inline.pf-m-plain {
|
|
790
|
+
padding: 0;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.infinite-scroll-footer-message .pf-v6-c-button.pf-m-link.pf-m-inline {
|
|
794
|
+
text-decoration: none;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.infinite-scroll-retry-btn.pf-v6-c-button.pf-m-secondary {
|
|
798
|
+
border-radius: 999px;
|
|
799
|
+
padding: 8px 24px;
|
|
800
|
+
gap: 6px;
|
|
801
|
+
font-size: 14px;
|
|
802
|
+
font-weight: 400;
|
|
803
|
+
line-height: 1.5;
|
|
804
|
+
display: inline-flex;
|
|
805
|
+
align-items: center;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.infinite-scroll-retry-btn .pf-v6-c-button__icon {
|
|
809
|
+
display: inline-flex;
|
|
810
|
+
align-items: center;
|
|
811
|
+
line-height: 0;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.infinite-scroll-retry-btn .pf-v6-c-button__icon svg {
|
|
815
|
+
vertical-align: middle;
|
|
816
|
+
}
|