@rh-support/manage 2.5.67 → 2.5.69
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/ManagePartnerships/Requests.d.ts +1 -0
- package/lib/esm/components/ManagePartnerships/Requests.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/Requests.js +8 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.js +10 -4
- package/lib/esm/scss/_pf-overrides.scss +1 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Requests.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/Requests.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,eAAO,MAAM,WAAW,SAAU,MAAM,WAMvC,CAAC;
|
|
1
|
+
{"version":3,"file":"Requests.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/Requests.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,eAAO,MAAM,WAAW,SAAU,MAAM,WAMvC,CAAC;AAGF,eAAO,MAAM,YAAY,SAAU,MAAM,cAAa,MAAM,WAK3D,CAAC;AAEF,wBAAgB,QAAQ,sBA+QvB"}
|
|
@@ -28,6 +28,13 @@ export const daysFromNow = (date) => {
|
|
|
28
28
|
let TotalDays = Math.ceil(difference / (1000 * 3600 * 24));
|
|
29
29
|
return TotalDays;
|
|
30
30
|
};
|
|
31
|
+
// truncates text after specified character limit and adds ellipsis
|
|
32
|
+
export const truncateText = (text, maxLength = 150) => {
|
|
33
|
+
if (!text || text.length <= maxLength) {
|
|
34
|
+
return text;
|
|
35
|
+
}
|
|
36
|
+
return text.substring(0, maxLength) + '...';
|
|
37
|
+
};
|
|
31
38
|
export function Requests() {
|
|
32
39
|
const { t } = useTranslation();
|
|
33
40
|
const confirmRemove = useConfirmation();
|
|
@@ -81,7 +88,7 @@ export function Requests() {
|
|
|
81
88
|
};
|
|
82
89
|
const columns = [
|
|
83
90
|
{
|
|
84
|
-
accessor: (data) => (data === null || data === void 0 ? void 0 : data.friendlyName) || '',
|
|
91
|
+
accessor: (data) => truncateText((data === null || data === void 0 ? void 0 : data.friendlyName) || ''),
|
|
85
92
|
sortable: false,
|
|
86
93
|
id: 'frienly-name',
|
|
87
94
|
cellWidth: 25,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopContentCategory.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAI5F,UAAU,MAAM;IACZ,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TopContentCategory.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAI5F,UAAU,MAAM;IACZ,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,qBA6E/C"}
|
|
@@ -34,13 +34,19 @@ export function TopContentCategory(props) {
|
|
|
34
34
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35
35
|
}, [props.isExpanded]);
|
|
36
36
|
return (React.createElement("div", Object.assign({ ref: props.innerRef }, props.provided.draggableProps, props.provided.dragHandleProps), props.category.content.length > 0 && (React.createElement(AccordionItem, { isExpanded: isExpanded },
|
|
37
|
-
React.createElement(
|
|
37
|
+
props.isArrangingCats ? (React.createElement("div", { id: props.category.categoryName, className: "pf-v6-c-accordion" },
|
|
38
|
+
React.createElement("div", { className: "pf-v6-c-accordion__item" },
|
|
39
|
+
React.createElement("div", { className: "pf-v6-c-accordion__toggle" },
|
|
40
|
+
React.createElement("h3", { ref: headerRef, className: "pf-v6-c-accordion__toggle-text" },
|
|
41
|
+
React.createElement(Icon, { size: "md", className: "pf-v6-u-mr-sm pf-v6-c-accordion__toggle-icon" },
|
|
42
|
+
React.createElement(GripVerticalIcon, { style: { cursor: 'move' }, title: t('Drag'), color: "#0066CC" })),
|
|
43
|
+
props.category.categoryName,
|
|
44
|
+
' ',
|
|
45
|
+
props.category.isAttentionNeeded && React.createElement(NeedsAttention, null)))))) : (React.createElement(AccordionToggle, { id: props.category.categoryName, onClick: toggleExpanded },
|
|
38
46
|
React.createElement("h3", { ref: headerRef },
|
|
39
|
-
props.isArrangingCats && (React.createElement(Icon, { size: "md", className: "pf-v6-u-mr-sm" },
|
|
40
|
-
React.createElement(GripVerticalIcon, { style: { cursor: 'move' }, title: t('Drag') }))),
|
|
41
47
|
props.category.categoryName,
|
|
42
48
|
" ",
|
|
43
|
-
props.category.isAttentionNeeded && React.createElement(NeedsAttention, null))),
|
|
49
|
+
props.category.isAttentionNeeded && React.createElement(NeedsAttention, null)))),
|
|
44
50
|
React.createElement(AccordionContent, null,
|
|
45
51
|
React.createElement(TopContentComponent, { category: props.category, scrollToTop: scrollToTop, categoryMode: CategoryMode.EXISTING_SECTION }))))));
|
|
46
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.69",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"@patternfly/patternfly": "6.2.1",
|
|
80
80
|
"@patternfly/react-core": "6.2.1",
|
|
81
81
|
"@patternfly/react-table": "6.2.1",
|
|
82
|
-
"@rh-support/components": "2.5.
|
|
82
|
+
"@rh-support/components": "2.5.54",
|
|
83
83
|
"@rh-support/configs": "2.0.21",
|
|
84
|
-
"@rh-support/react-context": "2.5.
|
|
84
|
+
"@rh-support/react-context": "2.5.69",
|
|
85
85
|
"@rh-support/types": "2.0.5",
|
|
86
86
|
"@rh-support/user-permissions": "2.5.25",
|
|
87
87
|
"@rh-support/utils": "2.5.22",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"defaults and supports es6-module",
|
|
104
104
|
"maintained node versions"
|
|
105
105
|
],
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "59dea26fe8f22c9ded29139d007d026ffc357416"
|
|
107
107
|
}
|