@rh-support/manage 2.1.82 → 2.1.84
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/Manage.d.ts.map +1 -1
- package/lib/esm/Manage.js +4 -3
- package/lib/esm/ManageTabs.d.ts +1 -0
- package/lib/esm/ManageTabs.d.ts.map +1 -1
- package/lib/esm/ManageTabs.js +44 -40
- package/lib/esm/Routes.d.ts +1 -0
- package/lib/esm/Routes.d.ts.map +1 -1
- package/lib/esm/Routes.js +15 -9
- package/lib/esm/components/Configs/ConfigsTable.js +1 -1
- package/lib/esm/components/Groups/ManageGroupUsers/ManageGroupUsers.js +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.js +1 -1
- package/lib/esm/components/ManagePartnerships/index.js +1 -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/PreferencesBody.js +1 -1
- 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 +240 -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/index.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.d.ts +2 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.js +43 -11
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.js +38 -9
- 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/TopContentManagement.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentManagement.js +4 -3
- 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/reducers/TagManagmentReducer.d.ts +27 -0
- package/lib/esm/reducers/TagManagmentReducer.d.ts.map +1 -0
- package/lib/esm/reducers/TagManagmentReducer.js +127 -0
- package/lib/esm/reducers/TopContentReducer.d.ts +5 -4
- package/lib/esm/reducers/TopContentReducer.d.ts.map +1 -1
- package/lib/esm/reducers/TopContentReducer.js +10 -2
- package/lib/esm/scss/_main.scss +48 -12
- package/lib/esm/scss/_pf-overrides.scss +24 -0
- package/lib/esm/scss/index.scss +2 -2
- package/package.json +12 -10
- package/lib/esm/ManageTab.d.ts +0 -10
- package/lib/esm/ManageTab.d.ts.map +0 -1
- package/lib/esm/ManageTab.js +0 -22
|
@@ -2,6 +2,7 @@ import { IProduct as IHydraProduct, IProduct } from '@cee-eng/hydrajs/@types/mod
|
|
|
2
2
|
import { ITopContent, ITopContentCategory, ITopContentList, ITopContentResourceUsagesResponse } from '@cee-eng/hydrajs/@types/models/topContent/topContentModel';
|
|
3
3
|
import { IAction, IApiResponseDetails } from '@rh-support/types/shared';
|
|
4
4
|
export interface ITopContentItemState extends ITopContent {
|
|
5
|
+
tagList?: (number | string)[];
|
|
5
6
|
mode?: ContentMode;
|
|
6
7
|
isAttentionNeeded?: boolean;
|
|
7
8
|
}
|
|
@@ -24,7 +25,7 @@ interface categoryDups {
|
|
|
24
25
|
export interface IContentUrlsDups {
|
|
25
26
|
[url: string]: categoryDups;
|
|
26
27
|
}
|
|
27
|
-
interface ITopContentSuggestionLinkedResources {
|
|
28
|
+
export interface ITopContentSuggestionLinkedResources {
|
|
28
29
|
id: number;
|
|
29
30
|
numberOfCaseLinked: number;
|
|
30
31
|
productName: string;
|
|
@@ -92,9 +93,9 @@ export declare const fetchTopContentRecourseUsage: (dispatch: TopContentReducerD
|
|
|
92
93
|
export declare const addTopContent: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[], categoryId: number) => void;
|
|
93
94
|
export declare const deleteTopContent: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[], categoryId: number, topContentId: number) => Promise<never>;
|
|
94
95
|
export declare const removeTopContent: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[], categoryId: number, i: number) => void;
|
|
95
|
-
export declare const saveAddedNewSectionContents: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[], selectedCategory: ITopContentCategory, selectedProduct: Partial<IProduct>, selectedVersion: string, isCatOnlyForMajorVersion: boolean, newContent: any, isCreatingNewSet?: boolean) => Promise<
|
|
96
|
-
export declare const saveAddToTopContent: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[], id: number, categoryId: number, content: ITopContentItemState, index: number) => Promise<
|
|
97
|
-
export declare const saveChangeInCategoryContent: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[], categoryId: number, content: ITopContentItemState) => Promise<never>;
|
|
96
|
+
export declare const saveAddedNewSectionContents: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[], selectedCategory: ITopContentCategory, selectedProduct: Partial<IProduct>, selectedVersion: string, isCatOnlyForMajorVersion: boolean, newContent: any, isCreatingNewSet?: boolean) => Promise<import("@cee-eng/hydrajs/@types/models/topContent/topContentModel").ITopContentBody>;
|
|
97
|
+
export declare const saveAddToTopContent: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[], id: number, categoryId: number, content: ITopContentItemState, index: number) => Promise<import("@cee-eng/hydrajs/@types/models/topContent/topContentModel").ITopContentBody>;
|
|
98
|
+
export declare const saveChangeInCategoryContent: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[], categoryId: number, content: ITopContentItemState, deletedTags?: any[]) => Promise<never>;
|
|
98
99
|
export declare const reArrangeContent: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[], categoryId: number) => Promise<never>;
|
|
99
100
|
export declare const reArrangeCategory: (dispatch: TopContentReducerDispatchType, topContentEditState: ITopContentEditState[]) => Promise<never>;
|
|
100
101
|
export declare const fetchCategories: (dispatch: TopContentReducerDispatchType) => Promise<never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopContentReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/TopContentReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAC7F,OAAO,EACH,WAAW,EAEX,mBAAmB,EACnB,eAAe,EAGf,iCAAiC,EAEpC,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"TopContentReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/TopContentReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAC7F,OAAO,EACH,WAAW,EAEX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BAAoB,EAAE,MACvC,MAAM,cACE,MAAM,WACT,oBAAoB,SACtB,MAAM,iGA2DhB,CAAC;AAGF,eAAO,MAAM,2BAA2B,aAC1B,6BAA6B,uBAClB,oBAAoB,EAAE,cAC/B,MAAM,WACT,oBAAoB,gBACf,GAAG,EAAE,mBAqDtB,CAAC;AAGF,eAAO,MAAM,gBAAgB,aACf,6BAA6B,uBAClB,oBAAoB,EAAE,cAC/B,MAAM,mBA+BrB,CAAC;AAGF,eAAO,MAAM,iBAAiB,aAChB,6BAA6B,uBAClB,oBAAoB,EAAE,mBA2B9C,CAAC;AAEF,eAAO,MAAM,eAAe,aAAoB,6BAA6B,mBAwB5E,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,6BAA6B,uBAAuB,OAAO,SAK3G,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAAc,6BAA6B,SAKxE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,aACzB,6BAA6B,eAC1B,MAAM,WACV,MAAM,kBAsBlB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,aACzB,6BAA6B,cAC3B,qBAAqB,gBACnB,MAAM,mBAavB,CAAC"}
|
|
@@ -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';
|
|
@@ -359,6 +360,7 @@ export const saveAddedNewSectionContents = (dispatch, topContentEditState, selec
|
|
|
359
360
|
contentUrls: getContentUrls(topContentEditState),
|
|
360
361
|
},
|
|
361
362
|
});
|
|
363
|
+
return res;
|
|
362
364
|
}
|
|
363
365
|
catch (e) {
|
|
364
366
|
console.log(e);
|
|
@@ -403,6 +405,7 @@ export const saveAddToTopContent = (dispatch, topContentEditState, id, categoryI
|
|
|
403
405
|
contentUrls: getContentUrls(topContentEditState),
|
|
404
406
|
},
|
|
405
407
|
});
|
|
408
|
+
return res;
|
|
406
409
|
}
|
|
407
410
|
catch (e) {
|
|
408
411
|
console.log(e);
|
|
@@ -410,21 +413,26 @@ export const saveAddToTopContent = (dispatch, topContentEditState, id, categoryI
|
|
|
410
413
|
}
|
|
411
414
|
});
|
|
412
415
|
// user saves content updates
|
|
413
|
-
export const saveChangeInCategoryContent = (dispatch, topContentEditState, categoryId, content) => __awaiter(void 0, void 0, void 0, function* () {
|
|
416
|
+
export const saveChangeInCategoryContent = (dispatch, topContentEditState, categoryId, content, deletedTags) => __awaiter(void 0, void 0, void 0, function* () {
|
|
414
417
|
const toUpdate = {
|
|
415
418
|
id: content.topContentId,
|
|
416
419
|
contentTitle: content.contentTitle,
|
|
417
420
|
contentUrl: content.contentUrl,
|
|
418
421
|
contentRank: content.contentRank,
|
|
422
|
+
tagList: content.tagList, // list of new tagIds which needs to be added in content
|
|
423
|
+
expiryDate: content.expiryDate,
|
|
419
424
|
isActive: 1,
|
|
420
425
|
};
|
|
421
426
|
try {
|
|
427
|
+
if (deletedTags && !isEmpty(deletedTags)) {
|
|
428
|
+
yield Promise.all(deletedTags.map((t) => pcm.topContentTag.deleteTagFromTopContent(content.topContentId, t)));
|
|
429
|
+
}
|
|
422
430
|
const updatedContent = yield pcm.topContent.patchTopContent({ topContents: [toUpdate] });
|
|
423
431
|
topContentEditState.forEach((cat) => {
|
|
424
432
|
if (cat.categoryId === categoryId) {
|
|
425
433
|
const index = cat.content.findIndex((c) => c.topContentId === content.topContentId);
|
|
426
434
|
if (index !== -1) {
|
|
427
|
-
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 });
|
|
435
|
+
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 });
|
|
428
436
|
}
|
|
429
437
|
}
|
|
430
438
|
});
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -41,10 +41,15 @@
|
|
|
41
41
|
display: flex;
|
|
42
42
|
-ms-flex-direction: column;
|
|
43
43
|
flex-direction: column;
|
|
44
|
+
flex-wrap: wrap;
|
|
44
45
|
padding: 1rem 1.2rem;
|
|
45
46
|
background-color: #f0f0f0;
|
|
46
47
|
border: 1px solid #d2d2d2;
|
|
47
48
|
|
|
49
|
+
.toolbar-content {
|
|
50
|
+
width: 49%;
|
|
51
|
+
}
|
|
52
|
+
|
|
48
53
|
label {
|
|
49
54
|
font-size: 14px;
|
|
50
55
|
margin-bottom: 0;
|
|
@@ -121,10 +126,6 @@
|
|
|
121
126
|
}
|
|
122
127
|
}
|
|
123
128
|
|
|
124
|
-
.panels {
|
|
125
|
-
width: 100%;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
129
|
.create-category-link {
|
|
129
130
|
padding: 0;
|
|
130
131
|
}
|
|
@@ -133,14 +134,6 @@
|
|
|
133
134
|
margin-bottom: 1rem;
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
[role='tabpanel'] {
|
|
137
|
-
background-color: #fff !important;
|
|
138
|
-
|
|
139
|
-
& > * {
|
|
140
|
-
padding: 0 0.5rem 1rem;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
137
|
.table-wrapper {
|
|
145
138
|
margin-bottom: 2rem;
|
|
146
139
|
border: 1px solid #ccc;
|
|
@@ -176,6 +169,27 @@
|
|
|
176
169
|
}
|
|
177
170
|
}
|
|
178
171
|
}
|
|
172
|
+
.pf-v5-c-tabs__item {
|
|
173
|
+
white-space: nowrap;
|
|
174
|
+
a {
|
|
175
|
+
color: gray;
|
|
176
|
+
}
|
|
177
|
+
a:hover {
|
|
178
|
+
color: black;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.pf-v5-c-tabs__item.pf-m-current {
|
|
183
|
+
background-color: white;
|
|
184
|
+
min-width: 200px;
|
|
185
|
+
a {
|
|
186
|
+
color: black;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.pf-v5-c-tab-content {
|
|
191
|
+
flex: 1;
|
|
192
|
+
}
|
|
179
193
|
}
|
|
180
194
|
|
|
181
195
|
#manage-top-content {
|
|
@@ -204,6 +218,28 @@
|
|
|
204
218
|
}
|
|
205
219
|
}
|
|
206
220
|
|
|
221
|
+
#manage-expired-content {
|
|
222
|
+
.expired-content-manage-wrapper {
|
|
223
|
+
border: 1px solid #ccc;
|
|
224
|
+
border-top: none;
|
|
225
|
+
|
|
226
|
+
dt {
|
|
227
|
+
margin: 0;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
#tags-manager-content {
|
|
233
|
+
.tags-manager-wrapper {
|
|
234
|
+
border: 1px solid #ccc;
|
|
235
|
+
border-top: none;
|
|
236
|
+
|
|
237
|
+
dt {
|
|
238
|
+
margin: 0;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
207
243
|
// specific overrides under manage because of a different implementation
|
|
208
244
|
.pf-v5-c-select {
|
|
209
245
|
.pf-v5-c-select__toggle-wrapper > form:first-child {
|
|
@@ -148,6 +148,30 @@ div.pf-v5-c-pagination__nav-page-select {
|
|
|
148
148
|
border-bottom: 1px solid black;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
.pf-v5-c-chip {
|
|
152
|
+
.pf-v5-svg {
|
|
153
|
+
font-size: 12px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.pf-v5-c-switch__label {
|
|
158
|
+
color: black !important;
|
|
159
|
+
font-size: 16px;
|
|
160
|
+
font-weight: 400;
|
|
161
|
+
outline: none !important;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.pf-v5-c-menu__content {
|
|
165
|
+
width: 100%;
|
|
166
|
+
}
|
|
167
|
+
|
|
151
168
|
.pf-v5-c-accordion .pf-v5-c-accordion__toggle {
|
|
152
169
|
padding: 1rem !important;
|
|
153
170
|
}
|
|
171
|
+
|
|
172
|
+
.pf-v5-c-chip-group__list {
|
|
173
|
+
padding: 0;
|
|
174
|
+
.pf-v5-c-chip-group__list-item {
|
|
175
|
+
margin: 0;
|
|
176
|
+
}
|
|
177
|
+
}
|
package/lib/esm/scss/index.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.84",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -45,11 +45,12 @@
|
|
|
45
45
|
"prepublishOnly": "npm run build"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@cee-eng/hydrajs": "4.17.
|
|
48
|
+
"@cee-eng/hydrajs": "4.17.21",
|
|
49
49
|
"@patternfly/patternfly": "5.1.0",
|
|
50
50
|
"@patternfly/react-core": "5.1.1",
|
|
51
51
|
"@patternfly/react-table": "5.1.1",
|
|
52
52
|
"lodash": ">=4.17.15",
|
|
53
|
+
"mark.js": "^8.11.1",
|
|
53
54
|
"react": "18.2.0",
|
|
54
55
|
"react-dom": "18.2.0",
|
|
55
56
|
"react-i18next": "^12.3.1",
|
|
@@ -74,18 +75,19 @@
|
|
|
74
75
|
"typescript": "^5.3.3"
|
|
75
76
|
},
|
|
76
77
|
"dependencies": {
|
|
77
|
-
"@cee-eng/hydrajs": "4.17.
|
|
78
|
+
"@cee-eng/hydrajs": "4.17.21",
|
|
78
79
|
"@patternfly/patternfly": "5.1.0",
|
|
79
80
|
"@patternfly/react-core": "5.1.1",
|
|
80
81
|
"@patternfly/react-table": "5.1.1",
|
|
81
|
-
"@rh-support/components": "2.1.
|
|
82
|
-
"@rh-support/configs": "2.0.
|
|
83
|
-
"@rh-support/react-context": "2.1.
|
|
84
|
-
"@rh-support/types": "2.0.
|
|
85
|
-
"@rh-support/user-permissions": "2.1.
|
|
86
|
-
"@rh-support/utils": "2.1.
|
|
82
|
+
"@rh-support/components": "2.1.63",
|
|
83
|
+
"@rh-support/configs": "2.0.20",
|
|
84
|
+
"@rh-support/react-context": "2.1.71",
|
|
85
|
+
"@rh-support/types": "2.0.4",
|
|
86
|
+
"@rh-support/user-permissions": "2.1.46",
|
|
87
|
+
"@rh-support/utils": "2.1.35",
|
|
87
88
|
"@types/react-beautiful-dnd": "^13.0.0",
|
|
88
89
|
"lodash": ">=4.17.15",
|
|
90
|
+
"mark.js": "^8.11.1",
|
|
89
91
|
"react": "18.2.0",
|
|
90
92
|
"react-beautiful-dnd": "^13.0.0",
|
|
91
93
|
"react-dom": "18.2.0",
|
|
@@ -100,5 +102,5 @@
|
|
|
100
102
|
"defaults and supports es6-module",
|
|
101
103
|
"maintained node versions"
|
|
102
104
|
],
|
|
103
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "85dc8cf2f736478dc995cb52e1a5be8e608e2fb8"
|
|
104
106
|
}
|
package/lib/esm/ManageTab.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ITabToRender } from '@rh-support/types/shared';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface IProps {
|
|
4
|
-
tab: ITabToRender<string>;
|
|
5
|
-
loadComponent: boolean;
|
|
6
|
-
tabIndex: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function ManageTab(props: IProps): React.JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=ManageTab.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManageTab.d.ts","sourceRoot":"","sources":["../../src/ManageTab.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,UAAU,MAAM;IACZ,GAAG,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,qBA+BtC"}
|
package/lib/esm/ManageTab.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ErrorBoundary } from '@rh-support/components';
|
|
2
|
-
import React, { useEffect } from 'react';
|
|
3
|
-
import { Trans, useTranslation } from 'react-i18next';
|
|
4
|
-
export function ManageTab(props) {
|
|
5
|
-
const tab = props.tab;
|
|
6
|
-
const { t } = useTranslation();
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
if (!props.loadComponent)
|
|
9
|
-
return;
|
|
10
|
-
const tabPaneles = document.getElementsByTagName('pfe-tab-panel');
|
|
11
|
-
if (tabPaneles.length > 0 && tabPaneles[props.tabIndex])
|
|
12
|
-
tabPaneles[props.tabIndex].removeAttribute('hidden');
|
|
13
|
-
}, [props.loadComponent, props.tabIndex]);
|
|
14
|
-
return (React.createElement(React.Fragment, null,
|
|
15
|
-
React.createElement("pfe-tab", { role: "tab", slot: "tab", "data-tracking-id": tab['data-tracking-id'], onClick: tab.onClick },
|
|
16
|
-
React.createElement(Trans, null,
|
|
17
|
-
React.createElement("h2", null, tab.title))),
|
|
18
|
-
React.createElement("pfe-tab-panel", { role: "tabpanel", slot: "panel" },
|
|
19
|
-
React.createElement(ErrorBoundary, { errorMsgInfo: {
|
|
20
|
-
message: t('There was an error loading manage tab. Please try refreshing the page.'),
|
|
21
|
-
}, isPageLevelError: true }, props.loadComponent && tab.component))));
|
|
22
|
-
}
|