@rh-support/manage 2.5.31 → 2.5.33
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/Configs/ConfigsTable.js +1 -1
- package/lib/esm/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.d.ts.map +1 -1
- package/lib/esm/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.js +1 -1
- package/lib/esm/components/Groups/GroupSelect/GroupSelect.d.ts.map +1 -1
- package/lib/esm/components/Groups/GroupSelect/GroupSelect.js +54 -22
- package/lib/esm/components/Groups/GroupUserPermissionsSelect/GroupUserPermissionsSelect.d.ts.map +1 -1
- package/lib/esm/components/Groups/GroupUserPermissionsSelect/GroupUserPermissionsSelect.js +19 -14
- package/lib/esm/components/Groups/ManageGroupUsers/ManageGroupUsers.js +3 -3
- package/lib/esm/components/ManageBookmarkedAccountsTab/AddEditBookmarkModal.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/AddEditBookmarkModal.js +9 -9
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.js +106 -67
- package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.js +7 -12
- package/lib/esm/components/ManageExpiredContents/ExpiredContentCategory.js +3 -3
- package/lib/esm/components/ManageExpiredContents/ExpiredContentHeader.js +1 -1
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.d.ts.map +1 -1
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.js +5 -6
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItem.js +2 -2
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.js +2 -2
- package/lib/esm/components/ManagePartnerships/NonOrgCustomerInfoModal.js +5 -5
- package/lib/esm/components/ManagePartnerships/PartnershipsList.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/PartnershipsList.js +5 -6
- package/lib/esm/components/ManagePartnerships/PartnershipsTermsModal.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/PartnershipsTermsModal.js +15 -20
- package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.js +9 -16
- package/lib/esm/components/ManagePartnerships/Requests.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/Requests.js +5 -6
- package/lib/esm/components/ManagePartnerships/index.js +1 -1
- package/lib/esm/components/ManagePreferences/PreferencesHeader.js +1 -1
- package/lib/esm/components/ManagePreferences/components/PreferenceSelect.d.ts +1 -1
- package/lib/esm/components/ManagePreferences/components/PreferenceSelect.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/components/PreferenceSelect.js +26 -27
- package/lib/esm/components/ManagePreferences/sections/PreferencesACL.js +3 -3
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseCreate.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseCreate.js +3 -4
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseSearch.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseSearch.js +2 -3
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.js +6 -7
- package/lib/esm/components/ManageTable/ManageTable.d.ts +3 -4
- package/lib/esm/components/ManageTable/ManageTable.d.ts.map +1 -1
- package/lib/esm/components/ManageTable/ManageTable.js +12 -19
- package/lib/esm/components/ManageTags/TagsManager.d.ts.map +1 -1
- package/lib/esm/components/ManageTags/TagsManager.js +24 -27
- package/lib/esm/components/NotificationEmails/NotificationEmailsModal.d.ts.map +1 -1
- package/lib/esm/components/NotificationEmails/NotificationEmailsModal.js +14 -14
- package/lib/esm/components/NotificationEmails/index.js +2 -3
- package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimit.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimit.js +2 -3
- package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimitGuidelines.js +6 -6
- package/lib/esm/components/TopContentManagement/CategoryLimit/QuestionAnswer.js +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/ContentAccordion.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/ContentAccordion.js +5 -5
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetrics.js +8 -8
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.d.ts +2 -3
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.js +16 -9
- package/lib/esm/components/TopContentManagement/ContentUsage/VersionPerformanceMetrics.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/VersionPerformanceMetrics.js +11 -11
- package/lib/esm/components/TopContentManagement/NoTopContentFound.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/NoTopContentFound.js +13 -14
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.js +46 -39
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.js +4 -4
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategoryNew.js +3 -3
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.js +5 -5
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItemLink.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItemLink.js +2 -3
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.js +4 -4
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestion.js +2 -2
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHint.js +4 -5
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHintAccept.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHintAccept.js +51 -25
- package/lib/esm/components/TopContentManagement/TopContentHeader.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentProductVersionSelector.js +58 -29
- package/lib/esm/scss/_main.scss +23 -19
- package/lib/esm/scss/_pf-overrides.scss +50 -46
- package/lib/esm/scss/index.scss +4 -4
- package/package.json +12 -12
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { products as productsApi } from '@cee-eng/hydrajs';
|
|
2
|
-
import { Select, SelectOption,
|
|
3
|
-
import
|
|
4
|
-
import { useFetch } from '@rh-support/components';
|
|
2
|
+
import { MenuToggle, Select, SelectOption, TextInputGroup, TextInputGroupMain, } from '@patternfly/react-core';
|
|
3
|
+
import TimesCircleIcon from '@patternfly/react-icons/dist/js/icons/times-circle-icon';
|
|
4
|
+
import { SingleSelectDropdown, useFetch } from '@rh-support/components';
|
|
5
5
|
import { getUniqueSortedVersions, getVersion } from '@rh-support/utils';
|
|
6
6
|
import isEmpty from 'lodash/isEmpty';
|
|
7
|
-
import React, { useEffect, useState } from 'react';
|
|
7
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
8
8
|
import { Trans, useTranslation } from 'react-i18next';
|
|
9
9
|
import { useTopContentDispatchContext } from '../../context/TopContentProvider';
|
|
10
10
|
import { setIsAddingCategory } from '../../reducers/TopContentReducer';
|
|
@@ -41,10 +41,14 @@ function TopContentProductVersionSelector(props) {
|
|
|
41
41
|
const { request: getProducts, isFetching: isLoadingProducts, data: products, } = useFetch(productsApi.getProducts, {
|
|
42
42
|
initialData: [],
|
|
43
43
|
});
|
|
44
|
-
const { request: getProductVersions,
|
|
44
|
+
const { request: getProductVersions, data: versions } = useFetch(productsApi.getProductVersions, {
|
|
45
|
+
initialData: [],
|
|
46
|
+
postProcessor: postVersionsProcessor,
|
|
47
|
+
});
|
|
45
48
|
const [isProductOpen, setIsProductOpen] = useState(false);
|
|
46
|
-
const [isVersionOpen, setIsVersionOpen] = useState(false);
|
|
47
49
|
const [selected, setSelected] = useState(undefined);
|
|
50
|
+
const [input, setInput] = useState('');
|
|
51
|
+
const textInputRef = useRef();
|
|
48
52
|
const { selectedVersion } = props;
|
|
49
53
|
const topContentDispatch = useTopContentDispatchContext();
|
|
50
54
|
const productOptions = products === null || products === void 0 ? void 0 : products.map((p, id) => (Object.assign(Object.assign({}, p), { toString: function () {
|
|
@@ -79,46 +83,71 @@ function TopContentProductVersionSelector(props) {
|
|
|
79
83
|
const onProductClear = () => {
|
|
80
84
|
onProductChange({ name: '', id: '' });
|
|
81
85
|
setSelected(undefined);
|
|
86
|
+
setInput('');
|
|
82
87
|
};
|
|
83
|
-
const getProductOptions = (options) => {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const input = new RegExp(value, 'i');
|
|
93
|
-
const newOptions = productOptions === null || productOptions === void 0 ? void 0 : productOptions.filter((p) => input.test(p.name));
|
|
94
|
-
return getProductOptions(newOptions);
|
|
88
|
+
const getProductOptions = (options, filterValue = '') => {
|
|
89
|
+
const filteredOptions = filterValue && filterValue !== (selected === null || selected === void 0 ? void 0 : selected.name)
|
|
90
|
+
? options.filter((p) => new RegExp(filterValue, 'i').test(p.name))
|
|
91
|
+
: options;
|
|
92
|
+
if (filteredOptions.length === 0) {
|
|
93
|
+
return React.createElement(SelectOption, { key: "no-results" }, t('No results found'));
|
|
94
|
+
}
|
|
95
|
+
return filteredOptions.map((product, id) => (React.createElement(SelectOption, { key: id, value: product, className: "pf-v6-c-select__menu-wrapper", onMouseDown: (e) => onProductSelect(e, product), isSelected: (selected === null || selected === void 0 ? void 0 : selected.name) === product.name },
|
|
96
|
+
React.createElement("span", null, product.name))));
|
|
95
97
|
};
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
+
const onToggleClick = (e) => {
|
|
99
|
+
var _a;
|
|
100
|
+
e.stopPropagation();
|
|
101
|
+
setIsProductOpen((prev) => !prev);
|
|
102
|
+
(_a = textInputRef === null || textInputRef === void 0 ? void 0 : textInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
98
103
|
};
|
|
99
|
-
const onProductSelect = (
|
|
104
|
+
const onProductSelect = (e, selection) => {
|
|
105
|
+
e.preventDefault();
|
|
100
106
|
onProductChange(selection);
|
|
101
107
|
setSelected(selection);
|
|
102
|
-
|
|
108
|
+
setInput(selection.name);
|
|
109
|
+
setIsProductOpen(false);
|
|
103
110
|
};
|
|
104
|
-
const
|
|
105
|
-
|
|
111
|
+
const onChange = (e) => {
|
|
112
|
+
setInput(e.target.value);
|
|
113
|
+
return [];
|
|
106
114
|
};
|
|
107
|
-
const onVersionSelect = (
|
|
108
|
-
onVersionChange(selection);
|
|
109
|
-
onVersionToggle(false);
|
|
115
|
+
const onVersionSelect = (selection) => {
|
|
116
|
+
onVersionChange(selection.value);
|
|
110
117
|
};
|
|
111
118
|
const productLabelId = 'tc-product-dropdown-selector';
|
|
112
119
|
const versionLabelId = 'version-dropdown-selector';
|
|
120
|
+
const getSelectedDropdownOption = {
|
|
121
|
+
label: selectedVersion,
|
|
122
|
+
value: selectedVersion,
|
|
123
|
+
};
|
|
124
|
+
const getVersionOptions = (options) => {
|
|
125
|
+
return options.map((version) => ({
|
|
126
|
+
label: version,
|
|
127
|
+
value: version,
|
|
128
|
+
}));
|
|
129
|
+
};
|
|
130
|
+
const toggle = (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, variant: "typeahead", onClick: onToggleClick, isExpanded: isProductOpen, isFullWidth: true, isDisabled: isLoadingProducts, onBlur: () => {
|
|
131
|
+
setIsProductOpen(false);
|
|
132
|
+
if (!productOptions.some((p) => p.name.toLowerCase() === input.toLowerCase())) {
|
|
133
|
+
setInput(selected || '');
|
|
134
|
+
}
|
|
135
|
+
} },
|
|
136
|
+
React.createElement(TextInputGroup, { isPlain: true },
|
|
137
|
+
React.createElement(TextInputGroupMain, { value: input, onClick: onToggleClick, onChange: onChange, autoComplete: "off", innerRef: textInputRef, placeholder: t('Select a product'), role: "combobox", isExpanded: isProductOpen })),
|
|
138
|
+
!isEmpty(selected) && (React.createElement(TimesCircleIcon, { "aria-hidden": true, onClick: (e) => {
|
|
139
|
+
e.stopPropagation();
|
|
140
|
+
onProductClear();
|
|
141
|
+
}, className: "pf-v6-u-cursor-pointer pf-v6-u-mt-sm pf-v6-u-ml-sm" }))));
|
|
113
142
|
return (React.createElement("div", { className: "toolbar" },
|
|
114
143
|
React.createElement("div", { className: "toolbar-left" },
|
|
115
144
|
React.createElement("label", { htmlFor: 'tc-product-selector-dropdown-toggle' },
|
|
116
145
|
React.createElement(Trans, null, "Product")),
|
|
117
|
-
React.createElement(Select, Object.assign({
|
|
146
|
+
React.createElement(Select, Object.assign({ toggle: toggle, selected: selected, isOpen: isProductOpen, onSelect: onProductSelect }, (isLoadingProducts && { loadingVariant: 'spinner' }), { id: productLabelId, "data-tracking-id": productLabelId, "aria-label": t(productLabelId) }), getProductOptions(productOptions, input))),
|
|
118
147
|
React.createElement("div", { className: "toolbar-right" },
|
|
119
148
|
React.createElement("label", { htmlFor: "version-selector-dropdown-toggle" },
|
|
120
149
|
React.createElement(Trans, null, "Version")),
|
|
121
|
-
React.createElement(
|
|
150
|
+
React.createElement(SingleSelectDropdown, { placeholder: t('Select a version'), dataTrackingId: "case-details-status-selector", options: getVersionOptions((versions === null || versions === void 0 ? void 0 : versions.items) || []), selected: getSelectedDropdownOption, isDisabled: isEmpty(versions === null || versions === void 0 ? void 0 : versions.items), id: versionLabelId, "data-tracking-id": versionLabelId, onSelect: onVersionSelect, "aria-label": t(versionLabelId) }))));
|
|
122
151
|
}
|
|
123
152
|
TopContentProductVersionSelector.defaultProps = defaultProps;
|
|
124
153
|
export { TopContentProductVersionSelector };
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.pf-
|
|
11
|
+
.pf-v6-c-accordion .pf-v6-c-accordion-footer {
|
|
12
12
|
padding: 16px 32px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.pf-
|
|
15
|
+
.pf-v6-c-accordion .pf-v6-c-accordion__expanded-content-body {
|
|
16
16
|
.edit-solution {
|
|
17
17
|
margin-bottom: 2rem;
|
|
18
18
|
}
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
border-top: none;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
.pf-
|
|
161
|
-
.pf-
|
|
160
|
+
.pf-v6-c-table__action {
|
|
161
|
+
.pf-v6-c-dropdown__menu button.pf-m-disabled:hover {
|
|
162
162
|
cursor: not-allowed;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -168,14 +168,14 @@
|
|
|
168
168
|
padding: 0.5rem 1.2rem;
|
|
169
169
|
background-color: #f0f0f0;
|
|
170
170
|
|
|
171
|
-
.pf-
|
|
171
|
+
.pf-v6-c-pagination {
|
|
172
172
|
padding: 0;
|
|
173
173
|
background-color: transparent;
|
|
174
174
|
|
|
175
|
-
.pf-
|
|
175
|
+
.pf-v6-c-pagination__nav {
|
|
176
176
|
align-items: baseline;
|
|
177
177
|
|
|
178
|
-
.pf-
|
|
178
|
+
.pf-v6-c-pagination__nav-page-select {
|
|
179
179
|
display: flex;
|
|
180
180
|
align-items: baseline;
|
|
181
181
|
}
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
.pf-
|
|
186
|
+
.pf-v6-c-tabs__item {
|
|
187
187
|
white-space: nowrap;
|
|
188
188
|
a {
|
|
189
189
|
color: gray;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
.pf-
|
|
196
|
+
.pf-v6-c-tabs__item.pf-m-current {
|
|
197
197
|
background-color: white;
|
|
198
198
|
min-width: 200px;
|
|
199
199
|
a {
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
.pf-
|
|
204
|
+
.pf-v6-c-tab-content {
|
|
205
205
|
flex: 1;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
@@ -255,18 +255,18 @@
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
// specific overrides under manage because of a different implementation
|
|
258
|
-
.pf-
|
|
259
|
-
.pf-
|
|
258
|
+
.pf-v6-c-select {
|
|
259
|
+
.pf-v6-c-select__toggle-wrapper > form:first-child {
|
|
260
260
|
width: 100%;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
.pf-
|
|
264
|
-
.pf-
|
|
263
|
+
.pf-v6-c-select__toggle-wrapper {
|
|
264
|
+
.pf-v6-c-select__toggle-icon {
|
|
265
265
|
margin-left: 4px;
|
|
266
266
|
margin-right: 0;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
.pf-
|
|
269
|
+
.pf-v6-c-select__toggle-typeahead {
|
|
270
270
|
border-left: none;
|
|
271
271
|
border-right: none;
|
|
272
272
|
}
|
|
@@ -277,7 +277,11 @@
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
.
|
|
280
|
+
.permissions-select {
|
|
281
|
+
max-width: 80%;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.pf-v6-c-button {
|
|
281
285
|
font-size: 14px;
|
|
282
286
|
}
|
|
283
287
|
|
|
@@ -300,12 +304,12 @@
|
|
|
300
304
|
width: -webkit-fill-available;
|
|
301
305
|
}
|
|
302
306
|
|
|
303
|
-
.pf-
|
|
307
|
+
.pf-v6-c-table__action li:hover button:not(.pf-m-disabled) {
|
|
304
308
|
color: #06c;
|
|
305
309
|
}
|
|
306
310
|
|
|
307
|
-
.pf-
|
|
308
|
-
.pf-
|
|
311
|
+
.pf-v6-c-table__action li:nth-child(2) button:hover,
|
|
312
|
+
.pf-v6-c-table__action li:nth-child(3) button:hover {
|
|
309
313
|
color: #a30000;
|
|
310
314
|
}
|
|
311
315
|
|
|
@@ -1,82 +1,86 @@
|
|
|
1
1
|
// Patternfly overrides
|
|
2
2
|
|
|
3
|
-
div#top-content-performance-metric.pf-
|
|
4
|
-
.pf-
|
|
5
|
-
.pf-
|
|
3
|
+
div#top-content-performance-metric.pf-v6-c-modal-box {
|
|
4
|
+
.pf-v6-c-modal-box__body {
|
|
5
|
+
.pf-v6-c-title {
|
|
6
6
|
margin-bottom: unset;
|
|
7
7
|
}
|
|
8
8
|
.top-content-tooltip-view-metric-label {
|
|
9
9
|
color: var(--pf-v5-global--primary-color--100);
|
|
10
10
|
}
|
|
11
|
-
.pf-
|
|
11
|
+
.pf-v6-c-toggle-group__button {
|
|
12
12
|
/* Somehow below style is getting added by Patternfly which is overriding default button padding
|
|
13
|
-
* [class*="pf-
|
|
13
|
+
* [class*="pf-v6-c-"], [class*="pf-v6-c-"]::before, [class*="pf-v6-c-"]::after {
|
|
14
14
|
padding: 0;
|
|
15
15
|
margin: 0;
|
|
16
16
|
background-color: transparent;
|
|
17
17
|
*/
|
|
18
|
-
padding: var(--pf-
|
|
19
|
-
var(--pf-
|
|
18
|
+
padding: var(--pf-v6-c-toggle-group__button--PaddingBlockStart)
|
|
19
|
+
var(--pf-v6-c-toggle-group__button--PaddingInlineEnd)
|
|
20
|
+
var(--pf-v6-c-toggle-group__button--PaddingBlockEnd)
|
|
21
|
+
var(--pf-v6-c-toggle-group__button--PaddingInlineStart);
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
div#top-content-category-limit-guidelines.pf-
|
|
25
|
-
.pf-
|
|
26
|
-
.pf-
|
|
26
|
+
div#top-content-category-limit-guidelines.pf-v6-c-modal-box {
|
|
27
|
+
.pf-v6-c-modal-box__body {
|
|
28
|
+
.pf-v6-c-title {
|
|
27
29
|
margin-bottom: unset;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
div#top-content-major-version-performance-metric.pf-
|
|
33
|
-
.pf-
|
|
34
|
+
div#top-content-major-version-performance-metric.pf-v6-c-modal-box {
|
|
35
|
+
.pf-v6-c-modal-box__body {
|
|
34
36
|
overflow-x: unset;
|
|
35
37
|
overflow-y: unset;
|
|
36
|
-
.pf-
|
|
38
|
+
.pf-v6-c-title {
|
|
37
39
|
margin-bottom: unset;
|
|
38
40
|
}
|
|
39
|
-
.pf-
|
|
41
|
+
.pf-v6-c-toggle-group__button {
|
|
40
42
|
/* Somehow below style is getting added by Patternfly which is overriding default button padding
|
|
41
|
-
* [class*="pf-
|
|
43
|
+
* [class*="pf-v6-c-"], [class*="pf-v6-c-"]::before, [class*="pf-v6-c-"]::after {
|
|
42
44
|
padding: 0;
|
|
43
45
|
margin: 0;
|
|
44
46
|
background-color: transparent;
|
|
45
47
|
*/
|
|
46
|
-
padding: var(--pf-
|
|
47
|
-
var(--pf-
|
|
48
|
+
padding: var(--pf-v6-c-toggle-group__button--PaddingBlockStart)
|
|
49
|
+
var(--pf-v6-c-toggle-group__button--PaddingInlineEnd)
|
|
50
|
+
var(--pf-v6-c-toggle-group__button--PaddingBlockEnd)
|
|
51
|
+
var(--pf-v6-c-toggle-group__button--PaddingInlineStart);
|
|
48
52
|
}
|
|
49
53
|
.sticky-header {
|
|
50
54
|
position: sticky;
|
|
51
55
|
top: 0;
|
|
52
|
-
background: var(--pf-
|
|
53
|
-
z-index: 89; // As .pf-
|
|
54
|
-
padding-bottom: var(--pf-
|
|
56
|
+
background: var(--pf-v6-c-modal-box--BackgroundColor);
|
|
57
|
+
z-index: 89; // As .pf-v6-c-toggle-group__button is having z-index: var(--pf-v6-c-toggle-group__button--ZIndex)
|
|
58
|
+
padding-bottom: var(--pf-t--global--spacer--sm);
|
|
55
59
|
}
|
|
56
60
|
.content {
|
|
57
61
|
height: 30vh;
|
|
58
62
|
overflow: auto;
|
|
59
63
|
}
|
|
60
64
|
.panel-body {
|
|
61
|
-
padding: var(--pf-
|
|
65
|
+
padding: var(--pf-t--global--spacer--md);
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
// Overrides performance metrics modal font weight
|
|
67
71
|
div.performance-metrics-modal {
|
|
68
|
-
div.pf-
|
|
72
|
+
div.pf-v6-c-modal-box__body {
|
|
69
73
|
div.sticky-header {
|
|
70
|
-
div.pf-
|
|
74
|
+
div.pf-v6-l-flex.pf-m-justify-content-space-between {
|
|
71
75
|
// For versions dropdown
|
|
72
|
-
div.pf-
|
|
73
|
-
div.pf-
|
|
76
|
+
div.pf-v6-u-w-50.pf-v6-u-pr-md {
|
|
77
|
+
div.pf-v6-u-font-weight-bold {
|
|
74
78
|
font-weight: 600 !important;
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
81
|
// For categories dropdown
|
|
78
|
-
div.pf-
|
|
79
|
-
div.pf-
|
|
82
|
+
div.pf-v6-u-w-50.pf-v6-u-pl-md {
|
|
83
|
+
div.pf-v6-u-font-weight-bold {
|
|
80
84
|
font-weight: 600 !important;
|
|
81
85
|
}
|
|
82
86
|
}
|
|
@@ -85,13 +89,13 @@ div.performance-metrics-modal {
|
|
|
85
89
|
|
|
86
90
|
// To override font weight on the accordion text in performance metrics modal - PCM-11644
|
|
87
91
|
div.content {
|
|
88
|
-
div.pf-
|
|
89
|
-
div.pf-
|
|
90
|
-
div.pf-
|
|
91
|
-
dl.pf-
|
|
92
|
+
div.pf-v6-c-panel.pf-m-bordered {
|
|
93
|
+
div.pf-v6-c-panel__main {
|
|
94
|
+
div.pf-v6-c-panel__main-body {
|
|
95
|
+
dl.pf-v6-c-accordion.pf-m-bordered {
|
|
92
96
|
dt {
|
|
93
97
|
button {
|
|
94
|
-
span.pf-
|
|
98
|
+
span.pf-v6-c-accordion__toggle-text {
|
|
95
99
|
span {
|
|
96
100
|
font-weight: 500 !important;
|
|
97
101
|
}
|
|
@@ -107,14 +111,14 @@ div.performance-metrics-modal {
|
|
|
107
111
|
}
|
|
108
112
|
|
|
109
113
|
#top-content-suggestion {
|
|
110
|
-
.pf-
|
|
114
|
+
.pf-v6-c-expandable-section__content {
|
|
111
115
|
border: unset;
|
|
112
116
|
}
|
|
113
117
|
.card-hint {
|
|
114
118
|
background-color: var(--pf-v5-global--BackgroundColor--200);
|
|
115
119
|
}
|
|
116
120
|
.card-body {
|
|
117
|
-
padding: var(--pf-
|
|
121
|
+
padding: var(--pf-t--global--spacer--md);
|
|
118
122
|
}
|
|
119
123
|
.hint-title {
|
|
120
124
|
color: var(--pf-v5-global--primary-color--100);
|
|
@@ -129,53 +133,53 @@ div.performance-metrics-modal {
|
|
|
129
133
|
z-index: 9;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
|
-
.pf-
|
|
136
|
+
.pf-v6-c-accordion__expandable-content {
|
|
133
137
|
margin: 0;
|
|
134
138
|
}
|
|
135
139
|
|
|
136
|
-
div.pf-
|
|
137
|
-
span.pf-
|
|
140
|
+
div.pf-v6-c-pagination__nav-page-select {
|
|
141
|
+
span.pf-v6-c-form-control {
|
|
138
142
|
background-color: white;
|
|
139
143
|
}
|
|
140
144
|
}
|
|
141
145
|
|
|
142
|
-
.pf-
|
|
146
|
+
.pf-v6-c-select__menu {
|
|
143
147
|
padding: 0;
|
|
144
148
|
}
|
|
145
149
|
|
|
146
|
-
.pf-
|
|
150
|
+
.pf-v6-c-form-control.pf-m-disabled {
|
|
147
151
|
background-color: #e0e0e0;
|
|
148
152
|
border-bottom: 1px solid black;
|
|
149
153
|
}
|
|
150
154
|
|
|
151
|
-
.pf-
|
|
155
|
+
.pf-v6-c-form-control.pf-m-disabled.issue-title-disabled {
|
|
152
156
|
border: none !important;
|
|
153
157
|
}
|
|
154
158
|
|
|
155
|
-
.pf-
|
|
159
|
+
.pf-v6-c-chip {
|
|
156
160
|
.pf-v5-svg {
|
|
157
161
|
font-size: 12px;
|
|
158
162
|
}
|
|
159
163
|
}
|
|
160
164
|
|
|
161
|
-
.pf-
|
|
165
|
+
.pf-v6-c-switch__label {
|
|
162
166
|
color: black !important;
|
|
163
167
|
font-size: 16px;
|
|
164
168
|
font-weight: 400;
|
|
165
169
|
outline: none !important;
|
|
166
170
|
}
|
|
167
171
|
|
|
168
|
-
.pf-
|
|
172
|
+
.pf-v6-c-menu__content {
|
|
169
173
|
width: 100%;
|
|
170
174
|
}
|
|
171
175
|
|
|
172
|
-
.pf-
|
|
176
|
+
.pf-v6-c-accordion .pf-v6-c-accordion__toggle {
|
|
173
177
|
padding: 1rem !important;
|
|
174
178
|
}
|
|
175
179
|
|
|
176
|
-
.pf-
|
|
180
|
+
.pf-v6-c-chip-group__list {
|
|
177
181
|
padding: 0;
|
|
178
|
-
.pf-
|
|
182
|
+
.pf-v6-c-chip-group__list-item {
|
|
179
183
|
margin: 0;
|
|
180
184
|
}
|
|
181
185
|
}
|
package/lib/esm/scss/index.scss
CHANGED
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
min-width: 0;
|
|
14
14
|
background-color: #ededed;
|
|
15
15
|
|
|
16
|
-
& > section.pf-
|
|
16
|
+
& > section.pf-v6-c-tab-content {
|
|
17
17
|
padding: 3rem;
|
|
18
18
|
background-color: #fff;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
.pf-
|
|
23
|
-
.pf-
|
|
24
|
-
.pf-
|
|
22
|
+
.pf-v6-c-popover {
|
|
23
|
+
.pf-v6-c-popover__content {
|
|
24
|
+
.pf-v6-c-popover__body {
|
|
25
25
|
.top-content-tooltip-view-metric-label {
|
|
26
26
|
color: var(--pf-v5-global--primary-color--100);
|
|
27
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.33",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@cee-eng/hydrajs": "4.18.57",
|
|
49
|
-
"@patternfly/patternfly": "
|
|
50
|
-
"@patternfly/react-core": "
|
|
51
|
-
"@patternfly/react-table": "
|
|
49
|
+
"@patternfly/patternfly": "6.2.1",
|
|
50
|
+
"@patternfly/react-core": "6.2.1",
|
|
51
|
+
"@patternfly/react-table": "6.2.1",
|
|
52
52
|
"lodash": ">=4.17.15",
|
|
53
53
|
"mark.js": "^8.11.1",
|
|
54
54
|
"react": "18.2.0",
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@cee-eng/hydrajs": "4.18.57",
|
|
79
|
-
"@patternfly/patternfly": "
|
|
80
|
-
"@patternfly/react-core": "
|
|
81
|
-
"@patternfly/react-table": "
|
|
82
|
-
"@rh-support/components": "2.5.
|
|
79
|
+
"@patternfly/patternfly": "6.2.1",
|
|
80
|
+
"@patternfly/react-core": "6.2.1",
|
|
81
|
+
"@patternfly/react-table": "6.2.1",
|
|
82
|
+
"@rh-support/components": "2.5.27",
|
|
83
83
|
"@rh-support/configs": "2.0.21",
|
|
84
|
-
"@rh-support/react-context": "2.5.
|
|
84
|
+
"@rh-support/react-context": "2.5.29",
|
|
85
85
|
"@rh-support/types": "2.0.5",
|
|
86
|
-
"@rh-support/user-permissions": "2.5.
|
|
87
|
-
"@rh-support/utils": "2.5.
|
|
86
|
+
"@rh-support/user-permissions": "2.5.18",
|
|
87
|
+
"@rh-support/utils": "2.5.17",
|
|
88
88
|
"@types/react-beautiful-dnd": "^13.0.0",
|
|
89
89
|
"i18next": "^23.15.0",
|
|
90
90
|
"lodash": ">=4.17.15",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"defaults and supports es6-module",
|
|
104
104
|
"maintained node versions"
|
|
105
105
|
],
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "3f2c96a3a976d37cffe4052f7c7bfefbf1018949"
|
|
107
107
|
}
|