@rh-support/cases 2.6.16 → 2.6.18
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-list/case-search/AdvanceSearch.js +1 -1
- package/lib/esm/components/case-list/case-search/BookmarkedSearchesSelector.js +1 -1
- package/lib/esm/components/case-list/case-search/CaseSearch.js +1 -1
- package/lib/esm/css/caseSearch.css +0 -6
- package/lib/esm/hooks/useCloseCase.d.ts +1 -1
- package/lib/esm/hooks/useExportCaseListCSV.d.ts +1 -1
- package/lib/esm/scss/_main.scss +15 -0
- package/lib/esm/scss/_pf-overrides.scss +6 -0
- package/lib/esm/utils/constants.d.ts +18 -18
- package/package.json +3 -3
|
@@ -197,7 +197,7 @@ export function AdvanceSearch(props) {
|
|
|
197
197
|
React.createElement(LoadingIndicator, null))))),
|
|
198
198
|
React.createElement(Button, { type: "button", variant: "primary", "data-tracking-id": "case-list-adv-search-button", className: "search-btn", onClick: onSearchSubmit, isDisabled: isAdvancedSearchButtonDisabled },
|
|
199
199
|
React.createElement(Trans, null, "Search")),
|
|
200
|
-
React.createElement(Button, { hasNoPadding: true, className: "case-search-toggle", variant: "link", onClick: onBasicClick, "data-tracking-id": "case-list-basic-toggle-button" },
|
|
200
|
+
React.createElement(Button, { hasNoPadding: true, className: "case-search-toggle secondary-button-pill", variant: "link", onClick: onBasicClick, "data-tracking-id": "case-list-basic-toggle-button" },
|
|
201
201
|
React.createElement(Trans, null, "Basic")),
|
|
202
202
|
React.createElement(Button, { icon: React.createElement(InfoIcon, null), variant: "link", className: "pf-v6-u-px-0", component: "a", rel: "noopener noreferrer", target: "_blank", "aria-label": "Advanced search guide", href: "https://source.redhat.com/communitiesatredhat/applications/integration-community-of-practice/all/testallin/all_in_blog/advanced_search_in_the_customer_support_tool", "data-tracking-id": "advance-search-guide" })));
|
|
203
203
|
}
|
|
@@ -201,7 +201,7 @@ export function BookmarkedSearchesSelector(props) {
|
|
|
201
201
|
}
|
|
202
202
|
e.stopPropagation();
|
|
203
203
|
onSaveForLaterClick();
|
|
204
|
-
}, isDisabled: !!selectedSearch || noFilterOrSearchQueryApplied || advancedSearchPhraseIsNotValid,
|
|
204
|
+
}, isDisabled: !!selectedSearch || noFilterOrSearchQueryApplied || advancedSearchPhraseIsNotValid, className: "save-for-later-button" }),
|
|
205
205
|
] }));
|
|
206
206
|
return (React.createElement(React.Fragment, null,
|
|
207
207
|
React.createElement("div", { className: "bookmark-search-dropdown-wrapper", "data-tracking-id": "bookmark-search-id" },
|
|
@@ -99,7 +99,7 @@ export function CaseSearch(props) {
|
|
|
99
99
|
React.createElement(SearchInput, { className: "pf-v6-u-w-100 case-search-input", placeholder: t('Search by keyword or case ID'), value: searchVal === null || searchVal === void 0 ? void 0 : searchVal.trim(), "data-tracking-id": "search-cases-text-input", id: "case-search-basic", "aria-label": t('Search by keyword or case ID'), onChange: (_event, val) => onSearchValChange(val), onClear: clearSearchVal }),
|
|
100
100
|
React.createElement(Button, { variant: "primary", type: "submit", className: "search-btn", "data-tracking-id": "case-list-search-button", isDisabled: isSearchButtonDisabled },
|
|
101
101
|
React.createElement(Trans, null, "Search")),
|
|
102
|
-
canUseAdvancedSearch && (React.createElement(Button, { variant: "link", onClick: () => onSearchTypeChange(CaseSearchQueryType.ADVANCED), isDisabled: isFetching, "data-tracking-id": "case-list-adv-toggle-button", className: "case-search-toggle" },
|
|
102
|
+
canUseAdvancedSearch && (React.createElement(Button, { variant: "link", onClick: () => onSearchTypeChange(CaseSearchQueryType.ADVANCED), isDisabled: isFetching, "data-tracking-id": "case-list-adv-toggle-button", className: "case-search-toggle secondary-button-pill" },
|
|
103
103
|
React.createElement(Trans, null, "Advanced"))))));
|
|
104
104
|
};
|
|
105
105
|
const renderAdvanceSearch = () => {
|
|
@@ -41,12 +41,6 @@
|
|
|
41
41
|
min-width: 30rem;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.case-search-form-group .case-search-toggle {
|
|
45
|
-
border-radius: var(--pf-t--global--border--radius--400);
|
|
46
|
-
padding-left: 1.5rem;
|
|
47
|
-
padding-right: 1.5rem;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
44
|
.case-search-form-group .filter-save-success-msg {
|
|
51
45
|
color: var(--pf-v5-global--success-color--200);
|
|
52
46
|
padding: 6px 0px;
|
|
@@ -14,7 +14,7 @@ export declare function useCloseCase(props: IUseCloseCaseProps): {
|
|
|
14
14
|
maxCasesSelected: boolean;
|
|
15
15
|
showWarning: boolean;
|
|
16
16
|
showError: boolean;
|
|
17
|
-
getTooltipContent: () =>
|
|
17
|
+
getTooltipContent: () => any;
|
|
18
18
|
onCancel: () => void;
|
|
19
19
|
onConfirm: (commentBody: any) => Promise<void>;
|
|
20
20
|
onBtnClick: () => void;
|
|
@@ -10,7 +10,7 @@ export declare function useExportCaseListCSV(props: IUseExportCaseListCSV): {
|
|
|
10
10
|
isExportButtonDisabled: boolean;
|
|
11
11
|
openUpdateSeverityModal: boolean;
|
|
12
12
|
showError: boolean;
|
|
13
|
-
getTooltipContent: () =>
|
|
13
|
+
getTooltipContent: () => any;
|
|
14
14
|
toggleDownloadCSVModal: () => void;
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=useExportCaseListCSV.d.ts.map
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -39,3 +39,18 @@ div.pf-v6-c-modal-box__body {
|
|
|
39
39
|
.case-search-filter-text-button {
|
|
40
40
|
margin-left: 10px;
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
.save-for-later-button {
|
|
44
|
+
flex: 1;
|
|
45
|
+
font-size: 16px;
|
|
46
|
+
text-align: left;
|
|
47
|
+
justify-content: flex-start;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.save-for-later-button .pf-v6-c-button__icon {
|
|
51
|
+
color: var(--global-text-color-regular, #151515) !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.case-search-filter-text-button .pf-v6-c-button__text {
|
|
55
|
+
padding-left: 10px;
|
|
56
|
+
}
|
|
@@ -58,3 +58,9 @@ label.pf-v6-u-mb-sm.group-filter-label,
|
|
|
58
58
|
#rh-support-cases .filter-wrapper .pf-v6-c-text-input-group__text-input::placeholder {
|
|
59
59
|
color: var(--pf-v6-c-menu-toggle--Color);
|
|
60
60
|
}
|
|
61
|
+
|
|
62
|
+
.pf-v6-c-button.secondary-button-pill {
|
|
63
|
+
border-radius: var(--pf-t--global--border--radius--400);
|
|
64
|
+
padding-left: 1.5rem;
|
|
65
|
+
padding-right: 1.5rem;
|
|
66
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export declare const filterNamesMap: {
|
|
2
|
-
readonly case_status:
|
|
3
|
-
readonly case_severity:
|
|
4
|
-
readonly case_folderNumber:
|
|
5
|
-
readonly case_accountNumber:
|
|
6
|
-
readonly case_summary:
|
|
7
|
-
readonly case_customer_escalation:
|
|
8
|
-
readonly case_contactName:
|
|
9
|
-
readonly case_product:
|
|
10
|
-
readonly case_version:
|
|
11
|
-
readonly case_createdByName:
|
|
12
|
-
readonly case_createdDate:
|
|
13
|
-
readonly case_lastModifiedByName:
|
|
14
|
-
readonly uri:
|
|
15
|
-
readonly case_number:
|
|
16
|
-
readonly case_createdby_sso_username:
|
|
17
|
-
readonly case_contact_sso_username:
|
|
18
|
-
readonly case_type:
|
|
19
|
-
readonly usernameFilterTitle:
|
|
2
|
+
readonly case_status: any;
|
|
3
|
+
readonly case_severity: any;
|
|
4
|
+
readonly case_folderNumber: any;
|
|
5
|
+
readonly case_accountNumber: any;
|
|
6
|
+
readonly case_summary: any;
|
|
7
|
+
readonly case_customer_escalation: any;
|
|
8
|
+
readonly case_contactName: any;
|
|
9
|
+
readonly case_product: any;
|
|
10
|
+
readonly case_version: any;
|
|
11
|
+
readonly case_createdByName: any;
|
|
12
|
+
readonly case_createdDate: any;
|
|
13
|
+
readonly case_lastModifiedByName: any;
|
|
14
|
+
readonly uri: any;
|
|
15
|
+
readonly case_number: any;
|
|
16
|
+
readonly case_createdby_sso_username: any;
|
|
17
|
+
readonly case_contact_sso_username: any;
|
|
18
|
+
readonly case_type: any;
|
|
19
|
+
readonly usernameFilterTitle: any;
|
|
20
20
|
};
|
|
21
21
|
export declare const UpdatedCaseDataEvent = "PCM-Next > case-list-data-background-refresh";
|
|
22
22
|
//# sourceMappingURL=constants.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.18",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@patternfly/react-core": "6.2.1",
|
|
45
45
|
"@patternfly/react-table": "6.2.1",
|
|
46
46
|
"@rh-support/components": "2.5.33",
|
|
47
|
-
"@rh-support/react-context": "2.5.
|
|
47
|
+
"@rh-support/react-context": "2.5.36",
|
|
48
48
|
"@rh-support/types": "2.0.5",
|
|
49
49
|
"@rh-support/user-permissions": "2.5.20",
|
|
50
50
|
"@rh-support/utils": "2.5.19",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"defaults and supports es6-module",
|
|
97
97
|
"maintained node versions"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "4bee35b87e0078a62064ee31c363ce3d11cbe539"
|
|
100
100
|
}
|