@rh-support/cases 2.6.19 → 2.6.34

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.
@@ -1 +1 @@
1
- {"version":3,"file":"TypeFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/TypeFilter.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,UAAU,MAAM;IACZ,YAAY,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,qBAkJvC"}
1
+ {"version":3,"file":"TypeFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/TypeFilter.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,UAAU,MAAM;IACZ,YAAY,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,qBAkIvC"}
@@ -21,20 +21,11 @@ export function TypeFilter(props) {
21
21
  key: type,
22
22
  }));
23
23
  const onSelectHandler = (option) => {
24
- const convertedSelectedType = toOldCaseTypeSwitcher([option.value]);
25
- const prevSelectedTypes = Object.keys(selectedItems).filter((item) => selectedItems[item] && item);
26
- if (selectedItems[option.value]) {
27
- setSelectedItems((prevData) => (Object.assign(Object.assign({}, prevData), { [option.value]: false })));
28
- const index = prevSelectedTypes.indexOf(option.value);
29
- prevSelectedTypes.splice(index, 1);
30
- }
31
- else {
32
- setSelectedItems((prevData) => (Object.assign(Object.assign({}, prevData), { [option.value]: true })));
33
- prevSelectedTypes.push(option.value);
34
- }
35
- const newState = filterInfo[SolrKeys.type].includes(convertedSelectedType[0])
36
- ? filterInfo[SolrKeys.type].filter((item) => item !== convertedSelectedType[0])
37
- : [...filterInfo[SolrKeys.type], convertedSelectedType[0]];
24
+ // To convert the selected type to old case type
25
+ const convertedSelectedType = toOldCaseTypeSwitcher(option.value);
26
+ const newState = filterInfo[SolrKeys.type].includes(convertedSelectedType)
27
+ ? filterInfo[SolrKeys.type].filter((item) => item !== convertedSelectedType)
28
+ : [...filterInfo[SolrKeys.type], convertedSelectedType];
38
29
  updateFilter(dispatch, {
39
30
  filterKey: SolrKeys.type,
40
31
  values: newState,
@@ -8,6 +8,7 @@
8
8
  -ms-flex-direction: column;
9
9
  flex-direction: column;
10
10
  background-color: #ededed;
11
+ border-radius: 16px !important;
11
12
  }
12
13
 
13
14
  .cases-main .case-search-top {
@@ -189,13 +190,14 @@
189
190
  flex-grow: 1;
190
191
  display: block;
191
192
  overflow-x: auto;
193
+ border-radius: 0 0 16px !important;
192
194
  }
193
195
 
194
196
  .case-search-bottom .case-list-table-toolbar {
195
197
  -ms-flex-align: center;
196
198
  align-items: center;
197
199
  justify-content: space-between;
198
- min-height: 4rem;
200
+ min-height: 4.3rem;
199
201
  padding-left: 1rem;
200
202
  background-color: var(--pf-t--color--gray--10);
201
203
  border-top: 1px solid var(--pf-t--global--border--color--100);
@@ -281,6 +283,7 @@
281
283
  margin-top: 0 !important;
282
284
  border-right: 1px solid var(--pf-t--global--border--color--100);
283
285
  border-bottom: 1px solid var(--pf-t--global--border--color--100);
286
+ border-radius: 16px !important;
284
287
  }
285
288
 
286
289
  .case-search-bottom .case-search-table footer.toolbar-pagination > :first-child {
@@ -298,6 +301,7 @@
298
301
  border-top: 1px solid var(--pf-t--global--border--color--100);
299
302
  border-right: 1px solid var(--pf-t--global--border--color--100);
300
303
  border-bottom: 1px solid var(--pf-t--global--border--color--100);
304
+ border-radius: 0 0 0 16px;
301
305
  }
302
306
 
303
307
  .case-search-filters .filter-header {
@@ -45,6 +45,10 @@ div.pf-v6-c-modal-box__body {
45
45
  font-size: 16px;
46
46
  text-align: left;
47
47
  justify-content: flex-start;
48
+ display: inline-block;
49
+ overflow: hidden;
50
+ white-space: nowrap;
51
+ text-overflow: ellipsis;
48
52
  }
49
53
 
50
54
  .save-for-later-button .pf-v6-c-button__icon {
@@ -68,3 +68,7 @@ label.pf-v6-u-mb-sm.group-filter-label,
68
68
  .pf-v6-c-alert {
69
69
  margin-top: 0;
70
70
  }
71
+
72
+ .case-search-bottom {
73
+ border-radius: 16px !important;
74
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/cases",
3
- "version": "2.6.19",
3
+ "version": "2.6.34",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -43,8 +43,8 @@
43
43
  "@patternfly/patternfly": "6.2.1",
44
44
  "@patternfly/react-core": "6.2.1",
45
45
  "@patternfly/react-table": "6.2.1",
46
- "@rh-support/components": "2.5.33",
47
- "@rh-support/react-context": "2.5.36",
46
+ "@rh-support/components": "2.5.45",
47
+ "@rh-support/react-context": "2.5.60",
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": "976f134e20f3bf65b6bf613d6f39060724683cf9"
99
+ "gitHead": "496bf698365697ff751a8edf712284454440d6ea"
100
100
  }