@rh-support/manage 2.4.10-beta.6 → 2.5.1
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/README.md +2 -0
- package/lib/esm/Manage.d.ts +2 -3
- package/lib/esm/Manage.d.ts.map +1 -1
- package/lib/esm/Manage.js +4 -10
- package/lib/esm/ManageTabs.d.ts +3 -1
- package/lib/esm/ManageTabs.d.ts.map +1 -1
- package/lib/esm/ManageTabs.js +54 -51
- package/lib/esm/Routes.d.ts +2 -0
- package/lib/esm/Routes.d.ts.map +1 -1
- package/lib/esm/Routes.js +21 -9
- package/lib/esm/components/Configs/ConfigInLineEdit.d.ts +2 -1
- package/lib/esm/components/Configs/ConfigInLineEdit.d.ts.map +1 -1
- package/lib/esm/components/Configs/ConfigSwitch.d.ts +2 -1
- package/lib/esm/components/Configs/ConfigSwitch.d.ts.map +1 -1
- package/lib/esm/components/Configs/ConfigSwitch.js +1 -1
- package/lib/esm/components/Configs/ConfigsTable.d.ts +2 -1
- package/lib/esm/components/Configs/ConfigsTable.d.ts.map +1 -1
- package/lib/esm/components/Configs/ConfigsTable.js +4 -3
- package/lib/esm/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.d.ts +2 -1
- package/lib/esm/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.d.ts.map +1 -1
- package/lib/esm/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.js +2 -1
- package/lib/esm/components/Groups/GroupSelect/GroupSelect.d.ts +2 -1
- package/lib/esm/components/Groups/GroupSelect/GroupSelect.d.ts.map +1 -1
- package/lib/esm/components/Groups/GroupSelect/GroupSelect.js +23 -11
- package/lib/esm/components/Groups/GroupUserPermissionsSelect/GroupUserPermissionsSelect.d.ts +2 -1
- package/lib/esm/components/Groups/GroupUserPermissionsSelect/GroupUserPermissionsSelect.d.ts.map +1 -1
- package/lib/esm/components/Groups/GroupUserPermissionsSelect/GroupUserPermissionsSelect.js +1 -1
- package/lib/esm/components/Groups/ManageGroupUsers/ManageGroupUsers.d.ts +2 -1
- package/lib/esm/components/Groups/ManageGroupUsers/ManageGroupUsers.d.ts.map +1 -1
- package/lib/esm/components/Groups/ManageGroupUsers/ManageGroupUsers.js +13 -11
- package/lib/esm/components/ManageBookmarkedAccountsTab/AddEditBookmarkModal.d.ts +2 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/AddEditBookmarkModal.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/AddEditBookmarkModal.js +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.d.ts +2 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.js +15 -7
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkGroupSelector.d.ts +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkGroupSelector.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkGroupSelector.js +8 -5
- package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.d.ts +2 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.js +14 -11
- package/lib/esm/components/ManageExpiredContents/ExpiredContentCategory.d.ts +9 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentCategory.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentCategory.js +31 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentHeader.d.ts +3 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentHeader.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentHeader.js +9 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManagement.d.ts +3 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManagement.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManagement.js +13 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.d.ts +3 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.js +68 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItem.d.ts +9 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItem.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItem.js +77 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.d.ts +14 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.js +179 -0
- package/lib/esm/components/ManageExpiredContents/index.d.ts +2 -0
- package/lib/esm/components/ManageExpiredContents/index.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/index.js +1 -0
- package/lib/esm/components/ManagePartnerships/NonOrgCustomerInfoModal.d.ts +2 -1
- package/lib/esm/components/ManagePartnerships/NonOrgCustomerInfoModal.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/PartnershipsList.d.ts +2 -1
- package/lib/esm/components/ManagePartnerships/PartnershipsList.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/PartnershipsList.js +3 -3
- package/lib/esm/components/ManagePartnerships/PartnershipsTermsModal.d.ts +2 -1
- package/lib/esm/components/ManagePartnerships/PartnershipsTermsModal.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/PartnershipsTermsModal.js +42 -21
- package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.d.ts +2 -1
- package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.js +15 -13
- package/lib/esm/components/ManagePartnerships/Requests.d.ts +2 -1
- package/lib/esm/components/ManagePartnerships/Requests.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/Requests.js +25 -5
- package/lib/esm/components/ManagePartnerships/index.d.ts +2 -1
- package/lib/esm/components/ManagePartnerships/index.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/index.js +4 -3
- package/lib/esm/components/ManagePreferences/ManagePreferences.d.ts +2 -1
- package/lib/esm/components/ManagePreferences/ManagePreferences.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/ManagePreferences.js +1 -2
- package/lib/esm/components/ManagePreferences/Preferences.d.ts +2 -1
- package/lib/esm/components/ManagePreferences/Preferences.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/PreferencesBody.d.ts +2 -1
- package/lib/esm/components/ManagePreferences/PreferencesBody.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/PreferencesBody.js +6 -2
- package/lib/esm/components/ManagePreferences/PreferencesHeader.d.ts +2 -1
- package/lib/esm/components/ManagePreferences/PreferencesHeader.d.ts.map +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 +5 -3
- package/lib/esm/components/ManagePreferences/components/PreferenceSwitch.d.ts +2 -1
- package/lib/esm/components/ManagePreferences/components/PreferenceSwitch.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/components/PreferenceSwitch.js +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesACL.d.ts +3 -0
- package/lib/esm/components/ManagePreferences/sections/PreferencesACL.d.ts.map +1 -0
- package/lib/esm/components/ManagePreferences/sections/PreferencesACL.js +62 -0
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseCreate.d.ts +2 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseCreate.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseCreate.js +13 -2
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseSearch.d.ts +2 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseSearch.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseSearch.js +6 -4
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.d.ts +2 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.js +12 -11
- package/lib/esm/components/ManageTable/ManageTable.d.ts +1 -1
- package/lib/esm/components/ManageTable/ManageTable.d.ts.map +1 -1
- package/lib/esm/components/ManageTable/ManageTable.js +7 -8
- package/lib/esm/components/ManageTags/TagsManagement.d.ts +3 -0
- package/lib/esm/components/ManageTags/TagsManagement.d.ts.map +1 -0
- package/lib/esm/components/ManageTags/TagsManagement.js +11 -0
- package/lib/esm/components/ManageTags/TagsManager.d.ts +3 -0
- package/lib/esm/components/ManageTags/TagsManager.d.ts.map +1 -0
- package/lib/esm/components/ManageTags/TagsManager.js +261 -0
- package/lib/esm/components/ManageTags/index.d.ts +2 -0
- package/lib/esm/components/ManageTags/index.d.ts.map +1 -0
- package/lib/esm/components/ManageTags/index.js +1 -0
- package/lib/esm/components/NotificationEmails/NotificationEmailsModal.d.ts +2 -1
- package/lib/esm/components/NotificationEmails/NotificationEmailsModal.d.ts.map +1 -1
- package/lib/esm/components/NotificationEmails/NotificationEmailsModal.js +32 -7
- package/lib/esm/components/NotificationEmails/index.d.ts +2 -1
- package/lib/esm/components/NotificationEmails/index.d.ts.map +1 -1
- package/lib/esm/components/NotificationEmails/index.js +4 -4
- package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimit.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimit.js +3 -2
- package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimitGuidelines.js +1 -1
- 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 +2 -2
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetrics.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetrics.js +3 -3
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.d.ts +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.js +3 -3
- package/lib/esm/components/TopContentManagement/ContentUsage/VersionPerformanceMetrics.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/VersionPerformanceMetrics.js +4 -4
- package/lib/esm/components/TopContentManagement/NoTopContentFound.d.ts +2 -1
- package/lib/esm/components/TopContentManagement/NoTopContentFound.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/NoTopContentFound.js +14 -15
- package/lib/esm/components/TopContentManagement/TopContent.d.ts +2 -1
- package/lib/esm/components/TopContentManagement/TopContent.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.d.ts +2 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.js +8 -3
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.d.ts +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.js +3 -2
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategoryNew.d.ts +2 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategoryNew.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.js +3 -3
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.d.ts +6 -2
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.js +178 -59
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItemLink.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.d.ts +2 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.js +60 -16
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestion.d.ts +1 -0
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestion.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestion.js +35 -10
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHint.js +3 -3
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHintAccept.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHintAccept.js +26 -20
- package/lib/esm/components/TopContentManagement/TopContentHeader.d.ts +2 -1
- package/lib/esm/components/TopContentManagement/TopContentHeader.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentHeader.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentManagement.d.ts +2 -1
- package/lib/esm/components/TopContentManagement/TopContentManagement.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentManagement.js +4 -3
- package/lib/esm/components/TopContentManagement/TopContentProductVersionSelector.d.ts +2 -1
- package/lib/esm/components/TopContentManagement/TopContentProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentProductVersionSelector.js +6 -6
- package/lib/esm/context/ExpiredContentContextProvider.d.ts +8 -0
- package/lib/esm/context/ExpiredContentContextProvider.d.ts.map +1 -0
- package/lib/esm/context/ExpiredContentContextProvider.js +10 -0
- package/lib/esm/context/ManagePartnershipsProvider.d.ts +1 -1
- package/lib/esm/context/ManagePartnershipsProvider.d.ts.map +1 -1
- package/lib/esm/context/TagManagementContextProvider.d.ts +8 -0
- package/lib/esm/context/TagManagementContextProvider.d.ts.map +1 -0
- package/lib/esm/context/TagManagementContextProvider.js +10 -0
- package/lib/esm/context/TopContentProvider.d.ts +1 -1
- package/lib/esm/context/TopContentProvider.d.ts.map +1 -1
- package/lib/esm/context/TopContentProvider.js +1 -0
- package/lib/esm/hooks/useUserPreferences.d.ts +13 -12
- package/lib/esm/hooks/useUserPreferences.d.ts.map +1 -1
- package/lib/esm/hooks/useUserPreferences.js +0 -1
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/reducers/ExpiredContentReducer.d.ts +36 -0
- package/lib/esm/reducers/ExpiredContentReducer.d.ts.map +1 -0
- package/lib/esm/reducers/ExpiredContentReducer.js +207 -0
- package/lib/esm/reducers/ManagePartnershipsReducer.d.ts +2 -2
- package/lib/esm/reducers/ManagePartnershipsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/TagManagmentReducer.d.ts +27 -0
- package/lib/esm/reducers/TagManagmentReducer.d.ts.map +1 -0
- package/lib/esm/reducers/TagManagmentReducer.js +144 -0
- package/lib/esm/reducers/TopContentHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/TopContentHelpers.js +4 -4
- package/lib/esm/reducers/TopContentReducer.d.ts +12 -7
- package/lib/esm/reducers/TopContentReducer.d.ts.map +1 -1
- package/lib/esm/reducers/TopContentReducer.js +61 -23
- package/lib/esm/scss/_main.scss +87 -55
- package/lib/esm/scss/_pf-overrides.scss +181 -0
- package/lib/esm/scss/index.scss +7 -7
- package/package.json +42 -42
- package/lib/esm/ManageTab.d.ts +0 -8
- package/lib/esm/ManageTab.d.ts.map +0 -1
- package/lib/esm/ManageTab.js +0 -12
- package/lib/esm/scss/_pf4-overrides.scss +0 -132
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { pcm } from '@cee-eng/hydrajs';
|
|
11
11
|
import { getApiResourceObject, getVersion } from '@rh-support/utils';
|
|
12
|
+
import { isEmpty } from 'lodash';
|
|
12
13
|
import cloneDeep from 'lodash/cloneDeep';
|
|
13
14
|
import { intialTopContentContext } from '../context/TopContentProvider';
|
|
14
15
|
import { getContentUrls } from './TopContentHelpers';
|
|
@@ -38,9 +39,10 @@ export var TopContentReducerConstants;
|
|
|
38
39
|
TopContentReducerConstants["resetDuplicatUrls"] = "resetDuplicatUrls";
|
|
39
40
|
TopContentReducerConstants["getTopContentResourceUsage"] = "getTopContentResourceUsage";
|
|
40
41
|
TopContentReducerConstants["setTopContentSuggestions"] = "setTopContentSuggestions";
|
|
42
|
+
TopContentReducerConstants["updateFilteredTags"] = "updateFilteredTags";
|
|
41
43
|
})(TopContentReducerConstants || (TopContentReducerConstants = {}));
|
|
42
44
|
export const TopContentReducer = (pState, action) => {
|
|
43
|
-
var _a, _b;
|
|
45
|
+
var _a, _b, _c;
|
|
44
46
|
switch (action.type) {
|
|
45
47
|
case TopContentReducerConstants.resetContentWithSelectedProduct: {
|
|
46
48
|
return Object.assign(Object.assign({}, intialTopContentContext), { selectedProduct: Object.assign({}, action.payload.selectedProduct) });
|
|
@@ -78,6 +80,9 @@ export const TopContentReducer = (pState, action) => {
|
|
|
78
80
|
case TopContentReducerConstants.setTopContentSuggestions: {
|
|
79
81
|
return Object.assign(Object.assign({}, pState), { suggestion: (_b = action.payload) === null || _b === void 0 ? void 0 : _b.suggestion });
|
|
80
82
|
}
|
|
83
|
+
case TopContentReducerConstants.updateFilteredTags: {
|
|
84
|
+
return Object.assign(Object.assign({}, pState), { filteredTags: (_c = action.payload) === null || _c === void 0 ? void 0 : _c.filteredTags });
|
|
85
|
+
}
|
|
81
86
|
default: {
|
|
82
87
|
return pState;
|
|
83
88
|
}
|
|
@@ -306,7 +311,7 @@ export const removeTopContent = (dispatch, topContentEditState, categoryId, i) =
|
|
|
306
311
|
}
|
|
307
312
|
else if (cat.id === categoryId) {
|
|
308
313
|
// an added item in a category is removed
|
|
309
|
-
cat.content = cat.content.filter((item
|
|
314
|
+
cat.content = cat.content.filter((item) => item.mode !== ContentMode.ADD);
|
|
310
315
|
}
|
|
311
316
|
});
|
|
312
317
|
dispatch({
|
|
@@ -314,7 +319,7 @@ export const removeTopContent = (dispatch, topContentEditState, categoryId, i) =
|
|
|
314
319
|
payload: { topContentEditState },
|
|
315
320
|
});
|
|
316
321
|
};
|
|
317
|
-
export const saveAddedNewSectionContents = (
|
|
322
|
+
export const saveAddedNewSectionContents = (dispatch_1, topContentEditState_1, selectedCategory_1, selectedProduct_1, selectedVersion_1, isCatOnlyForMajorVersion_1, newContent_1, ...args_1) => __awaiter(void 0, [dispatch_1, topContentEditState_1, selectedCategory_1, selectedProduct_1, selectedVersion_1, isCatOnlyForMajorVersion_1, newContent_1, ...args_1], void 0, function* (dispatch, topContentEditState, selectedCategory, selectedProduct, selectedVersion, isCatOnlyForMajorVersion, newContent, isCreatingNewSet = false) {
|
|
318
323
|
const versionObj = getVersion(selectedVersion);
|
|
319
324
|
const createMasterIdParam = {
|
|
320
325
|
productId: selectedProduct.id,
|
|
@@ -322,19 +327,25 @@ export const saveAddedNewSectionContents = (dispatch, topContentEditState, selec
|
|
|
322
327
|
minorVersion: isCatOnlyForMajorVersion ? null : versionObj.minor,
|
|
323
328
|
isActive: 1,
|
|
324
329
|
};
|
|
325
|
-
// create the category for version (major/minor)
|
|
326
|
-
const result = yield pcm.topContent.postTopContentMaster([createMasterIdParam]);
|
|
327
|
-
const topContentMasterDataId = result.topContentMasters[0].id;
|
|
328
|
-
const toAdd = {
|
|
329
|
-
topContentMasterDataId,
|
|
330
|
-
contentTitle: newContent.contentTitle,
|
|
331
|
-
contentUrl: newContent.contentUrl,
|
|
332
|
-
categoryName: selectedCategory.categoryName,
|
|
333
|
-
categoryId: selectedCategory.id,
|
|
334
|
-
isActive: 1,
|
|
335
|
-
};
|
|
336
330
|
try {
|
|
331
|
+
// create the category for version (major/minor)
|
|
332
|
+
const result = yield pcm.topContent.postTopContentMaster([createMasterIdParam]);
|
|
333
|
+
const topContentMasterDataId = result.topContentMasters[0].id;
|
|
334
|
+
const toAdd = {
|
|
335
|
+
topContentMasterDataId,
|
|
336
|
+
contentTitle: newContent.contentTitle,
|
|
337
|
+
contentUrl: newContent.contentUrl,
|
|
338
|
+
expiryDate: newContent.expiryDate,
|
|
339
|
+
categoryName: selectedCategory.categoryName,
|
|
340
|
+
categoryId: selectedCategory.id,
|
|
341
|
+
isActive: 1,
|
|
342
|
+
};
|
|
337
343
|
const res = yield pcm.topContent.postTopContent({ topContents: [toAdd] });
|
|
344
|
+
if (!isEmpty(newContent.tagList)) {
|
|
345
|
+
yield pcm.topContentTag.updateTagsOfTopContent({
|
|
346
|
+
topContents: [{ id: res.topContents[0].id, tagList: newContent.tagList }],
|
|
347
|
+
});
|
|
348
|
+
}
|
|
338
349
|
const newSavedContent = res.topContents[0];
|
|
339
350
|
const oldCat = {
|
|
340
351
|
id: -1,
|
|
@@ -359,6 +370,7 @@ export const saveAddedNewSectionContents = (dispatch, topContentEditState, selec
|
|
|
359
370
|
contentUrls: getContentUrls(topContentEditState),
|
|
360
371
|
},
|
|
361
372
|
});
|
|
373
|
+
return res;
|
|
362
374
|
}
|
|
363
375
|
catch (e) {
|
|
364
376
|
console.log(e);
|
|
@@ -372,14 +384,21 @@ export const saveAddToTopContent = (dispatch, topContentEditState, id, categoryI
|
|
|
372
384
|
const toAdd = {
|
|
373
385
|
categoryName: categoryToBeSave.categoryName,
|
|
374
386
|
categoryId,
|
|
375
|
-
topContentMasterDataId: categoryToBeSave.topContentMasterDataId,
|
|
387
|
+
topContentMasterDataId: categoryToBeSave === null || categoryToBeSave === void 0 ? void 0 : categoryToBeSave.topContentMasterDataId,
|
|
376
388
|
contentTitle: content.contentTitle,
|
|
377
389
|
contentUrl: content.contentUrl,
|
|
378
390
|
contentRank: index,
|
|
391
|
+
expiryDate: content.expiryDate,
|
|
379
392
|
isActive: 1,
|
|
380
393
|
};
|
|
381
394
|
const res = yield pcm.topContent.postTopContent({ topContents: [toAdd] });
|
|
382
|
-
|
|
395
|
+
if (!isEmpty(content.tagList)) {
|
|
396
|
+
yield pcm.topContentTag.updateTagsOfTopContent({
|
|
397
|
+
topContents: [{ id: res.topContents[0].id, tagList: content.tagList }],
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
const newTopContentEditState = [...topContentEditState];
|
|
401
|
+
newTopContentEditState.forEach((cat) => {
|
|
383
402
|
var _a, _b, _c, _d, _e, _f;
|
|
384
403
|
if (cat.id === id) {
|
|
385
404
|
if (index === -1) {
|
|
@@ -389,7 +408,11 @@ export const saveAddToTopContent = (dispatch, topContentEditState, id, categoryI
|
|
|
389
408
|
}
|
|
390
409
|
else {
|
|
391
410
|
// creating a new top content
|
|
392
|
-
|
|
411
|
+
const newContent = cat.content.find((content) => content.mode === ContentMode.ADD);
|
|
412
|
+
if (!isEmpty(newContent)) {
|
|
413
|
+
const newContentIndex = cat.content.findIndex((content) => content.mode === ContentMode.ADD);
|
|
414
|
+
cat.content[newContentIndex] = Object.assign(Object.assign({}, newContent), { mode: ContentMode.INITIAL, contentTitle: content.contentTitle, contentUrl: content.contentUrl, topContentId: (_d = res === null || res === void 0 ? void 0 : res.topContents[0]) === null || _d === void 0 ? void 0 : _d.id, createdBy: (_e = res === null || res === void 0 ? void 0 : res.topContents[0]) === null || _e === void 0 ? void 0 : _e.createdBy, createdOn: (_f = res === null || res === void 0 ? void 0 : res.topContents[0]) === null || _f === void 0 ? void 0 : _f.createdOn, tags: content.tags });
|
|
415
|
+
}
|
|
393
416
|
}
|
|
394
417
|
}
|
|
395
418
|
});
|
|
@@ -397,11 +420,12 @@ export const saveAddToTopContent = (dispatch, topContentEditState, id, categoryI
|
|
|
397
420
|
dispatch({
|
|
398
421
|
type: TopContentReducerConstants.changeTopContentStateOnSave,
|
|
399
422
|
payload: {
|
|
400
|
-
topContentEditState,
|
|
423
|
+
topContentEditState: newTopContentEditState,
|
|
401
424
|
topContentResponse: getApiResourceObject(cloneDeep(topContentEditState)),
|
|
402
425
|
contentUrls: getContentUrls(topContentEditState),
|
|
403
426
|
},
|
|
404
427
|
});
|
|
428
|
+
return res;
|
|
405
429
|
}
|
|
406
430
|
catch (e) {
|
|
407
431
|
console.log(e);
|
|
@@ -409,19 +433,27 @@ export const saveAddToTopContent = (dispatch, topContentEditState, id, categoryI
|
|
|
409
433
|
}
|
|
410
434
|
});
|
|
411
435
|
// user saves content updates
|
|
412
|
-
export const saveChangeInCategoryContent = (dispatch, topContentEditState, categoryId, content,
|
|
436
|
+
export const saveChangeInCategoryContent = (dispatch, topContentEditState, categoryId, content, deletedTags) => __awaiter(void 0, void 0, void 0, function* () {
|
|
413
437
|
const toUpdate = {
|
|
414
438
|
id: content.topContentId,
|
|
415
439
|
contentTitle: content.contentTitle,
|
|
416
440
|
contentUrl: content.contentUrl,
|
|
417
441
|
contentRank: content.contentRank,
|
|
442
|
+
tagList: content.tagList, // list of new tagIds which needs to be added in content
|
|
443
|
+
expiryDate: content.expiryDate,
|
|
418
444
|
isActive: 1,
|
|
419
445
|
};
|
|
420
446
|
try {
|
|
447
|
+
if (deletedTags && !isEmpty(deletedTags)) {
|
|
448
|
+
yield Promise.all(deletedTags.map((t) => pcm.topContentTag.deleteTagFromTopContent(content.topContentId, t)));
|
|
449
|
+
}
|
|
421
450
|
const updatedContent = yield pcm.topContent.patchTopContent({ topContents: [toUpdate] });
|
|
422
451
|
topContentEditState.forEach((cat) => {
|
|
423
452
|
if (cat.categoryId === categoryId) {
|
|
424
|
-
|
|
453
|
+
const index = cat.content.findIndex((c) => c.topContentId === content.topContentId);
|
|
454
|
+
if (index !== -1) {
|
|
455
|
+
cat.content[index] = Object.assign(Object.assign({}, cat.content[index]), { mode: ContentMode.INITIAL, contentTitle: content.contentTitle, contentUrl: content.contentUrl, updatedBy: updatedContent.topContents[0].updatedBy, updatedOn: updatedContent.topContents[0].updatedOn, tags: content.tags, expiryDate: content.expiryDate });
|
|
456
|
+
}
|
|
425
457
|
}
|
|
426
458
|
});
|
|
427
459
|
// We need to clone deep current state to re-render and re-calculate top content resource usage calculations
|
|
@@ -535,6 +567,12 @@ export const resetDuplicatUrls = (dispatch) => {
|
|
|
535
567
|
payload: { contentUrls: {} },
|
|
536
568
|
});
|
|
537
569
|
};
|
|
570
|
+
export const setFilteredTags = (dispatch, tags) => {
|
|
571
|
+
dispatch({
|
|
572
|
+
type: TopContentReducerConstants.updateFilteredTags,
|
|
573
|
+
payload: { filteredTags: tags },
|
|
574
|
+
});
|
|
575
|
+
};
|
|
538
576
|
/**
|
|
539
577
|
* This function is used for to get top content suggestions from server
|
|
540
578
|
* @param dispatch TopContentReducerDispatchType
|
|
@@ -570,11 +608,11 @@ export const fetchTopContentSuggestions = (dispatch, productName, version) => __
|
|
|
570
608
|
* @param suggestionId number
|
|
571
609
|
*/
|
|
572
610
|
export const deleteTopContentSuggestion = (dispatch, suggestion, suggestionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
573
|
-
var
|
|
611
|
+
var _a, _b;
|
|
574
612
|
try {
|
|
575
613
|
yield pcm.topContent.deleteTopContentSuggestion(suggestionId);
|
|
576
|
-
suggestion.linkedResources = (
|
|
577
|
-
suggestion.linkedResourcesCount = (
|
|
614
|
+
suggestion.linkedResources = (_a = suggestion.linkedResources) === null || _a === void 0 ? void 0 : _a.filter((resource) => resource.id !== suggestionId);
|
|
615
|
+
suggestion.linkedResourcesCount = (_b = suggestion.linkedResources) === null || _b === void 0 ? void 0 : _b.length;
|
|
578
616
|
dispatch({
|
|
579
617
|
type: TopContentReducerConstants.setTopContentSuggestions,
|
|
580
618
|
payload: { suggestion },
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -8,15 +8,11 @@
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.pf-c-accordion .pf-
|
|
12
|
-
list-style-type: disc;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.pf-c-accordion .pf-c-accordion-footer {
|
|
11
|
+
.pf-v5-c-accordion .pf-v5-c-accordion-footer {
|
|
16
12
|
padding: 16px 32px;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
|
-
.pf-c-accordion .pf-c-accordion__expanded-content-body {
|
|
15
|
+
.pf-v5-c-accordion .pf-v5-c-accordion__expanded-content-body {
|
|
20
16
|
.edit-solution {
|
|
21
17
|
margin-bottom: 2rem;
|
|
22
18
|
}
|
|
@@ -29,33 +25,12 @@
|
|
|
29
25
|
flex-direction: row;
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
button {
|
|
33
|
-
margin-left: 1rem;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
28
|
&.add-new-category {
|
|
37
29
|
margin-bottom: 2rem;
|
|
38
30
|
}
|
|
39
31
|
}
|
|
40
32
|
}
|
|
41
33
|
|
|
42
|
-
.pf-c-accordion .pf-c-accordion__expanded-content-body .pf-c-accordion__expanded-content-footer {
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: row;
|
|
45
|
-
|
|
46
|
-
.content-actions {
|
|
47
|
-
margin-left: auto;
|
|
48
|
-
|
|
49
|
-
& > * {
|
|
50
|
-
margin-right: 0.5rem;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
& > *:last-child {
|
|
54
|
-
margin-right: 0;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
34
|
.manage {
|
|
60
35
|
header {
|
|
61
36
|
margin-bottom: 1.3rem;
|
|
@@ -66,10 +41,15 @@
|
|
|
66
41
|
display: flex;
|
|
67
42
|
-ms-flex-direction: column;
|
|
68
43
|
flex-direction: column;
|
|
44
|
+
flex-wrap: wrap;
|
|
69
45
|
padding: 1rem 1.2rem;
|
|
70
46
|
background-color: #f0f0f0;
|
|
71
47
|
border: 1px solid #d2d2d2;
|
|
72
48
|
|
|
49
|
+
.toolbar-content {
|
|
50
|
+
width: 49%;
|
|
51
|
+
}
|
|
52
|
+
|
|
73
53
|
label {
|
|
74
54
|
font-size: 14px;
|
|
75
55
|
margin-bottom: 0;
|
|
@@ -90,6 +70,20 @@
|
|
|
90
70
|
width: 100%;
|
|
91
71
|
// max-width: 440px;
|
|
92
72
|
}
|
|
73
|
+
|
|
74
|
+
.group-name-select {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
width: 100%;
|
|
78
|
+
|
|
79
|
+
.group-name-buttons {
|
|
80
|
+
display: flex;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.form-instructions.form-invalid {
|
|
84
|
+
margin: 0 !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
.toolbar-right {
|
|
@@ -146,10 +140,6 @@
|
|
|
146
140
|
}
|
|
147
141
|
}
|
|
148
142
|
|
|
149
|
-
.panels {
|
|
150
|
-
width: 100%;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
143
|
.create-category-link {
|
|
154
144
|
padding: 0;
|
|
155
145
|
}
|
|
@@ -158,14 +148,6 @@
|
|
|
158
148
|
margin-bottom: 1rem;
|
|
159
149
|
}
|
|
160
150
|
|
|
161
|
-
[role='tabpanel'] {
|
|
162
|
-
background-color: #fff !important;
|
|
163
|
-
|
|
164
|
-
& > * {
|
|
165
|
-
padding: 0 0.5rem 1rem;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
151
|
.table-wrapper {
|
|
170
152
|
margin-bottom: 2rem;
|
|
171
153
|
border: 1px solid #ccc;
|
|
@@ -175,8 +157,8 @@
|
|
|
175
157
|
border-top: none;
|
|
176
158
|
}
|
|
177
159
|
|
|
178
|
-
.pf-c-table__action {
|
|
179
|
-
.pf-c-dropdown__menu button.pf-m-disabled:hover {
|
|
160
|
+
.pf-v5-c-table__action {
|
|
161
|
+
.pf-v5-c-dropdown__menu button.pf-m-disabled:hover {
|
|
180
162
|
cursor: not-allowed;
|
|
181
163
|
}
|
|
182
164
|
}
|
|
@@ -186,14 +168,14 @@
|
|
|
186
168
|
padding: 0.5rem 1.2rem;
|
|
187
169
|
background-color: #f0f0f0;
|
|
188
170
|
|
|
189
|
-
.pf-c-pagination {
|
|
171
|
+
.pf-v5-c-pagination {
|
|
190
172
|
padding: 0;
|
|
191
173
|
background-color: transparent;
|
|
192
174
|
|
|
193
|
-
.pf-c-pagination__nav {
|
|
175
|
+
.pf-v5-c-pagination__nav {
|
|
194
176
|
align-items: baseline;
|
|
195
177
|
|
|
196
|
-
.pf-c-pagination__nav-page-select {
|
|
178
|
+
.pf-v5-c-pagination__nav-page-select {
|
|
197
179
|
display: flex;
|
|
198
180
|
align-items: baseline;
|
|
199
181
|
}
|
|
@@ -201,6 +183,27 @@
|
|
|
201
183
|
}
|
|
202
184
|
}
|
|
203
185
|
}
|
|
186
|
+
.pf-v5-c-tabs__item {
|
|
187
|
+
white-space: nowrap;
|
|
188
|
+
a {
|
|
189
|
+
color: gray;
|
|
190
|
+
}
|
|
191
|
+
a:hover {
|
|
192
|
+
color: black;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.pf-v5-c-tabs__item.pf-m-current {
|
|
197
|
+
background-color: white;
|
|
198
|
+
min-width: 200px;
|
|
199
|
+
a {
|
|
200
|
+
color: black;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.pf-v5-c-tab-content {
|
|
205
|
+
flex: 1;
|
|
206
|
+
}
|
|
204
207
|
}
|
|
205
208
|
|
|
206
209
|
#manage-top-content {
|
|
@@ -221,27 +224,49 @@
|
|
|
221
224
|
border-top: none;
|
|
222
225
|
}
|
|
223
226
|
.top-content-needs-attention {
|
|
224
|
-
color: var(--pf-global--danger-color--100);
|
|
227
|
+
color: var(--pf-v5-global--danger-color--100);
|
|
225
228
|
}
|
|
226
229
|
.top-content-tooltip {
|
|
227
|
-
color: var(--pf-global--danger-color--100);
|
|
230
|
+
color: var(--pf-v5-global--danger-color--100);
|
|
228
231
|
padding: 2px;
|
|
229
232
|
}
|
|
230
233
|
}
|
|
231
234
|
|
|
235
|
+
#manage-expired-content {
|
|
236
|
+
.expired-content-manage-wrapper {
|
|
237
|
+
border: 1px solid #ccc;
|
|
238
|
+
border-top: none;
|
|
239
|
+
|
|
240
|
+
dt {
|
|
241
|
+
margin: 0;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
#tags-manager-content {
|
|
247
|
+
.tags-manager-wrapper {
|
|
248
|
+
border: 1px solid #ccc;
|
|
249
|
+
border-top: none;
|
|
250
|
+
|
|
251
|
+
dt {
|
|
252
|
+
margin: 0;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
232
257
|
// specific overrides under manage because of a different implementation
|
|
233
|
-
.pf-c-select {
|
|
234
|
-
.pf-c-select__toggle-wrapper > form:first-child {
|
|
258
|
+
.pf-v5-c-select {
|
|
259
|
+
.pf-v5-c-select__toggle-wrapper > form:first-child {
|
|
235
260
|
width: 100%;
|
|
236
261
|
}
|
|
237
262
|
|
|
238
|
-
.pf-c-select__toggle-wrapper {
|
|
239
|
-
.pf-c-select__toggle-icon {
|
|
263
|
+
.pf-v5-c-select__toggle-wrapper {
|
|
264
|
+
.pf-v5-c-select__toggle-icon {
|
|
240
265
|
margin-left: 4px;
|
|
241
266
|
margin-right: 0;
|
|
242
267
|
}
|
|
243
268
|
|
|
244
|
-
.pf-c-select__toggle-typeahead {
|
|
269
|
+
.pf-v5-c-select__toggle-typeahead {
|
|
245
270
|
border-left: none;
|
|
246
271
|
border-right: none;
|
|
247
272
|
}
|
|
@@ -252,7 +277,7 @@
|
|
|
252
277
|
}
|
|
253
278
|
}
|
|
254
279
|
|
|
255
|
-
.pf-c-button {
|
|
280
|
+
.pf-v5-c-button {
|
|
256
281
|
font-size: 14px;
|
|
257
282
|
}
|
|
258
283
|
|
|
@@ -275,12 +300,12 @@
|
|
|
275
300
|
width: -webkit-fill-available;
|
|
276
301
|
}
|
|
277
302
|
|
|
278
|
-
.pf-c-table__action li:hover button:not(.pf-m-disabled) {
|
|
303
|
+
.pf-v5-c-table__action li:hover button:not(.pf-m-disabled) {
|
|
279
304
|
color: #06c;
|
|
280
305
|
}
|
|
281
306
|
|
|
282
|
-
.pf-c-table__action li:nth-child(2) button:hover,
|
|
283
|
-
.pf-c-table__action li:nth-child(3) button:hover {
|
|
307
|
+
.pf-v5-c-table__action li:nth-child(2) button:hover,
|
|
308
|
+
.pf-v5-c-table__action li:nth-child(3) button:hover {
|
|
284
309
|
color: #a30000;
|
|
285
310
|
}
|
|
286
311
|
|
|
@@ -319,3 +344,10 @@ svg.hostnameSpinner {
|
|
|
319
344
|
#requests-detached-toggle-content thead {
|
|
320
345
|
display: none;
|
|
321
346
|
}
|
|
347
|
+
|
|
348
|
+
.top-content-single-item-footer {
|
|
349
|
+
width: 100%;
|
|
350
|
+
display: flex;
|
|
351
|
+
flex-direction: row;
|
|
352
|
+
justify-content: space-between;
|
|
353
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// Patternfly overrides
|
|
2
|
+
|
|
3
|
+
div#top-content-performance-metric.pf-v5-c-modal-box {
|
|
4
|
+
.pf-v5-c-modal-box__body {
|
|
5
|
+
.pf-v5-c-title {
|
|
6
|
+
margin-bottom: unset;
|
|
7
|
+
}
|
|
8
|
+
.top-content-tooltip-view-metric-label {
|
|
9
|
+
color: var(--pf-v5-global--primary-color--100);
|
|
10
|
+
}
|
|
11
|
+
.pf-v5-c-toggle-group__button {
|
|
12
|
+
/* Somehow below style is getting added by Patternfly which is overriding default button padding
|
|
13
|
+
* [class*="pf-v5-c-"], [class*="pf-v5-c-"]::before, [class*="pf-v5-c-"]::after {
|
|
14
|
+
padding: 0;
|
|
15
|
+
margin: 0;
|
|
16
|
+
background-color: transparent;
|
|
17
|
+
*/
|
|
18
|
+
padding: var(--pf-v5-c-toggle-group__button--PaddingTop) var(--pf-v5-c-toggle-group__button--PaddingRight)
|
|
19
|
+
var(--pf-v5-c-toggle-group__button--PaddingBottom) var(--pf-v5-c-toggle-group__button--PaddingLeft);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
div#top-content-category-limit-guidelines.pf-v5-c-modal-box {
|
|
25
|
+
.pf-v5-c-modal-box__body {
|
|
26
|
+
.pf-v5-c-title {
|
|
27
|
+
margin-bottom: unset;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
div#top-content-major-version-performance-metric.pf-v5-c-modal-box {
|
|
33
|
+
.pf-v5-c-modal-box__body {
|
|
34
|
+
overflow-x: unset;
|
|
35
|
+
overflow-y: unset;
|
|
36
|
+
.pf-v5-c-title {
|
|
37
|
+
margin-bottom: unset;
|
|
38
|
+
}
|
|
39
|
+
.pf-v5-c-toggle-group__button {
|
|
40
|
+
/* Somehow below style is getting added by Patternfly which is overriding default button padding
|
|
41
|
+
* [class*="pf-v5-c-"], [class*="pf-v5-c-"]::before, [class*="pf-v5-c-"]::after {
|
|
42
|
+
padding: 0;
|
|
43
|
+
margin: 0;
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
*/
|
|
46
|
+
padding: var(--pf-v5-c-toggle-group__button--PaddingTop) var(--pf-v5-c-toggle-group__button--PaddingRight)
|
|
47
|
+
var(--pf-v5-c-toggle-group__button--PaddingBottom) var(--pf-v5-c-toggle-group__button--PaddingLeft);
|
|
48
|
+
}
|
|
49
|
+
.sticky-header {
|
|
50
|
+
position: sticky;
|
|
51
|
+
top: 0;
|
|
52
|
+
background: var(--pf-v5-c-modal-box--BackgroundColor);
|
|
53
|
+
z-index: 89; // As .pf-v5-c-toggle-group__button is having z-index: var(--pf-v5-c-toggle-group__button--ZIndex)
|
|
54
|
+
padding-bottom: var(--pf-v5-global--spacer--sm);
|
|
55
|
+
}
|
|
56
|
+
.content {
|
|
57
|
+
height: 30vh;
|
|
58
|
+
overflow: auto;
|
|
59
|
+
}
|
|
60
|
+
.panel-body {
|
|
61
|
+
padding: var(--pf-v5-global--spacer--md);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Overrides performance metrics modal font weight
|
|
67
|
+
div.performance-metrics-modal {
|
|
68
|
+
div.pf-v5-c-modal-box__body {
|
|
69
|
+
div.sticky-header {
|
|
70
|
+
div.pf-v5-l-flex.pf-m-justify-content-space-between {
|
|
71
|
+
// For versions dropdown
|
|
72
|
+
div.pf-v5-u-w-50.pf-v5-u-pr-md {
|
|
73
|
+
div.pf-v5-u-font-weight-bold {
|
|
74
|
+
font-weight: 600 !important;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
// For categories dropdown
|
|
78
|
+
div.pf-v5-u-w-50.pf-v5-u-pl-md {
|
|
79
|
+
div.pf-v5-u-font-weight-bold {
|
|
80
|
+
font-weight: 600 !important;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// To override font weight on the accordion text in performance metrics modal - PCM-11644
|
|
87
|
+
div.content {
|
|
88
|
+
div.pf-v5-c-panel.pf-m-bordered {
|
|
89
|
+
div.pf-v5-c-panel__main {
|
|
90
|
+
div.pf-v5-c-panel__main-body {
|
|
91
|
+
dl.pf-v5-c-accordion.pf-m-bordered {
|
|
92
|
+
dt {
|
|
93
|
+
button {
|
|
94
|
+
span.pf-v5-c-accordion__toggle-text {
|
|
95
|
+
span {
|
|
96
|
+
font-weight: 500 !important;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#top-content-suggestion {
|
|
110
|
+
.pf-v5-c-expandable-section__content {
|
|
111
|
+
border: unset;
|
|
112
|
+
}
|
|
113
|
+
.card-hint {
|
|
114
|
+
background-color: var(--pf-v5-global--BackgroundColor--200);
|
|
115
|
+
}
|
|
116
|
+
.card-body {
|
|
117
|
+
padding: var(--pf-v5-global--spacer--md);
|
|
118
|
+
}
|
|
119
|
+
.hint-title {
|
|
120
|
+
color: var(--pf-v5-global--primary-color--100);
|
|
121
|
+
}
|
|
122
|
+
.accordion_title {
|
|
123
|
+
color: var(--pf-v5-global--Color--100);
|
|
124
|
+
margin: 0;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.top-content-panel {
|
|
129
|
+
z-index: 9;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.pf-v5-c-accordion__expandable-content {
|
|
133
|
+
margin: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
div.pf-v5-c-pagination__nav-page-select {
|
|
137
|
+
span.pf-v5-c-form-control {
|
|
138
|
+
background-color: white;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.pf-v5-c-select__menu {
|
|
143
|
+
padding: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.pf-v5-c-form-control.pf-m-disabled {
|
|
147
|
+
background-color: #e0e0e0;
|
|
148
|
+
border-bottom: 1px solid black;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.pf-v5-c-form-control.pf-m-disabled.issue-title-disabled {
|
|
152
|
+
border: none !important;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.pf-v5-c-chip {
|
|
156
|
+
.pf-v5-svg {
|
|
157
|
+
font-size: 12px;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.pf-v5-c-switch__label {
|
|
162
|
+
color: black !important;
|
|
163
|
+
font-size: 16px;
|
|
164
|
+
font-weight: 400;
|
|
165
|
+
outline: none !important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.pf-v5-c-menu__content {
|
|
169
|
+
width: 100%;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.pf-v5-c-accordion .pf-v5-c-accordion__toggle {
|
|
173
|
+
padding: 1rem !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.pf-v5-c-chip-group__list {
|
|
177
|
+
padding: 0;
|
|
178
|
+
.pf-v5-c-chip-group__list-item {
|
|
179
|
+
margin: 0;
|
|
180
|
+
}
|
|
181
|
+
}
|
package/lib/esm/scss/index.scss
CHANGED
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
min-width: 0;
|
|
14
14
|
background-color: #ededed;
|
|
15
15
|
|
|
16
|
-
section {
|
|
17
|
-
padding:
|
|
16
|
+
& > section.pf-v5-c-tab-content {
|
|
17
|
+
padding: 3rem;
|
|
18
18
|
background-color: #fff;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
.pf-c-popover {
|
|
23
|
-
.pf-c-popover__content {
|
|
24
|
-
.pf-c-popover__body {
|
|
22
|
+
.pf-v5-c-popover {
|
|
23
|
+
.pf-v5-c-popover__content {
|
|
24
|
+
.pf-v5-c-popover__body {
|
|
25
25
|
.top-content-tooltip-view-metric-label {
|
|
26
|
-
color: var(--pf-global--primary-color--100);
|
|
26
|
+
color: var(--pf-v5-global--primary-color--100);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
@import './
|
|
33
|
+
@import './pf-overrides';
|