@rh-support/cases 1.0.10 → 1.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"CaseListTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/CaseListTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AA6B3E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAWxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAEH,eAAe,EACf,SAAS,EAIZ,MAAM,0BAA0B,CAAC;AA2BlC,UAAU,MAAM;IACZ,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC3C,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,eAkX1C"}
1
+ {"version":3,"file":"CaseListTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/CaseListTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AA6B3E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAWxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAEH,eAAe,EACf,SAAS,EAIZ,MAAM,0BAA0B,CAAC;AA2BlC,UAAU,MAAM;IACZ,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC3C,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,eA8W1C"}
@@ -163,22 +163,18 @@ export function CaseListTable(props) {
163
163
  {
164
164
  id: CaseListColumnIds.caseClosedDate,
165
165
  cellWidth: 10,
166
- title: t('Case Closed Date'),
166
+ title: t('Closed Date'),
167
167
  sortable: true,
168
168
  accessor: (data) => formatDate(data.case_closedDate),
169
169
  show: isColumnVisible(CaseListColumnIds.caseClosedDate),
170
170
  },
171
- ...(props.loggedInUserRights && props.loggedInUserRights.isOrgAdmin()
172
- ? [
173
- {
174
- id: CaseListColumnIds.group,
175
- title: t('Group'),
176
- sortable: true,
177
- accessor: (data) => data.case_folderName || getCaseGroupName(data.case_folderNumber),
178
- show: isColumnVisible(CaseListColumnIds.group),
179
- },
180
- ]
181
- : []),
171
+ {
172
+ id: CaseListColumnIds.group,
173
+ title: t('Group'),
174
+ sortable: true,
175
+ accessor: (data) => data.case_folderName || getCaseGroupName(data.case_folderNumber),
176
+ show: isColumnVisible(CaseListColumnIds.group),
177
+ },
182
178
  ];
183
179
  const getSelectedColumnsListFromCache = () => {
184
180
  const savedSelectedColumnsKey = UserPreferencesKeys.caseListSelectedColumns;
@@ -35,7 +35,7 @@ const csvHeadersSolr = [
35
35
  { label: 'Uri', key: SolrKeys.uri },
36
36
  { label: 'Alternate case ID', key: SolrKeys.alternateId },
37
37
  { label: 'Type', key: SolrKeys.type },
38
- { label: 'Case closed date', key: SolrKeys.caseClosedDate, transform: formatDateTime },
38
+ { label: 'Closed date', key: SolrKeys.caseClosedDate, transform: formatDateTime },
39
39
  ];
40
40
  const csvHeadersSFDC = [
41
41
  { label: 'Account number', key: SFDCKeys.accountNumber },
@@ -54,7 +54,7 @@ const csvHeadersSFDC = [
54
54
  { label: 'Uri', key: SFDCKeys.uri },
55
55
  { label: 'Alternate case ID', key: SFDCKeys.alternateId },
56
56
  { label: 'Case type', key: SFDCKeys.caseType },
57
- { label: 'Case closed date', key: SFDCKeys.caseClosedDate, transform: formatDateTime },
57
+ { label: 'Closed date', key: SFDCKeys.caseClosedDate, transform: formatDateTime },
58
58
  ];
59
59
  const groupHeaderSOLR = { label: 'Group', key: SolrKeys.groupName };
60
60
  const groupHeaderSFDC = { label: 'Group', key: SFDCKeys.groupName };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/cases",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -51,11 +51,11 @@
51
51
  "@patternfly/pfe-collapse": "1.12.3",
52
52
  "@patternfly/react-core": "4.202.16",
53
53
  "@patternfly/react-table": "4.71.16",
54
- "@rh-support/components": "1.2.3",
55
- "@rh-support/react-context": "1.0.4",
54
+ "@rh-support/components": "1.2.4",
55
+ "@rh-support/react-context": "1.0.5",
56
56
  "@rh-support/types": "0.2.0",
57
- "@rh-support/user-permissions": "1.0.3",
58
- "@rh-support/utils": "1.0.2",
57
+ "@rh-support/user-permissions": "1.0.4",
58
+ "@rh-support/utils": "1.0.3",
59
59
  "i18next": "^19.0.1",
60
60
  "localforage": "^1.7.3",
61
61
  "lodash": "^4.17.21",
@@ -99,5 +99,5 @@
99
99
  "not ie <= 11",
100
100
  "not op_mini all"
101
101
  ],
102
- "gitHead": "8891e192aa5a3aef7b3b456fed64ef5ad68afa47"
102
+ "gitHead": "530845145c618b8f1a7ef6a36fd1b903c9ea8525"
103
103
  }