@rh-support/cases 1.0.41-beta.58 → 1.0.43-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/case/NewCaseButton.d.ts.map +1 -1
- package/lib/esm/components/case/NewCaseButton.js +3 -4
- package/lib/esm/components/case-list/CaseListFilterHelpers.js +1 -1
- package/lib/esm/components/case-list/case-list-filters/AccountsBookmarkedGroupFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/AccountsBookmarkedGroupFilter.js +61 -63
- 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 +2 -5
- 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 +17 -42
- package/lib/esm/components/case-list/case-list-filters/TypeFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/TypeFilter.js +5 -10
- package/lib/esm/components/case-list/case-list-table/CaseListTable.js +4 -4
- 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 +7 -13
- package/lib/esm/components/case-list/case-search/AdvanceSearch.js +1 -1
- package/lib/esm/components/case-list/case-search/CaseSearch.d.ts +1 -1
- package/lib/esm/components/case-list/case-search/CaseSearch.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-search/useAdvanceSearchParser.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-search/useAdvanceSearchParser.js +3 -6
- package/lib/esm/css/caseList.css +1 -1
- package/lib/esm/enums/case.js +2 -2
- package/lib/esm/enums/caseSearch.js +2 -2
- package/lib/esm/enums/filters.d.ts +2 -2
- package/lib/esm/enums/filters.d.ts.map +1 -1
- package/lib/esm/enums/filters.js +3 -3
- package/lib/esm/i18n/template-de.js +1 -1
- package/lib/esm/i18n/template-fr.js +1 -1
- package/lib/esm/i18n/template-jp.js +1 -1
- package/lib/esm/i18n/template-ko.js +1 -1
- package/lib/esm/i18n/template-pt.js +1 -1
- package/lib/esm/i18n/template-ru.js +1 -1
- package/lib/esm/i18n/template-zh.js +1 -1
- package/lib/esm/utils/caseSearchUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseSearchUtils.js +3 -10
- package/lib/esm/utils/constants.js +1 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewCaseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/case/NewCaseButton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;CACzD;AACD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"NewCaseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/case/NewCaseButton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;CACzD;AACD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,eAmB1C"}
|
|
@@ -2,9 +2,8 @@ import { Button, ButtonVariant } from '@patternfly/react-core';
|
|
|
2
2
|
import { useCanCreateCase } from '@rh-support/react-context';
|
|
3
3
|
import { getStringifiedParams } from '@rh-support/utils';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { Trans
|
|
5
|
+
import { Trans } from 'react-i18next';
|
|
6
6
|
export function NewCaseButton(props) {
|
|
7
|
-
const { t } = useTranslation();
|
|
8
7
|
const canCreateCase = useCanCreateCase();
|
|
9
8
|
const onNew = () => {
|
|
10
9
|
if (canCreateCase.alert()) {
|
|
@@ -16,6 +15,6 @@ export function NewCaseButton(props) {
|
|
|
16
15
|
}
|
|
17
16
|
};
|
|
18
17
|
return (React.createElement(React.Fragment, null,
|
|
19
|
-
React.createElement(Button, { variant: ButtonVariant.tertiary, onClick: onNew, "data-tracking-id": "
|
|
20
|
-
React.createElement(Trans, null, "
|
|
18
|
+
React.createElement(Button, { variant: ButtonVariant.tertiary, onClick: onNew, "data-tracking-id": "open-new-case" },
|
|
19
|
+
React.createElement(Trans, null, "Open a case"))));
|
|
21
20
|
}
|
|
@@ -37,7 +37,7 @@ const isStatusFilterWithSFDCSupportedValues = ({ case_status = [] }) => {
|
|
|
37
37
|
return statusLength !== 2 || (statusLength === 2 && !case_status.includes(CaseStatus.Closed));
|
|
38
38
|
};
|
|
39
39
|
// SFDC on most fields including case_status only accept one value
|
|
40
|
-
// on
|
|
40
|
+
// on case type field if 'closed' is selected then, we can have 2 filters selected
|
|
41
41
|
// because closed in SFDC passes as a seperate param
|
|
42
42
|
// if closed not selected then only one filter can be selected
|
|
43
43
|
const isStatusFilterWithSFDCSupported = (filterKey, filterValue) => {
|
package/lib/esm/components/case-list/case-list-filters/AccountsBookmarkedGroupFilter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountsBookmarkedGroupFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/AccountsBookmarkedGroupFilter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccountsBookmarkedGroupFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/AccountsBookmarkedGroupFilter.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,YAAY,eAAgB,MAAM,gBAS9C,CAAC;AAEF,UAAU,MAAM;IACZ,uBAAuB,EAAE,OAAO,CAAC;IACjC,wBAAwB,EAAE,OAAO,CAAC;IAClC,yBAAyB,EAAE,OAAO,CAAC;CACtC;AAED,eAAO,MAAM,QAAQ,cAAe,MAAM,eAAe,MAAM,WACiB,CAAC;AAEjF,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,eAkH1D"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { Label,
|
|
1
|
+
import { Label, Tooltip } from '@patternfly/react-core';
|
|
2
2
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
3
|
+
import { MultiSelectDropDownList } from '@rh-support/components';
|
|
3
4
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
|
-
import { getDropdownBtnPlaceholder } from '@rh-support/utils';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import { getDropdownBtnPlaceholder, toOptions } from '@rh-support/utils';
|
|
6
|
+
import groupBy from 'lodash/groupBy';
|
|
7
|
+
import isEmpty from 'lodash/isEmpty';
|
|
8
|
+
import sortBy from 'lodash/sortBy';
|
|
9
|
+
import React, { useContext } from 'react';
|
|
7
10
|
import { Trans, useTranslation } from 'react-i18next';
|
|
8
11
|
import { Link } from 'react-router-dom';
|
|
12
|
+
import { FILTER_SEARCHABLE_MODE_LIMIT } from '../../../enums/caseSearch';
|
|
9
13
|
import { SolrKeys } from '../../../enums/filters';
|
|
10
14
|
import { filterNamesMap } from '../../../utils/constants';
|
|
11
15
|
import { CaseListFilterDispatchContext, CaseListFilterStateContext } from '../CaseListFilterContext';
|
|
@@ -23,22 +27,27 @@ export function AccountsBookmarkedGroupFilter(props) {
|
|
|
23
27
|
const { globalMetadataState: { managedAccounts, bookmarkedGroupAccounts }, } = useContext(GlobalMetadataStateContext);
|
|
24
28
|
const { filterInfo } = useContext(CaseListFilterStateContext);
|
|
25
29
|
const dispatch = useContext(CaseListFilterDispatchContext);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
value:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
const onAccountsFilterChange = (selectedAccounts) => {
|
|
31
|
+
updateFilter(dispatch, {
|
|
32
|
+
filterKey: SolrKeys.accountNumber,
|
|
33
|
+
values: selectedAccounts.map((i) => ({ value: i.value.value, key: i.value.key })),
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
const managedAccountsList = !isEmpty(managedAccounts.data) ? managedAccounts.data : [];
|
|
37
|
+
const getBookmarkDropdownOptions = (accounts) => {
|
|
38
|
+
return accounts.map((account) => ({
|
|
39
|
+
children: React.createElement(React.Fragment, null,
|
|
40
|
+
" ",
|
|
41
|
+
getLabel(account.accountNumber || account.accountNum, account.name)),
|
|
42
|
+
value: getLabel(account.accountNumber || account.accountNum, account.name),
|
|
43
|
+
key: account.accountNumber || account.accountNum,
|
|
44
|
+
isNotSearchable: false,
|
|
45
|
+
isNonActionable: false,
|
|
46
|
+
isNotSelectable: false,
|
|
47
|
+
}));
|
|
48
|
+
};
|
|
49
|
+
const filterValues = canAccessManagedAccounts ? getBookmarkDropdownOptions(managedAccountsList) : [];
|
|
50
|
+
const groupedBookmarks = groupBy(bookmarkedGroupAccounts.data.filter((item) => item.isBookmarkedAndHasGroup), 'bookmarkGroupName');
|
|
42
51
|
const getInfoToolTip = (groupName) => {
|
|
43
52
|
const list = groupedBookmarks[groupName];
|
|
44
53
|
return (React.createElement("ul", { className: "no-list-style pf-u-pl-0" }, list.map((b) => {
|
|
@@ -49,50 +58,39 @@ export function AccountsBookmarkedGroupFilter(props) {
|
|
|
49
58
|
")"));
|
|
50
59
|
})));
|
|
51
60
|
};
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
updateFilter(dispatch, {
|
|
75
|
-
filterKey: SolrKeys.accountNumber,
|
|
76
|
-
values: selected.map((i) => ({ value: i.value, key: i.key })),
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
const onBookmarksClear = () => {
|
|
80
|
-
updateFilter(dispatch, {
|
|
81
|
-
filterKey: SolrKeys.accountNumber,
|
|
82
|
-
values: [],
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
const onBookmarksFilter = (_, value) => {
|
|
86
|
-
if (!value)
|
|
87
|
-
return getBookmarksOptions(dropdownOptions);
|
|
88
|
-
const input = new RegExp(value, 'i');
|
|
89
|
-
const newOptions = dropdownOptions.filter((b) => input.test(b.value));
|
|
90
|
-
return getBookmarksOptions(newOptions);
|
|
91
|
-
};
|
|
61
|
+
const groupAccountsArrObj = Object.keys(groupedBookmarks).map((groupName) => ({
|
|
62
|
+
children: React.createElement(React.Fragment, null, groupName),
|
|
63
|
+
actionItem: (React.createElement(Tooltip, { content: getInfoToolTip(groupName) },
|
|
64
|
+
React.createElement(Label, { color: "cyan", className: "pf-u-ml-auto pf-u-mr-sm", icon: React.createElement(InfoCircleIcon, null) }, groupedBookmarks[groupName].length))),
|
|
65
|
+
value: groupName,
|
|
66
|
+
key: groupedBookmarks[groupName].map((item) => item.accountNumber),
|
|
67
|
+
isNotSearchable: false,
|
|
68
|
+
isNonActionable: false,
|
|
69
|
+
isNotSelectable: false,
|
|
70
|
+
}));
|
|
71
|
+
const groupAccountsArrObjSorted = sortBy(groupAccountsArrObj, (g) => g.value);
|
|
72
|
+
const list = [
|
|
73
|
+
...groupAccountsArrObjSorted,
|
|
74
|
+
...filterValues,
|
|
75
|
+
{
|
|
76
|
+
children: canManageBookmarkAccounts ? appendToMenu((bookmarkedGroupAccounts.data || []).length) : React.createElement(React.Fragment, null),
|
|
77
|
+
isNotSearchable: true,
|
|
78
|
+
isNonActionable: true,
|
|
79
|
+
isNotSelectable: true,
|
|
80
|
+
},
|
|
81
|
+
];
|
|
92
82
|
if (!canReadBookmarkAccounts && !canAccessManagedAccounts) {
|
|
93
83
|
return null;
|
|
94
84
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
85
|
+
const listLength = groupAccountsArrObj.length + filterValues.length;
|
|
86
|
+
const selectedBookmarks = filterInfo[SolrKeys.accountNumber].filter((item) => Array.isArray(item.key));
|
|
87
|
+
const selectedAccounts = filterInfo[SolrKeys.accountNumber].filter((item) => !Array.isArray(item.key));
|
|
88
|
+
return (React.createElement(MultiSelectDropDownList, { searchable: listLength > FILTER_SEARCHABLE_MODE_LIMIT, selectedItems: toOptions(filterInfo[SolrKeys.accountNumber], { labelKey: 'value' }), placeholder: getDropdownBtnPlaceholder(t(canAccessManagedAccounts ? 'Search for an account' : 'Search for a bookmark'), canAccessManagedAccounts ? selectedAccounts : selectedBookmarks, '', listLength, canAccessManagedAccounts ? t('All accounts') : t('All bookmarks')), "data-tracking-id": "accounts-filter", id: "case-list-group-filter", title: canAccessManagedAccounts ? t('Accounts') : t(filterNamesMap[SolrKeys.accountNumber]), label: canAccessManagedAccounts ? t('Accounts') : t(filterNamesMap[SolrKeys.accountNumber]), onChange: onAccountsFilterChange, list: toOptions(list, {
|
|
89
|
+
labelKey: 'value',
|
|
90
|
+
childrenKey: 'children',
|
|
91
|
+
actionItemKey: 'actionItem',
|
|
92
|
+
nonSearchableItemKey: 'isNotSearchable',
|
|
93
|
+
nonActionableItemKey: 'isNonActionable',
|
|
94
|
+
nonSelectableItemKey: 'isNotSelectable',
|
|
95
|
+
}) }));
|
|
98
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseListFilterChips.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/CaseListFilterChips.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseListFilterChips.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/CaseListFilterChips.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAMtD,UAAU,MAAM;IACZ,yBAAyB,EAAE,uBAAuB,EAAE,CAAC;IACrD,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA6HhD"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Button, Chip, ChipGroup } from '@patternfly/react-core';
|
|
2
|
-
import { toNewCaseTypeMapper, toOldCaseTypeSwitcher } from '@rh-support/utils';
|
|
3
2
|
import flatMap from 'lodash/flatMap';
|
|
4
3
|
import remove from 'lodash/remove';
|
|
5
4
|
import React, { useContext } from 'react';
|
|
@@ -20,8 +19,7 @@ export function CaseListFilterChips(props) {
|
|
|
20
19
|
removeFilterItem(dispatch, { filterKey, value });
|
|
21
20
|
};
|
|
22
21
|
const getChipKey = (item) => {
|
|
23
|
-
|
|
24
|
-
return typeof item === 'string' ? newCaseTypeFilterItem : item.key;
|
|
22
|
+
return typeof item === 'string' ? item : item.key;
|
|
25
23
|
};
|
|
26
24
|
const getChipValue = (item) => {
|
|
27
25
|
return typeof item === 'string' ? item : item.value;
|
|
@@ -36,7 +34,6 @@ export function CaseListFilterChips(props) {
|
|
|
36
34
|
return filterChips;
|
|
37
35
|
};
|
|
38
36
|
const getChipGroupForFilter = (filterKey, filterValues, groupName = '') => {
|
|
39
|
-
const caseTypeFilter = filterKey === 'case_type' ? toNewCaseTypeMapper(filterValues) : filterValues;
|
|
40
37
|
if (props.isSolrSearchDown && !visibleFilterChipsWhenSolrDownSfdcUp.includes(filterKey)) {
|
|
41
38
|
return React.createElement(React.Fragment, null);
|
|
42
39
|
}
|
|
@@ -44,7 +41,7 @@ export function CaseListFilterChips(props) {
|
|
|
44
41
|
return (React.createElement("div", { className: "filter-chip", key: `${filterKey}-bookmarks-${groupName}` },
|
|
45
42
|
React.createElement("span", { className: "filter-chip__heading" },
|
|
46
43
|
React.createElement(Trans, null, groupName || filterNamesMap[filterKey] || filterKey)),
|
|
47
|
-
React.createElement(ChipGroup, { numChips: 7, className: "pf-c-chip-group__simple" }, renderFilterValueChips(filterKey,
|
|
44
|
+
React.createElement(ChipGroup, { numChips: 7, className: "pf-c-chip-group__simple" }, renderFilterValueChips(filterKey, filterValues, groupName))));
|
|
48
45
|
}
|
|
49
46
|
};
|
|
50
47
|
const renderAccountFilterChip = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/ProductsFilter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductsFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/ProductsFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAe,MAAM,0BAA0B,CAAC;AAUvE,UAAU,MAAM;IACZ,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,eA0E3C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core';
|
|
2
|
+
import { MultiSelectDropDownList } from '@rh-support/components';
|
|
3
|
+
import { getDropdownBtnPlaceholder, toOptions } from '@rh-support/utils';
|
|
4
4
|
import React, { useContext, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { SolrKeys, SolrPivotKeys } from '../../../enums/filters';
|
|
@@ -11,17 +11,16 @@ export function ProductsFilter(props) {
|
|
|
11
11
|
const { t } = useTranslation();
|
|
12
12
|
const dispatch = useContext(CaseListFilterDispatchContext);
|
|
13
13
|
const { filterInfo } = useContext(CaseListFilterStateContext);
|
|
14
|
-
const { allProducts, filterValues, isSolrSearchDown } = props;
|
|
15
14
|
const [isOpen, setIsOpen] = useState(false);
|
|
16
15
|
const toggleIsOpen = (isExpanded) => setIsOpen(isExpanded);
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
16
|
+
const onFilterChangeMultipleSelect = (selectedProducts) => {
|
|
17
|
+
selectedProducts = selectedProducts.map((selectedProduct) => ({
|
|
18
|
+
field: SolrKeys.product,
|
|
19
|
+
value: selectedProduct.label,
|
|
20
|
+
[SolrKeys.version]: [],
|
|
21
|
+
}));
|
|
22
|
+
updateFilter(dispatch, { filterKey: SolrPivotKeys.product_version, values: selectedProducts });
|
|
23
|
+
};
|
|
25
24
|
const onFilterChangeSingleSelect = (event, selectedProduct) => {
|
|
26
25
|
updateFilter(dispatch, {
|
|
27
26
|
filterKey: SolrPivotKeys.product_version,
|
|
@@ -34,36 +33,12 @@ export function ProductsFilter(props) {
|
|
|
34
33
|
// we get filter values from hydra metadata api
|
|
35
34
|
const singleSelectSolrIsDown = () => {
|
|
36
35
|
var _a, _b;
|
|
37
|
-
return (React.createElement(Select, { variant: SelectVariant.single, "aria-label":
|
|
38
|
-
};
|
|
39
|
-
const onSelect = (e, selection) => {
|
|
40
|
-
let newSelectedProducts = [];
|
|
41
|
-
if (selectedProducts === null || selectedProducts === void 0 ? void 0 : selectedProducts.some((product) => selection.value === product.value)) {
|
|
42
|
-
newSelectedProducts = selectedProducts.filter((product) => selection.value !== product.value);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
newSelectedProducts = [
|
|
46
|
-
...selectedProducts,
|
|
47
|
-
{ field: SolrKeys.product, value: selection.value, [SolrKeys.version]: [] },
|
|
48
|
-
];
|
|
49
|
-
}
|
|
50
|
-
updateFilter(dispatch, { filterKey: SolrPivotKeys.product_version, values: newSelectedProducts });
|
|
51
|
-
};
|
|
52
|
-
const getProductSelectOptions = (options) => {
|
|
53
|
-
return options.map((p, id) => (React.createElement(SelectOption, { key: id, value: p },
|
|
54
|
-
React.createElement("span", null,
|
|
55
|
-
React.createElement(Checkbox, { id: "product-option-check", checked: selectedProducts === null || selectedProducts === void 0 ? void 0 : selectedProducts.some((product) => p.value === product.value) })),
|
|
56
|
-
React.createElement("span", null, p.value))));
|
|
57
|
-
};
|
|
58
|
-
const onFilter = (_, value) => {
|
|
59
|
-
if (!value)
|
|
60
|
-
return getProductSelectOptions(productOptions);
|
|
61
|
-
const input = new RegExp(value, 'i');
|
|
62
|
-
const newOptions = productOptions.filter((product) => input.test(product.value));
|
|
63
|
-
return getProductSelectOptions(newOptions);
|
|
36
|
+
return (React.createElement(Select, { variant: SelectVariant.single, "aria-label": "Select Input", onToggle: toggleIsOpen, onSelect: onFilterChangeSingleSelect, selections: (_b = (_a = filterInfo[SolrPivotKeys.product_version]) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.value, isOpen: isOpen, "aria-labelledby": titleId, placeholderText: t('Select a product'), "data-tracking-id": "products-filter" }, props.allProducts.map((product) => (React.createElement(SelectOption, { key: product, value: product })))));
|
|
64
37
|
};
|
|
65
|
-
const
|
|
38
|
+
const multiSelect = () => (React.createElement(MultiSelectDropDownList, { placeholder: getDropdownBtnPlaceholder(t('Select a product'), filterInfo[SolrPivotKeys.product_version].map((i) => i.value), '', props.filterValues.length, t('All selected')), "data-tracking-id": "products-filter", id: "case-list-products-filter", title: t(filterNamesMap[SolrKeys.product]), onChange: onFilterChangeMultipleSelect, selectedItems: toOptions(filterInfo[SolrPivotKeys.product_version], { labelKey: 'value' }), list: toOptions(props.filterValues, {
|
|
39
|
+
labelKey: 'value',
|
|
40
|
+
}), searchable: true }));
|
|
66
41
|
return (React.createElement("div", { className: "pf-c-select" },
|
|
67
|
-
React.createElement("label", {
|
|
68
|
-
isSolrSearchDown ? singleSelectSolrIsDown() :
|
|
42
|
+
React.createElement("label", { id: titleId }, t(filterNamesMap[SolrKeys.product])),
|
|
43
|
+
props.isSolrSearchDown ? singleSelectSolrIsDown() : multiSelect()));
|
|
69
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/TypeFilter.tsx"],"names":[],"mappings":"AAUA,UAAU,MAAM;IACZ,YAAY,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TypeFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/TypeFilter.tsx"],"names":[],"mappings":"AAUA,UAAU,MAAM;IACZ,YAAY,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eAkDvC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core';
|
|
2
|
-
import { getDropdownBtnPlaceholder
|
|
2
|
+
import { getDropdownBtnPlaceholder } from '@rh-support/utils';
|
|
3
3
|
import React, { useContext, useState } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { SolrKeys } from '../../../enums/filters';
|
|
@@ -13,21 +13,16 @@ export function TypeFilter(props) {
|
|
|
13
13
|
const [isOpen, setIsOpen] = useState(false);
|
|
14
14
|
const toggleIsOpen = (isExpanded) => setIsOpen(isExpanded);
|
|
15
15
|
const onFilterChangeMultipleSelect = (event, selectedTypes) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
? filterInfo[SolrKeys.type].filter((item) => item !== convertedSelectedType)
|
|
20
|
-
: [...filterInfo[SolrKeys.type], convertedSelectedType];
|
|
16
|
+
const newState = filterInfo[SolrKeys.type].includes(selectedTypes)
|
|
17
|
+
? filterInfo[SolrKeys.type].filter((item) => item !== selectedTypes)
|
|
18
|
+
: [...filterInfo[SolrKeys.type], selectedTypes];
|
|
21
19
|
updateFilter(dispatch, {
|
|
22
20
|
filterKey: SolrKeys.type,
|
|
23
21
|
values: newState,
|
|
24
22
|
});
|
|
25
23
|
};
|
|
26
24
|
const titleId = 'case-list-type-filter';
|
|
27
|
-
// To switch from old case type to new support type
|
|
28
|
-
const newCaseTypesArray = toNewCaseTypeMapper(props.allCaseTypes).sort();
|
|
29
|
-
const toNewCaseTypesFilter = toNewCaseTypeMapper(filterInfo[SolrKeys.type]);
|
|
30
25
|
return (React.createElement("div", { className: "pf-c-select" },
|
|
31
26
|
React.createElement("label", { htmlFor: titleId }, t(filterNamesMap[SolrKeys.type])),
|
|
32
|
-
React.createElement(Select, { id: titleId, variant: SelectVariant.checkbox, "aria-label": t('Select a
|
|
27
|
+
React.createElement(Select, { id: titleId, variant: SelectVariant.checkbox, "aria-label": t('Select a case type'), onToggle: toggleIsOpen, onSelect: onFilterChangeMultipleSelect, selections: filterInfo[SolrKeys.type], isOpen: isOpen, placeholderText: getDropdownBtnPlaceholder(t('Select a case type'), filterInfo[SolrKeys.type], ' ', props.allCaseTypes.length, t('All selected')), isCheckboxSelectionBadgeHidden: true, "aria-labelledby": titleId, "data-tracking-id": "type-filter", hasPlaceholderStyle: true }, props.allCaseTypes.map((filterValue) => (React.createElement(SelectOption, { key: filterValue, value: filterValue }))))));
|
|
33
28
|
}
|
|
@@ -2,7 +2,7 @@ import { Bullseye, Button, EmptyState, EmptyStateBody, EmptyStateIcon, EmptyStat
|
|
|
2
2
|
import SearchIcon from '@patternfly/react-icons/dist/js/icons/search-icon';
|
|
3
3
|
import { PFTable, Table, TableColumnSelector, TablePagination, } from '@rh-support/components';
|
|
4
4
|
import { GlobalMetadataDispatchContext, GlobalMetadataStateContext, updateUserPreferences, useGlobalStateContext, UserPreferencesKeys, } from '@rh-support/react-context';
|
|
5
|
-
import { formatDate, scrollIntoView
|
|
5
|
+
import { formatDate, scrollIntoView } from '@rh-support/utils';
|
|
6
6
|
import find from 'lodash/find';
|
|
7
7
|
import flatMap from 'lodash/flatMap';
|
|
8
8
|
import get from 'lodash/get';
|
|
@@ -147,7 +147,7 @@ export function CaseListTable(props) {
|
|
|
147
147
|
{
|
|
148
148
|
id: CaseListColumnIds.alternateCaseId,
|
|
149
149
|
cellWidth: 10,
|
|
150
|
-
title: t('
|
|
150
|
+
title: t('Alternate case ID'),
|
|
151
151
|
sortable: true,
|
|
152
152
|
accessor: (data) => data.case_alternate_id,
|
|
153
153
|
show: isColumnVisible(CaseListColumnIds.alternateCaseId),
|
|
@@ -155,9 +155,9 @@ export function CaseListTable(props) {
|
|
|
155
155
|
{
|
|
156
156
|
id: CaseListColumnIds.type,
|
|
157
157
|
cellWidth: 10,
|
|
158
|
-
title: t('
|
|
158
|
+
title: t('Case type'),
|
|
159
159
|
sortable: true,
|
|
160
|
-
accessor: (data) =>
|
|
160
|
+
accessor: (data) => data.case_type,
|
|
161
161
|
show: isColumnVisible(CaseListColumnIds.type),
|
|
162
162
|
},
|
|
163
163
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportCaseListCSV.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/ExportCaseListCSV.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAgD7D,UAAU,MAAM;IACZ,uBAAuB,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC1D,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAID,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ExportCaseListCSV.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/ExportCaseListCSV.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAgD7D,UAAU,MAAM;IACZ,uBAAuB,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC1D,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAID,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,eAuF9C"}
|
|
@@ -11,7 +11,7 @@ import { publicApi } from '@cee-eng/hydrajs';
|
|
|
11
11
|
import { Button } from '@patternfly/react-core';
|
|
12
12
|
import { ToastNotification, useFetch } from '@rh-support/components';
|
|
13
13
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
14
|
-
import { downloadCSV, formatDateTime
|
|
14
|
+
import { downloadCSV, formatDateTime } from '@rh-support/utils';
|
|
15
15
|
import React, { useContext, useState } from 'react';
|
|
16
16
|
import { Trans, useTranslation } from 'react-i18next';
|
|
17
17
|
import { SFDCKeys, SolrKeys } from '../../../enums/filters';
|
|
@@ -33,8 +33,8 @@ const csvHeadersSolr = [
|
|
|
33
33
|
{ label: 'Modified by', key: SolrKeys.modifiedBy },
|
|
34
34
|
{ label: 'Modified date', key: SolrKeys.modifiedDate, transform: formatDateTime },
|
|
35
35
|
{ label: 'Uri', key: SolrKeys.uri },
|
|
36
|
-
{ label: '
|
|
37
|
-
{ label: '
|
|
36
|
+
{ label: 'Alternate case ID', key: SolrKeys.alternateId },
|
|
37
|
+
{ label: 'Type', key: SolrKeys.type },
|
|
38
38
|
{ label: 'Closed date', key: SolrKeys.caseClosedDate, transform: formatDateTime },
|
|
39
39
|
];
|
|
40
40
|
const csvHeadersSFDC = [
|
|
@@ -52,8 +52,8 @@ const csvHeadersSFDC = [
|
|
|
52
52
|
{ label: 'Modified by', key: SFDCKeys.lastPublicUpdateDateBy },
|
|
53
53
|
{ label: 'Modified date', key: SFDCKeys.lastPublicUpdateDate, transform: formatDateTime },
|
|
54
54
|
{ label: 'Uri', key: SFDCKeys.uri },
|
|
55
|
-
{ label: '
|
|
56
|
-
{ label: '
|
|
55
|
+
{ label: 'Alternate case ID', key: SFDCKeys.alternateId },
|
|
56
|
+
{ label: 'Case type', key: SFDCKeys.caseType },
|
|
57
57
|
{ label: 'Closed date', key: SFDCKeys.caseClosedDate, transform: formatDateTime },
|
|
58
58
|
];
|
|
59
59
|
const groupHeaderSOLR = { label: 'Group', key: SolrKeys.groupName };
|
|
@@ -73,7 +73,6 @@ export function ExportCaseListCSV(props) {
|
|
|
73
73
|
const filterState = useContext(CaseListFilterStateContext);
|
|
74
74
|
const { globalMetadataState: { loggedInUserRights, loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
75
75
|
const isOrgAdmin = loggedInUserRights.data.isOrgAdmin();
|
|
76
|
-
// CSV For Secure Support Users
|
|
77
76
|
const onExportCSVClickSecureSupport = () => __awaiter(this, void 0, void 0, function* () {
|
|
78
77
|
try {
|
|
79
78
|
const sfdcFilter = createQueryForCSVDownload(filterState, loggedInUserRights.data, loggedInUsersAccount.data);
|
|
@@ -81,9 +80,7 @@ export function ExportCaseListCSV(props) {
|
|
|
81
80
|
const sfdcResponse = yield publicApi.caseList.getCaseListFromSFDC(sfdcFilter, false, true);
|
|
82
81
|
setIsFetchingSFDC(false);
|
|
83
82
|
const headers = isOrgAdmin ? [...csvHeadersSFDC, groupHeaderSFDC] : csvHeadersSFDC;
|
|
84
|
-
|
|
85
|
-
const updatedCsvData = sfdcResponse.cases.map((row) => (Object.assign(Object.assign({}, row), { caseType: toNewCaseTypeSwitcher(row.caseType) })));
|
|
86
|
-
downloadCSV(updatedCsvData, headers, 'CaseList.csv');
|
|
83
|
+
downloadCSV(sfdcResponse.cases, headers, 'CaseList.csv');
|
|
87
84
|
}
|
|
88
85
|
catch (e) {
|
|
89
86
|
setIsFetchingSFDC(false);
|
|
@@ -91,14 +88,11 @@ export function ExportCaseListCSV(props) {
|
|
|
91
88
|
}
|
|
92
89
|
});
|
|
93
90
|
const partnerSearch = loggedInUserRights.data.hasManagedAccounts();
|
|
94
|
-
// CSV For Normal Users
|
|
95
91
|
const onExportCSVClick = () => __awaiter(this, void 0, void 0, function* () {
|
|
96
92
|
try {
|
|
97
93
|
const res = yield request(createQueryForCSVDownload(filterState, loggedInUserRights.data, loggedInUsersAccount.data), partnerSearch, null, loggedInUsersAccount.data.secureSupport);
|
|
98
94
|
const headers = isOrgAdmin ? [...csvHeadersSolr, groupHeaderSOLR] : csvHeadersSolr;
|
|
99
|
-
|
|
100
|
-
const updatedCsvData = res.response.docs.map((row) => (Object.assign(Object.assign({}, row), { case_type: toNewCaseTypeSwitcher(row.case_type) })));
|
|
101
|
-
downloadCSV(updatedCsvData, headers, 'CaseList.csv');
|
|
95
|
+
downloadCSV(res.response.docs, headers, 'CaseList.csv');
|
|
102
96
|
}
|
|
103
97
|
catch (e) {
|
|
104
98
|
ToastNotification.addDangerMessage(t('Could not export CSV'));
|
|
@@ -210,7 +210,7 @@ export function AdvanceSearch(props) {
|
|
|
210
210
|
React.createElement("div", { className: "pf-c-select pf-m-expanded", ref: dropdownWrapperRef },
|
|
211
211
|
React.createElement("div", { className: "pf-c-select__toggle pf-m-typeahead" },
|
|
212
212
|
React.createElement("div", { className: "pf-c-select__toggle-wrapper" },
|
|
213
|
-
React.createElement("input", { value: inputString, onChange: onQueryStringChange, onFocus: onInputFocus, ref: searchInputRef, onKeyDown: onKeyDown, placeholder: t('i18nEnterSolrQuery', 'Enter SOLR query, for example: severity:"1 (Urgent)" and status:"Waiting on Customer"'), className: `pf-c-form-control pf-c-select__toggle-typeahead ${inputString && isParsingSuccessful ? 'pf-m-success' : ''}`, type: "text", "aria-invalid": isQueryInValid ? true : false, autoComplete: "off", id: "advance-search-typeahead", "aria-label": t('Enter search query'), "aria-describedby": "advance-query-error-helper" })),
|
|
213
|
+
React.createElement("input", { value: inputString, onChange: onQueryStringChange, onFocus: onInputFocus, ref: searchInputRef, onKeyDown: onKeyDown, placeholder: t('i18nEnterSolrQuery', 'Enter SOLR query, for example: severity:"1 (Urgent)" and -status:"Waiting on Customer"'), className: `pf-c-form-control pf-c-select__toggle-typeahead ${inputString && isParsingSuccessful ? 'pf-m-success' : ''}`, type: "text", "aria-invalid": isQueryInValid ? true : false, autoComplete: "off", id: "advance-search-typeahead", "aria-label": t('Enter search query'), "aria-describedby": "advance-query-error-helper" })),
|
|
214
214
|
inputString && (React.createElement(Button, { onClick: onClear, className: "pf-c-button pf-m-plain pf-c-select__toggle-clear", variant: "plain", "data-tracking-id": "clear-search", "aria-label": t('Clear this search') },
|
|
215
215
|
React.createElement(TimesCircleIcon, null)))),
|
|
216
216
|
isAutoCompleteListVisible && (React.createElement("ul", { className: "pf-c-select__menu", "aria-labelledby": "advance-search-typeahead-label", role: "listbox" }, autoCompleteList.map((item, index) => (React.createElement("li", { key: index, role: "presentation", className: `pf-c-select__menu-wrapper ${selectedItemIndex === index ? 'pf-m-focus' : ''}` },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseSearch.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/CaseSearch.tsx"],"names":[],"mappings":"AAsBA,UAAU,MAAM;IACZ,sBAAsB,
|
|
1
|
+
{"version":3,"file":"CaseSearch.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/CaseSearch.tsx"],"names":[],"mappings":"AAsBA,UAAU,MAAM;IACZ,sBAAsB,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eAoLvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAdvanceSearchParser.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/useAdvanceSearchParser.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAdvanceSearchParser.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/useAdvanceSearchParser.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,MAAM,EAAE;;CAAA;yBASzB,MAAM;6BAIF,MAAM;;EA2LzC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
2
|
-
import { toNewCaseTypeMapper } from '@rh-support/utils';
|
|
3
2
|
import PEG from 'pegjs';
|
|
4
3
|
import { useEffect, useRef } from 'react';
|
|
5
4
|
import { SolrKeys } from '../../../enums/filters';
|
|
@@ -107,7 +106,7 @@ export default function useAdvanceSearchParser({ onInit }) {
|
|
|
107
106
|
/ "ownerName" {return "${SolrKeys.contactName}";}
|
|
108
107
|
/ "caseNumber" {return "${SolrKeys.caseNumber}";}
|
|
109
108
|
/ "openshiftClusterId" {return "${SolrKeys.openshiftClusterId}";}
|
|
110
|
-
/ "
|
|
109
|
+
/ "alternateCaseId" {return "${SolrKeys.alternateId}";}
|
|
111
110
|
|
|
112
111
|
cepFieldName = "CEP" {return "${SolrKeys.cep}";}
|
|
113
112
|
ftsFieldName = "FTS" {return "${SolrKeys.fts}";}
|
|
@@ -141,11 +140,9 @@ export default function useAdvanceSearchParser({ onInit }) {
|
|
|
141
140
|
/ groupMultipleValue / _
|
|
142
141
|
groupMultipleValue = "(" val:(groupValue)+ ")" { return joinByOr(val); }
|
|
143
142
|
|
|
144
|
-
caseTypeFieldName = "
|
|
143
|
+
caseTypeFieldName = "caseType" {return "${SolrKeys.type}";}
|
|
145
144
|
caseTypeValue = string
|
|
146
|
-
/ ${(
|
|
147
|
-
.map((caseType) => `'"${caseType}"' { return '"${caseType}"'; }`)
|
|
148
|
-
.join(' / ')}
|
|
145
|
+
/ ${(allCaseTypes.data || []).map((caseType) => `'"${caseType}"' { return '"${caseType}"'; }`).join(' / ')}
|
|
149
146
|
/ caseTypeMultipleValue / _
|
|
150
147
|
caseTypeMultipleValue = "(" val:(caseTypeValue)+ ")" { return joinByOr(val); }
|
|
151
148
|
|
package/lib/esm/css/caseList.css
CHANGED
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
th.pf-c-table__sort[data-label='Created by'],
|
|
530
530
|
th.pf-m-width-15[data-label='Product and version'],
|
|
531
531
|
th.pf-c-table__sort[data-label='Account number'],
|
|
532
|
-
th.pf-c-table__sort[data-label='
|
|
532
|
+
th.pf-c-table__sort[data-label='Alternate case ID'] {
|
|
533
533
|
min-width: 220px;
|
|
534
534
|
}
|
|
535
535
|
|
package/lib/esm/enums/case.js
CHANGED
|
@@ -69,7 +69,7 @@ export const caseTableColumSortNamesMap = {
|
|
|
69
69
|
[CaseListColumnIds.modified]: 'Last modified date',
|
|
70
70
|
[CaseListColumnIds.accountNumber]: 'Account number',
|
|
71
71
|
[CaseListColumnIds.group]: 'Groups',
|
|
72
|
-
[CaseListColumnIds.alternateCaseId]: '
|
|
73
|
-
[CaseListColumnIds.type]: '
|
|
72
|
+
[CaseListColumnIds.alternateCaseId]: 'Alternate case Id',
|
|
73
|
+
[CaseListColumnIds.type]: 'Case type',
|
|
74
74
|
[CaseListColumnIds.caseClosedDate]: 'Close date',
|
|
75
75
|
};
|
|
@@ -16,6 +16,6 @@ export const fieldNameToSolrFieldMapping = {
|
|
|
16
16
|
[SolrKeys.version]: 'productVersion',
|
|
17
17
|
[SolrKeys.caseContactSSO]: 'ownedByMe',
|
|
18
18
|
[SolrKeys.createdBySsoUsername]: 'createdBySsoUsername',
|
|
19
|
-
[SolrKeys.type]: '
|
|
19
|
+
[SolrKeys.type]: 'caseType',
|
|
20
20
|
};
|
|
21
|
-
export const advanceSearchFieldNameToSolrFieldMapping = Object.assign(Object.assign({}, fieldNameToSolrFieldMapping), { [SolrKeys.fts]: 'FTS', [SolrKeys.cep]: 'CEP', [SolrKeys.accountName]: 'accountName', [SolrKeys.caseNumber]: 'caseNumber', [SolrKeys.caseOwner]: 'ownerSSO', [SolrKeys.modifiedBy]: 'lastModifiedByName', [SolrKeys.createdBySsoUsername]: 'createdBySSO', [SolrKeys.createdBy]: 'createdByName', [SolrKeys.contactName]: 'contactName', [SolrKeys.caseContactSSO]: 'contactSSO', [SolrKeys.modifiedDate]: 'lastModifiedDate', [SolrKeys.createdDate]: 'createdDate', [SolrKeys.description]: 'description', [SolrKeys.caseSummary]: 'summary', [SolrKeys.alternateId]: '
|
|
21
|
+
export const advanceSearchFieldNameToSolrFieldMapping = Object.assign(Object.assign({}, fieldNameToSolrFieldMapping), { [SolrKeys.fts]: 'FTS', [SolrKeys.cep]: 'CEP', [SolrKeys.accountName]: 'accountName', [SolrKeys.caseNumber]: 'caseNumber', [SolrKeys.caseOwner]: 'ownerSSO', [SolrKeys.modifiedBy]: 'lastModifiedByName', [SolrKeys.createdBySsoUsername]: 'createdBySSO', [SolrKeys.createdBy]: 'createdByName', [SolrKeys.contactName]: 'contactName', [SolrKeys.caseContactSSO]: 'contactSSO', [SolrKeys.modifiedDate]: 'lastModifiedDate', [SolrKeys.createdDate]: 'createdDate', [SolrKeys.description]: 'description', [SolrKeys.caseSummary]: 'summary', [SolrKeys.alternateId]: 'alternateId', [SolrKeys.caseClosedDate]: 'closedDate' });
|
|
@@ -98,7 +98,7 @@ export declare enum SFDCKeys {
|
|
|
98
98
|
groupNumber = "groupNumber",
|
|
99
99
|
groupName = "groupName",
|
|
100
100
|
alternateId = "alternateId",
|
|
101
|
-
caseType = "
|
|
101
|
+
caseType = "caseType",
|
|
102
102
|
caseClosedDate = "lastClosedAt"
|
|
103
103
|
}
|
|
104
104
|
export declare const sfdcFieldToSolrMap: {
|
|
@@ -121,7 +121,7 @@ export declare const sfdcFieldToSolrMap: {
|
|
|
121
121
|
groupNumber: SolrKeys;
|
|
122
122
|
groupName: SolrKeys;
|
|
123
123
|
alternateId: SolrKeys;
|
|
124
|
-
|
|
124
|
+
caseType: SolrKeys;
|
|
125
125
|
lastClosedAt: SolrKeys;
|
|
126
126
|
};
|
|
127
127
|
export declare const AdditionalFilterLabels: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/enums/filters.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAChB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;CACpB;AAED,oBAAY,QAAQ;IAChB,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;IAC5B,OAAO,iBAAiB;IACxB,MAAM,gBAAgB;IACtB,aAAa,uBAAuB;IACpC,KAAK,sBAAsB;IAC3B,SAAS,oBAAoB;IAC7B,QAAQ,kBAAkB;IAC1B,SAAS,4BAA4B;IACrC,SAAS,eAAe;IACxB,WAAW,qBAAqB;IAChC,cAAc,8BAA8B;IAC5C,UAAU,6BAA6B;IACvC,OAAO,iBAAiB;IACxB,SAAS,uBAAuB;IAChC,oBAAoB,gCAAgC;IACpD,WAAW,qBAAqB;IAChC,UAAU,4BAA4B;IACtC,YAAY,0BAA0B;IACtC,oBAAoB,iCAAiC;IACrD,sBAAsB,+BAA+B;IACrD,WAAW,qBAAqB;IAChC,GAAG,QAAQ;IACX,GAAG,cAAc;IACjB,IAAI,cAAc;IAClB,GAAG,gBAAgB;IACnB,WAAW,sBAAsB;IACjC,WAAW,sBAAsB;IACjC,cAAc,oBAAoB;IAClC,kBAAkB,8BAA8B;CACnD;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B,CAAC;AAGF,oBAAY,aAAa;IACrB,eAAe,8BAA8B;CAChD;AAED,eAAO,MAAM,iBAAiB,QAA4C,CAAC;AAC3E,oBAAY,QAAQ;IAChB,UAAU,eAAe;IACzB,WAAW,YAAY;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,aAAa,qBAAqB;IAClC,QAAQ,aAAa;IACrB,SAAS,YAAY;IACrB,WAAW,gBAAgB;IAC3B,SAAS,mBAAmB;IAC5B,UAAU,uBAAuB;IACjC,OAAO,YAAY;IACnB,SAAS,gBAAgB;IACzB,oBAAoB,gCAAgC;IACpD,WAAW,gBAAgB;IAC3B,UAAU,qBAAqB;IAC/B,YAAY,qBAAqB;IACjC,oBAAoB,qBAAqB;IACzC,sBAAsB,qBAAqB;IAC3C,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,QAAQ,
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/enums/filters.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAChB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;CACpB;AAED,oBAAY,QAAQ;IAChB,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;IAC5B,OAAO,iBAAiB;IACxB,MAAM,gBAAgB;IACtB,aAAa,uBAAuB;IACpC,KAAK,sBAAsB;IAC3B,SAAS,oBAAoB;IAC7B,QAAQ,kBAAkB;IAC1B,SAAS,4BAA4B;IACrC,SAAS,eAAe;IACxB,WAAW,qBAAqB;IAChC,cAAc,8BAA8B;IAC5C,UAAU,6BAA6B;IACvC,OAAO,iBAAiB;IACxB,SAAS,uBAAuB;IAChC,oBAAoB,gCAAgC;IACpD,WAAW,qBAAqB;IAChC,UAAU,4BAA4B;IACtC,YAAY,0BAA0B;IACtC,oBAAoB,iCAAiC;IACrD,sBAAsB,+BAA+B;IACrD,WAAW,qBAAqB;IAChC,GAAG,QAAQ;IACX,GAAG,cAAc;IACjB,IAAI,cAAc;IAClB,GAAG,gBAAgB;IACnB,WAAW,sBAAsB;IACjC,WAAW,sBAAsB;IACjC,cAAc,oBAAoB;IAClC,kBAAkB,8BAA8B;CACnD;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B,CAAC;AAGF,oBAAY,aAAa;IACrB,eAAe,8BAA8B;CAChD;AAED,eAAO,MAAM,iBAAiB,QAA4C,CAAC;AAC3E,oBAAY,QAAQ;IAChB,UAAU,eAAe;IACzB,WAAW,YAAY;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,aAAa,qBAAqB;IAClC,QAAQ,aAAa;IACrB,SAAS,YAAY;IACrB,WAAW,gBAAgB;IAC3B,SAAS,mBAAmB;IAC5B,UAAU,uBAAuB;IACjC,OAAO,YAAY;IACnB,SAAS,gBAAgB;IACzB,oBAAoB,gCAAgC;IACpD,WAAW,gBAAgB;IAC3B,UAAU,qBAAqB;IAC/B,YAAY,qBAAqB;IACjC,oBAAoB,qBAAqB;IACzC,sBAAsB,qBAAqB;IAC3C,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,cAAc,iBAAiB;CAClC;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;CAsB9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;CAElC,CAAC"}
|
package/lib/esm/enums/filters.js
CHANGED
|
@@ -65,9 +65,9 @@ export const advancedSearchMap = {
|
|
|
65
65
|
case_description: 'description',
|
|
66
66
|
uri: 'uri',
|
|
67
67
|
case_24_7: 'FTS',
|
|
68
|
-
case_type: '
|
|
68
|
+
case_type: 'caseType',
|
|
69
69
|
case_is_cep: 'CEP',
|
|
70
|
-
case_alternate_id: '
|
|
70
|
+
case_alternate_id: 'alternateCaseId',
|
|
71
71
|
case_closedDate: 'closedDate',
|
|
72
72
|
case_openshift_cluster_id: 'openshiftClusterId',
|
|
73
73
|
case_account_name: 'accountName',
|
|
@@ -103,7 +103,7 @@ export var SFDCKeys;
|
|
|
103
103
|
SFDCKeys["groupNumber"] = "groupNumber";
|
|
104
104
|
SFDCKeys["groupName"] = "groupName";
|
|
105
105
|
SFDCKeys["alternateId"] = "alternateId";
|
|
106
|
-
SFDCKeys["caseType"] = "
|
|
106
|
+
SFDCKeys["caseType"] = "caseType";
|
|
107
107
|
SFDCKeys["caseClosedDate"] = "lastClosedAt";
|
|
108
108
|
})(SFDCKeys || (SFDCKeys = {}));
|
|
109
109
|
export const sfdcFieldToSolrMap = {
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
69
69
|
'Search for an bookmark': 'Suche nach einem Lesezeichen',
|
|
70
70
|
Username: 'Benutzername',
|
|
71
71
|
Basic: 'Grundlegend',
|
|
72
|
-
i18nEnterSolrQuery: 'Geben Sie die SOLR-Abfrage ein, zum Beispiel: severity: "1 (Dringend)" und status: "Wartet auf den Kunden"',
|
|
72
|
+
i18nEnterSolrQuery: 'Geben Sie die SOLR-Abfrage ein, zum Beispiel: severity: "1 (Dringend)" und -status: "Wartet auf den Kunden"',
|
|
73
73
|
Export: 'Exportieren',
|
|
74
74
|
'Close case': 'Fall schließen',
|
|
75
75
|
Collapse: 'Reduzieren',
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
Advanced: 'Avancé',
|
|
60
60
|
Username: "Nom d'utilisateur",
|
|
61
61
|
Basic: 'De base',
|
|
62
|
-
i18nEnterSolrQuery: 'Entrez la requête SOLR, par exemple : sévérité : ""1 (Urgent)"" et statut : ""Attente Client""',
|
|
62
|
+
i18nEnterSolrQuery: 'Entrez la requête SOLR, par exemple : sévérité : ""1 (Urgent)"" et -statut : ""Attente Client""',
|
|
63
63
|
Export: 'Exportation',
|
|
64
64
|
'Close case': 'Clôturer le dossier',
|
|
65
65
|
Collapse: 'Effondrement',
|
|
@@ -60,7 +60,7 @@ export default {
|
|
|
60
60
|
Advanced: '詳細検索',
|
|
61
61
|
Username: 'ユーザー名',
|
|
62
62
|
Basic: '基本検索',
|
|
63
|
-
i18nEnterSolrQuery: 'SOLR クエリーを入力します (例: severity:""1(Urgent)"" と status:""Waiting on Customer""',
|
|
63
|
+
i18nEnterSolrQuery: 'SOLR クエリーを入力します (例: severity:""1(Urgent)"" と -status:""Waiting on Customer""',
|
|
64
64
|
Export: 'エクスポート',
|
|
65
65
|
'Close case': 'ケースのクローズ',
|
|
66
66
|
Collapse: '折りたたむ',
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
Advanced: '고급 검색',
|
|
60
60
|
Username: '사용자 이름',
|
|
61
61
|
Basic: '기본 검색',
|
|
62
|
-
i18nEnterSolrQuery: 'SOLR 쿼리를 입력합니다 (예: severity: ""1 (Urgent)"" 및 status:""Waiting on Customer"")',
|
|
62
|
+
i18nEnterSolrQuery: 'SOLR 쿼리를 입력합니다 (예: severity: ""1 (Urgent)"" 및 -status:""Waiting on Customer"")',
|
|
63
63
|
Export: '내보내기',
|
|
64
64
|
'Close case': '케이스 닫기',
|
|
65
65
|
Collapse: '축소',
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
Advanced: 'Avançado',
|
|
60
60
|
Username: 'Nome de usuário',
|
|
61
61
|
Basic: 'Básico',
|
|
62
|
-
i18nEnterSolrQuery: 'Digite a consulta SOLR, por exemplo: severity:""1 (Urgent)"" and status:""Waiting on Customer""',
|
|
62
|
+
i18nEnterSolrQuery: 'Digite a consulta SOLR, por exemplo: severity:""1 (Urgent)"" and -status:""Waiting on Customer""',
|
|
63
63
|
Export: 'Exportar',
|
|
64
64
|
'Close case': 'Fechar caso',
|
|
65
65
|
Collapse: 'Recolher',
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
Advanced: 'Расширенный',
|
|
60
60
|
Username: 'Имя пользователя',
|
|
61
61
|
Basic: 'Простой',
|
|
62
|
-
i18nEnterSolrQuery: 'Введите SOLR-запрос, например: severity:""1 (срочный)"" and status:""Ожидание клиента""',
|
|
62
|
+
i18nEnterSolrQuery: 'Введите SOLR-запрос, например: severity:""1 (срочный)"" and -status:""Ожидание клиента""',
|
|
63
63
|
Export: 'Экспорт',
|
|
64
64
|
'Close case': 'Закрыть обращение',
|
|
65
65
|
Collapse: 'Свернуть',
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
61
61
|
Advanced: '高级',
|
|
62
62
|
Username: '用户名',
|
|
63
63
|
Basic: '基本',
|
|
64
|
-
i18nEnterSolrQuery: '输入 SOLR 查询,例如:severity:""1 (Urgent)"" and status:""Waiting on Customer""',
|
|
64
|
+
i18nEnterSolrQuery: '输入 SOLR 查询,例如:severity:""1 (Urgent)"" and -status:""Waiting on Customer""',
|
|
65
65
|
Export: '导出',
|
|
66
66
|
'Close case': '关闭问题单',
|
|
67
67
|
Collapse: '折叠',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseSearchUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseSearchUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"caseSearchUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/caseSearchUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAUxD,OAAO,EACH,oBAAoB,EACpB,WAAW,EAId,MAAM,+CAA+C,CAAC;AAOvD,OAAO,EAEH,mBAAmB,EAEtB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,eAAO,MAAM,6BAA6B,UAAU,CAAC;AACrD,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,iCAAiC,SAAS,CAAC;AACxD,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAElD,iBAAS,8BAA8B,CAAC,WAAW,EAAE,oBAAoB,EAAE,YAAY,EAAE,QAAQ,OA4DhG;AAED,iBAAS,sCAAsC,CAC3C,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,EAChC,WAAW,EAAE,MAAM,EACnB,eAAe,GAAE,OAAe,UAwBnC;AAED,iBAAS,oDAAoD,CAAC,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,UAoDlH;AAkBD,iBAAS,wCAAwC,CAC7C,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,EAChC,OAAO,EAAE,MAAM,EACf,eAAe,QAAK,UA6BvB;AASD,iBAAS,yBAAyB,CAC9B,WAAW,EAAE,oBAAoB,EACjC,kBAAkB,EAAE,QAAQ,EAC5B,oBAAoB,KAAA,EACpB,UAAU,SAAI,EACd,UAAU,SAAO,OAcpB;AAkBD,iBAAS,8BAA8B,CACnC,WAAW,EAAE,oBAAoB,EACjC,YAAY,EAAE,QAAQ,EACtB,mBAAmB,EAAE,OAAO,CAAC,QAAQ,CAAC,GACvC,OAAO,CAAC,eAAe,CAAC,CAuD1B;AAED,iBAAS,6BAA6B,CAAC,QAAQ,GAAE,qBAAqB,EAAO,GAAG,qBAAqB,EAAE,CAEtG;AAcD,iBAAS,6BAA6B,CAAC,WAAW,EAAE,oBAAoB,UAUvE;AAED,iBAAS,6BAA6B,CAClC,QAAQ,EAAE,MAAM,EAChB,mBAAmB,EAAE,oBAAoB,EACzC,QAAQ,CAAC,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,GAAE,mBAA+C,wBAsD9D;AAGD,iBAAS,kCAAkC,CACvC,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,oBAAoB,EACzC,kBAAkB,EAAE,oBAAoB,EACxC,WAAW,GAAE,MAAW,EACxB,IAAI,GAAE,mBAA+C,wBA2DxD;AAuKD,OAAO,EACH,8BAA8B,EAC9B,sCAAsC,EACtC,oDAAoD,EACpD,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,wCAAwC,EACxC,kCAAkC,GACrC,CAAC"}
|
|
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { areAllValidCaseNumbers, buildSolrQuery, isValidCaseNumber, parseSolrQuery, solr
|
|
12
|
+
import { areAllValidCaseNumbers, buildSolrQuery, isValidCaseNumber, parseSolrQuery, solr } from '@rh-support/utils';
|
|
13
13
|
import camelCase from 'lodash/camelCase';
|
|
14
14
|
import flatMap from 'lodash/flatMap';
|
|
15
15
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -84,9 +84,7 @@ function createUserFriendlyQueryFromFilterState(filterInfo, filterQuery, useKeyF
|
|
|
84
84
|
: _filterKey;
|
|
85
85
|
const fieldValue = isKeyValuePair(filterInfo[_filterKey])
|
|
86
86
|
? filterInfo[_filterKey].map((item) => (useKeyForKVPair ? item.key : item.value))
|
|
87
|
-
: _filterKey
|
|
88
|
-
? toNewCaseTypeMapper(filterInfo[_filterKey])
|
|
89
|
-
: filterInfo[_filterKey];
|
|
87
|
+
: filterInfo[_filterKey];
|
|
90
88
|
if (_filterKey !== ProductVersionKey) {
|
|
91
89
|
Array.isArray(fieldValue) && fieldValue.length > 0 && solrQuery.where(fieldLabel).in(flatMap(fieldValue));
|
|
92
90
|
}
|
|
@@ -108,9 +106,7 @@ function createUserFriendlyQueryFromFilterStateAdvancedSearch(filterInfo, filter
|
|
|
108
106
|
: _filterKey;
|
|
109
107
|
const fieldValue = isKeyValuePair(filterInfo[_filterKey])
|
|
110
108
|
? filterInfo[_filterKey].map((item) => (_filterKey === SolrKeys.accountNumber ? item.key : item.value))
|
|
111
|
-
: _filterKey
|
|
112
|
-
? toNewCaseTypeMapper(filterInfo[_filterKey])
|
|
113
|
-
: filterInfo[_filterKey];
|
|
109
|
+
: filterInfo[_filterKey];
|
|
114
110
|
if (_filterKey !== ProductVersionKey) {
|
|
115
111
|
Array.isArray(fieldValue) && fieldValue.length > 0 && solrQuery.where(fieldLabel).in(flatMap(fieldValue));
|
|
116
112
|
}
|
|
@@ -349,9 +345,6 @@ function createFilterStateFromAdvancedQuery(queryString, globalMetadataState, cu
|
|
|
349
345
|
if (_key === SolrKeys.product) {
|
|
350
346
|
newFilterInfo[SolrPivotKeys.product_version] = generateProductVersionPivotValue(filterObj[_key]);
|
|
351
347
|
}
|
|
352
|
-
if (_key === SolrKeys.type) {
|
|
353
|
-
newFilterInfo[SolrKeys.type] = toOldCaseTypeMapper(filterObj[_key]);
|
|
354
|
-
}
|
|
355
348
|
// if it's an unnamed field we should add it to free text querystring
|
|
356
349
|
else if (_key === '<implicit>') {
|
|
357
350
|
advanceToBasicQuery.push(filterObj[_key]);
|
|
@@ -17,7 +17,7 @@ export const filterNamesMap = {
|
|
|
17
17
|
[SolrKeys.caseNumber]: 'Case number',
|
|
18
18
|
[SolrKeys.createdBySsoUsername]: 'Created by me',
|
|
19
19
|
[SolrKeys.caseContactSSO]: 'Owned by me',
|
|
20
|
-
[SolrKeys.type]: '
|
|
20
|
+
[SolrKeys.type]: 'Case type',
|
|
21
21
|
usernameFilterTitle: 'Username',
|
|
22
22
|
};
|
|
23
23
|
export const UpdatedCaseDataEvent = 'PCM-Next > case-list-data-background-refresh';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43-beta.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lib/**/*"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@cee-eng/hydrajs": "4.15.
|
|
29
|
+
"@cee-eng/hydrajs": "4.15.64",
|
|
30
30
|
"@patternfly/patternfly": "4.196.7",
|
|
31
31
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
32
32
|
"@patternfly/react-core": "4.264.0",
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
"solr-query-builder": "1.0.1"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@cee-eng/hydrajs": "4.15.
|
|
49
|
+
"@cee-eng/hydrajs": "4.15.64",
|
|
50
50
|
"@patternfly/patternfly": "4.196.7",
|
|
51
51
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
52
52
|
"@patternfly/react-core": "4.264.0",
|
|
53
53
|
"@patternfly/react-table": "4.111.33",
|
|
54
|
-
"@rh-support/components": "1.2.
|
|
55
|
-
"@rh-support/react-context": "1.0.
|
|
56
|
-
"@rh-support/types": "0.2.
|
|
57
|
-
"@rh-support/user-permissions": "1.0.
|
|
58
|
-
"@rh-support/utils": "1.0.
|
|
54
|
+
"@rh-support/components": "1.2.24",
|
|
55
|
+
"@rh-support/react-context": "1.0.32-beta.1",
|
|
56
|
+
"@rh-support/types": "0.2.0",
|
|
57
|
+
"@rh-support/user-permissions": "1.0.14",
|
|
58
|
+
"@rh-support/utils": "1.0.12",
|
|
59
59
|
"i18next": "^19.0.1",
|
|
60
60
|
"localforage": "^1.7.3",
|
|
61
61
|
"lodash": "^4.17.21",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"solr-query-builder": "1.0.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@testing-library/jest-dom": "^5.
|
|
70
|
+
"@testing-library/jest-dom": "^5.14.1",
|
|
71
71
|
"@testing-library/react": "^12.0.0",
|
|
72
72
|
"@testing-library/user-event": "^13.1.9",
|
|
73
73
|
"@types/i18next": "^12.1.0",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"not ie <= 11",
|
|
100
100
|
"not op_mini all"
|
|
101
101
|
],
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "ae8df371ca848c21221c1721611c11eb0620d788"
|
|
103
103
|
}
|