@rh-support/cases 2.1.35 → 2.1.37
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/CaseList.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseList.js +38 -33
- package/lib/esm/components/case-list/CaseListFilterReducer.d.ts +3 -0
- package/lib/esm/components/case-list/CaseListFilterReducer.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseListFilterReducer.js +3 -0
- package/lib/esm/components/case-list/case-list-table/CaseListTable.d.ts +0 -1
- 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 +186 -93
- package/lib/esm/components/case-list/case-list-table/DownloadCSVFileModal.d.ts +16 -0
- package/lib/esm/components/case-list/case-list-table/DownloadCSVFileModal.d.ts.map +1 -0
- package/lib/esm/components/case-list/case-list-table/DownloadCSVFileModal.js +273 -0
- package/lib/esm/components/case-list/case-list-table/DownloadCSVFileModal.scss +27 -0
- 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 +14 -91
- package/lib/esm/components/case-list/case-search/SaveCaseSearchModal.js +1 -1
- package/lib/esm/components/case-list/case-search/useAdvanceSearchParser.d.ts +1 -0
- package/lib/esm/components/case-list/case-search/useAdvanceSearchParser.d.ts.map +1 -1
- package/lib/esm/components/index.d.ts +0 -7
- package/lib/esm/components/index.d.ts.map +1 -1
- package/lib/esm/components/index.js +0 -7
- package/lib/esm/css/caseList.css +33 -39
- package/lib/esm/models/caseList.d.ts +3 -0
- package/lib/esm/models/caseList.d.ts.map +1 -1
- package/lib/esm/utils/caseListUtils.js +2 -2
- package/package.json +6 -9
package/lib/esm/css/caseList.css
CHANGED
|
@@ -112,10 +112,6 @@
|
|
|
112
112
|
margin: 0.4rem 1rem 0.4rem 0;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
/* .cases-main .case-search-top .filter-chip-wrapper .filter-chip:last-of-type {
|
|
116
|
-
margin-right: 0 !important;
|
|
117
|
-
} */
|
|
118
|
-
|
|
119
115
|
.cases-main .case-search-top .filter-chip-wrapper .filter-chip .filter-chip__heading {
|
|
120
116
|
font-size: 14px;
|
|
121
117
|
font-weight: 500;
|
|
@@ -235,10 +231,6 @@
|
|
|
235
231
|
min-width: 80px;
|
|
236
232
|
}
|
|
237
233
|
|
|
238
|
-
/* .case-search-bottom .case-list-table tr td.pf-v5-c-table__check {
|
|
239
|
-
padding: 2rem 1rem 1.5rem 2rem !important;
|
|
240
|
-
} */
|
|
241
|
-
|
|
242
234
|
.case-search-bottom .case-list-table .case-number,
|
|
243
235
|
.case-search-bottom .case-list-table .modified-name,
|
|
244
236
|
.case-search-bottom .case-list-table .created-name,
|
|
@@ -246,6 +238,13 @@
|
|
|
246
238
|
font-weight: 500;
|
|
247
239
|
}
|
|
248
240
|
|
|
241
|
+
.case-search-bottom .case-list-table th.pf-v5-c-table__th {
|
|
242
|
+
padding: 16px 24px !important;
|
|
243
|
+
word-break: inherit;
|
|
244
|
+
vertical-align: middle;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.case-search-bottom .case-list-table .case-number,
|
|
249
248
|
.case-search-bottom .case-list-table .modified-name,
|
|
250
249
|
.case-search-bottom .case-list-table .created-name {
|
|
251
250
|
display: block;
|
|
@@ -337,11 +336,6 @@
|
|
|
337
336
|
margin-right: 0;
|
|
338
337
|
}
|
|
339
338
|
|
|
340
|
-
/* .filter-wrapper .filter-group > .pf-v5-c-select .pf-v5-c-select__toggle,
|
|
341
|
-
.filter-wrapper .filter-group > .pf-v5-c-select .pf-v5-c-select__toggle .pf-v5-c-select__toggle-typeahead {
|
|
342
|
-
font-size: 15px;
|
|
343
|
-
} */
|
|
344
|
-
|
|
345
339
|
#rh-support-cases .pf-v5-c-select .pf-v5-c-select__menu li label,
|
|
346
340
|
.filter-wrapper .filter-group > .additional-filters label {
|
|
347
341
|
margin-bottom: 0;
|
|
@@ -483,23 +477,23 @@
|
|
|
483
477
|
.case-list-table tbody > tr > :nth-child(2) {
|
|
484
478
|
position: sticky;
|
|
485
479
|
background-color: white;
|
|
486
|
-
left:
|
|
480
|
+
left: 50px;
|
|
487
481
|
z-index: 1;
|
|
488
482
|
background-clip: padding-box;
|
|
489
483
|
}
|
|
490
484
|
|
|
491
485
|
/* Case ID Header */
|
|
492
|
-
th.pf-v5-c-
|
|
486
|
+
th#number.pf-v5-c-table__th {
|
|
493
487
|
position: sticky;
|
|
494
488
|
background-color: white;
|
|
495
|
-
left:
|
|
489
|
+
left: 50px;
|
|
496
490
|
z-index: 1;
|
|
497
491
|
background-clip: padding-box;
|
|
498
492
|
}
|
|
499
493
|
|
|
500
494
|
/* Vertical border to divide sticky columns and other columns*/
|
|
501
495
|
.case-list-table tbody > tr > :nth-child(2):before,
|
|
502
|
-
th.pf-v5-c-
|
|
496
|
+
th#number.pf-v5-c-table__th:before {
|
|
503
497
|
position: absolute;
|
|
504
498
|
content: '';
|
|
505
499
|
top: 0px;
|
|
@@ -509,51 +503,51 @@
|
|
|
509
503
|
}
|
|
510
504
|
|
|
511
505
|
/* Issue Summary Header */
|
|
512
|
-
th.pf-v5-c-
|
|
506
|
+
th#summary.pf-v5-c-table__th,
|
|
513
507
|
.case-list-table tbody > tr > :nth-child(3) {
|
|
514
|
-
min-width: 270px;
|
|
508
|
+
min-width: 270px !important;
|
|
515
509
|
}
|
|
516
510
|
|
|
517
|
-
th.pf-v5-c-
|
|
518
|
-
th.pf-v5-c-
|
|
519
|
-
th.pf-v5-c-
|
|
520
|
-
min-width: 140px;
|
|
511
|
+
th#contactName.pf-v5-c-table__th,
|
|
512
|
+
th#status.pf-v5-c-table__th,
|
|
513
|
+
th#folderName.pf-v5-c-table__th {
|
|
514
|
+
min-width: 140px !important;
|
|
521
515
|
}
|
|
522
516
|
|
|
523
|
-
th.pf-v5-c-
|
|
524
|
-
th.pf-v5-c-
|
|
525
|
-
min-width: 150px;
|
|
517
|
+
th#severity.pf-v5-c-table__th,
|
|
518
|
+
th#number.pf-v5-c-table__th {
|
|
519
|
+
min-width: 150px !important;
|
|
526
520
|
}
|
|
527
521
|
|
|
528
|
-
th.pf-v5-c-
|
|
529
|
-
th.pf-v5-c-
|
|
530
|
-
min-width:
|
|
522
|
+
th#lastModifiedDate.pf-v5-c-table__th,
|
|
523
|
+
th#createdDate.pf-v5-c-table__th {
|
|
524
|
+
min-width: 180px !important;
|
|
531
525
|
}
|
|
532
526
|
|
|
533
|
-
th.pf-
|
|
534
|
-
th.pf-v5-c-
|
|
535
|
-
min-width:
|
|
527
|
+
th#product.pf-v5-c-table__th,
|
|
528
|
+
th#type.pf-v5-c-table__th {
|
|
529
|
+
min-width: 190px !important;
|
|
536
530
|
}
|
|
537
531
|
|
|
538
|
-
th.pf-v5-c-
|
|
532
|
+
th#accountNumber.pf-v5-c-table__th {
|
|
539
533
|
min-width: 205px;
|
|
540
534
|
}
|
|
541
535
|
|
|
542
|
-
th.pf-v5-c-
|
|
543
|
-
min-width:
|
|
536
|
+
th#alternateCaseId.pf-v5-c-table__th {
|
|
537
|
+
min-width: 242px !important;
|
|
544
538
|
}
|
|
545
539
|
|
|
546
540
|
/* Closed Date Header */
|
|
547
|
-
th.pf-v5-c-
|
|
541
|
+
th#closedDate.pf-v5-c-table__th,
|
|
548
542
|
th.pf-v5-c-table__sort[data-label='Case type'] {
|
|
549
|
-
min-width: 200px;
|
|
543
|
+
min-width: 200px !important;
|
|
550
544
|
}
|
|
551
545
|
}
|
|
552
546
|
|
|
553
547
|
@media (min-width: 1800px) {
|
|
554
548
|
/* Issue Summary */
|
|
555
|
-
th.pf-v5-c-
|
|
549
|
+
th#summary.pf-v5-c-table__th,
|
|
556
550
|
.case-list-table tbody > tr > :nth-child(3) {
|
|
557
|
-
min-width: 450px;
|
|
551
|
+
min-width: 450px !important;
|
|
558
552
|
}
|
|
559
553
|
}
|
|
@@ -16,6 +16,8 @@ export interface IFacetCounts {
|
|
|
16
16
|
facet_pivot?: IFacetPivot;
|
|
17
17
|
}
|
|
18
18
|
export interface ISolrCaseListResponse {
|
|
19
|
+
case_folderName: string;
|
|
20
|
+
case_folderNumber: string;
|
|
19
21
|
case_accountNumber: string;
|
|
20
22
|
case_contactName: string;
|
|
21
23
|
case_createdByName: string;
|
|
@@ -36,6 +38,7 @@ export interface ISolrCaseListResponse {
|
|
|
36
38
|
id: string;
|
|
37
39
|
uri: string;
|
|
38
40
|
case_closedDate: string;
|
|
41
|
+
case_alternate_id: string;
|
|
39
42
|
}
|
|
40
43
|
export declare type ISolrCaseSearchResponse = ISolrResponse<ISolrCaseListResponse, IFacetCounts>;
|
|
41
44
|
export declare type ICaseListResponse = ISolrCaseListResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseList.d.ts","sourceRoot":"","sources":["../../../src/models/caseList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,WAAW,WAAW;IACxB,2BAA2B,EAAE,kBAAkB,EAAE,CAAC;CACrD;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,KAAK,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IACzB,YAAY,CAAC,EAAE,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IACzB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,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B,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,EAAE,OAAO,CAAC;IAClC,uBAAuB,EAAE,MAAM,CAAC;IAChC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,0BAA0B,EAAE,MAAM,CAAC;IACnC,4BAA4B,EAAE,MAAM,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED,oBAAY,uBAAuB,GAAG,aAAa,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;AAEzF,oBAAY,iBAAiB,GAAG,qBAAqB,CAAC"}
|
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
};
|
|
21
21
|
import { publicApi, search } from '@cee-eng/hydrajs';
|
|
22
22
|
import { promiseReflection } from '@rh-support/utils';
|
|
23
|
-
import {
|
|
23
|
+
import { isArrayHashMapEmpty } from '../components/case-list/CaseListFilterHelpers';
|
|
24
24
|
import { CaseSearchQueryType } from '../enums/caseSearch';
|
|
25
25
|
import { createSFDCQueryFromFilterState, createSolrQueryFromFilterState, mapSFDCCaseListToSolrCaseList, } from './caseSearchUtils';
|
|
26
26
|
const throwErrorOnAbort = (message) => {
|
|
@@ -46,7 +46,7 @@ export function getCaseList(filterState, loggedInUser, loggedInUserAccount, abor
|
|
|
46
46
|
const solrFilter = createSolrQueryFromFilterState(filterState, loggedInUser);
|
|
47
47
|
const partnerSearch = loggedInUser.isPartner();
|
|
48
48
|
//sfdc returns wrong result, for now only call sfdc when we have no filter applied
|
|
49
|
-
const isSfdcSearchRequired =
|
|
49
|
+
const isSfdcSearchRequired = isArrayHashMapEmpty(filterState.filterInfo) &&
|
|
50
50
|
!filterState.filterQueryInfo.queryString &&
|
|
51
51
|
!partnerSearch &&
|
|
52
52
|
((_a = filterState.filterQueryInfo) === null || _a === void 0 ? void 0 : _a.type) !== CaseSearchQueryType.ADVANCED;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.37",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@cee-eng/hydrajs": "4.16.43",
|
|
30
30
|
"@patternfly/patternfly": "5.1.0",
|
|
31
|
-
"@patternfly/pfe-collapse": "1.12.3",
|
|
32
31
|
"@patternfly/react-core": "5.1.1",
|
|
33
32
|
"@patternfly/react-table": "5.1.1",
|
|
34
33
|
"i18next": "^19.0.1",
|
|
@@ -43,14 +42,13 @@
|
|
|
43
42
|
"dependencies": {
|
|
44
43
|
"@cee-eng/hydrajs": "4.16.43",
|
|
45
44
|
"@patternfly/patternfly": "5.1.0",
|
|
46
|
-
"@patternfly/pfe-collapse": "1.12.3",
|
|
47
45
|
"@patternfly/react-core": "5.1.1",
|
|
48
46
|
"@patternfly/react-table": "5.1.1",
|
|
49
|
-
"@rh-support/components": "2.1.
|
|
50
|
-
"@rh-support/react-context": "2.1.
|
|
47
|
+
"@rh-support/components": "2.1.32",
|
|
48
|
+
"@rh-support/react-context": "2.1.35",
|
|
51
49
|
"@rh-support/types": "2.0.2",
|
|
52
|
-
"@rh-support/user-permissions": "2.1.
|
|
53
|
-
"@rh-support/utils": "2.1.
|
|
50
|
+
"@rh-support/user-permissions": "2.1.22",
|
|
51
|
+
"@rh-support/utils": "2.1.15",
|
|
54
52
|
"i18next": "^19.0.1",
|
|
55
53
|
"localforage": "^1.10.0",
|
|
56
54
|
"lodash": "^4.17.21",
|
|
@@ -69,7 +67,6 @@
|
|
|
69
67
|
"@types/lodash": "^4.14.136",
|
|
70
68
|
"@types/react": "^17.0.14",
|
|
71
69
|
"@types/react-dom": "^17.0.9",
|
|
72
|
-
"@types/react-i18next": "^8.1.0",
|
|
73
70
|
"@types/react-router-dom": "^5.1.2",
|
|
74
71
|
"faker": "^5.5.3"
|
|
75
72
|
},
|
|
@@ -93,5 +90,5 @@
|
|
|
93
90
|
"defaults and supports es6-module",
|
|
94
91
|
"maintained node versions"
|
|
95
92
|
],
|
|
96
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "462d269eaba23f3e9b735caf2157f24f2a841da2"
|
|
97
94
|
}
|