@rh-support/manage 2.1.7 → 2.1.9-beta.0
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 +0 -7
- package/lib/esm/ManageTab.d.ts +1 -0
- package/lib/esm/ManageTab.d.ts.map +1 -1
- package/lib/esm/ManageTab.js +1 -1
- package/lib/esm/ManageTabs.d.ts.map +1 -1
- package/lib/esm/ManageTabs.js +1 -8
- package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.js +1 -1
- package/lib/esm/components/ManageTable/ManageTable.d.ts.map +1 -1
- package/lib/esm/components/ManageTable/ManageTable.js +1 -1
- package/package.json +7 -13
package/lib/esm/Manage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manage.d.ts","sourceRoot":"","sources":["../../src/Manage.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAI3B,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"Manage.d.ts","sourceRoot":"","sources":["../../src/Manage.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAI3B,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAKvD,MAAM,WAAW,qBAAqB;CAAG;AACzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;IACvD,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,oBAAoB,EAAE,GAAG,CAAC;QAC1B,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAG,MAAM,OAAA,KAAK,GAAG,KAAK,GAAG,CAAC;QAC9E,MAAM,EAAE,GAAG,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,eAAe,EAAE,GAAG,CAAC;QACrB,aAAa,EAAE;YACX,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;KACL;IAED,UAAU,QAAQ;QACd,YAAY,EAAE,GAAG,CAAC;KACrB;IAED,UAAU,GAAG,CAAC;QACV,UAAU,iBAAkB,SAAQ,QAAQ;SAAG;KAClD;CACJ;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,eAUnC"}
|
package/lib/esm/Manage.js
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import './scss/index.scss';
|
|
2
2
|
import { ConfirmationServiceProvider } from '@rh-support/components';
|
|
3
|
-
import { CustomElements, requireCustomElement } from '@rh-support/utils';
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import { ManageTabs } from './ManageTabs';
|
|
6
5
|
import { Routes } from './Routes';
|
|
7
|
-
requireCustomElement([
|
|
8
|
-
{
|
|
9
|
-
element: CustomElements.pfeTabs,
|
|
10
|
-
requireCb: () => require('@patternfly/pfe-tabs'),
|
|
11
|
-
},
|
|
12
|
-
]);
|
|
13
6
|
export function Manage(props) {
|
|
14
7
|
Routes.basePath = props.basePath;
|
|
15
8
|
return (React.createElement("div", { id: "rh-support-manage" },
|
package/lib/esm/ManageTab.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManageTab.d.ts","sourceRoot":"","sources":["../../src/ManageTab.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,UAAU,MAAM;IACZ,GAAG,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ManageTab.d.ts","sourceRoot":"","sources":["../../src/ManageTab.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,UAAU,MAAM;IACZ,GAAG,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,eAmBtC"}
|
package/lib/esm/ManageTab.js
CHANGED
|
@@ -8,5 +8,5 @@ export function ManageTab(props) {
|
|
|
8
8
|
React.createElement("pfe-tab", { role: "heading", slot: "tab", "data-tracking-id": tab['data-tracking-id'], onClick: tab.onClick },
|
|
9
9
|
React.createElement(Trans, null, tab.title)),
|
|
10
10
|
React.createElement("pfe-tab-panel", { role: "region", slot: "panel" },
|
|
11
|
-
React.createElement(ErrorBoundary, { errorMsgInfo: t('There was an error loading manage tab. Please try refreshing the page.'), isPageLevelError: true }, tab.component))));
|
|
11
|
+
React.createElement(ErrorBoundary, { errorMsgInfo: t('There was an error loading manage tab. Please try refreshing the page.'), isPageLevelError: true }, props.loadComponent && tab.component))));
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManageTabs.d.ts","sourceRoot":"","sources":["../../src/ManageTabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ManageTabs.d.ts","sourceRoot":"","sources":["../../src/ManageTabs.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAYvD,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,EAAE,CAAC,CAAC;CACvC;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eAqIvC"}
|
package/lib/esm/ManageTabs.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ErrorBoundary, useDocumentTitle } from '@rh-support/components';
|
|
2
2
|
import { ability, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
3
|
-
import { CustomElements, requireCustomElement } from '@rh-support/utils';
|
|
4
3
|
import map from 'lodash/map';
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import { ConfigsTable } from './components/Configs/ConfigsTable';
|
|
@@ -12,12 +11,6 @@ import { TopContentManagement } from './components/TopContentManagement';
|
|
|
12
11
|
import { PageTitle } from './constants/pageTitle';
|
|
13
12
|
import { ManageTab } from './ManageTab';
|
|
14
13
|
import { Routes } from './Routes';
|
|
15
|
-
requireCustomElement([
|
|
16
|
-
{
|
|
17
|
-
element: CustomElements.pfeTabs,
|
|
18
|
-
requireCb: () => require('@patternfly/pfe-tabs'),
|
|
19
|
-
},
|
|
20
|
-
]);
|
|
21
14
|
export function ManageTabs(props) {
|
|
22
15
|
var _a, _b;
|
|
23
16
|
const history = props.routeProps.history;
|
|
@@ -119,5 +112,5 @@ export function ManageTabs(props) {
|
|
|
119
112
|
* Render array with tabs
|
|
120
113
|
*/
|
|
121
114
|
return (React.createElement("div", { className: "grid-main manage" },
|
|
122
|
-
React.createElement("pfe-tabs", { "pfe-variant": "earth", "selected-index": getSelectedIndex(), vertical: true }, map(tabsToRender, (tab) => (React.createElement(ManageTab, { tab: tab, key: tab.key }))))));
|
|
115
|
+
React.createElement("pfe-tabs", { "pfe-variant": "earth", "selected-index": getSelectedIndex(), vertical: true }, map(tabsToRender, (tab, index) => (React.createElement(ManageTab, { tab: tab, key: tab.key, loadComponent: index === getSelectedIndex() }))))));
|
|
123
116
|
}
|
package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.js
CHANGED
|
@@ -259,7 +259,7 @@ export function ManageGroupedBookmarkedAccountsTab({ canManageBookmarkAccounts }
|
|
|
259
259
|
"bookmarks in the customer support tool"))), closeBtnAriaLabel: "Close" },
|
|
260
260
|
React.createElement(InfoCircleIcon, { className: "pf-u-ml-xs", "aria-label": "Cluster Id Info", size: "sm" }))))),
|
|
261
261
|
React.createElement("div", { className: "toolbar" },
|
|
262
|
-
React.createElement("form", { className: "toolbar-left" },
|
|
262
|
+
React.createElement("form", { onSubmit: (event) => event.preventDefault(), className: "toolbar-left" },
|
|
263
263
|
React.createElement("label", { htmlFor: "bookmark-account-selector" },
|
|
264
264
|
React.createElement(Trans, null, "Search accounts")),
|
|
265
265
|
React.createElement("span", { className: "bookmark-account" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManageTable.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTable/ManageTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,YAAY,EAQf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,SAAS,EAAmC,MAAM,wBAAwB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAGrB,cAAc,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IAEjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAElC,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AA0BD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ManageTable.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTable/ManageTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,YAAY,EAQf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,SAAS,EAAmC,MAAM,wBAAwB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAGrB,cAAc,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IAEjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAElC,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AA0BD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,eAkDxC"}
|
|
@@ -34,7 +34,7 @@ export function ManageTable(props) {
|
|
|
34
34
|
const { ariaLabel, errorComponent, errorTitle, errorVariant, isError, isFetching, sortInfo, actions, keepPageNumberOnDataChange, areActionsDisabled, actionResolver } = props, tableProps = __rest(props, ["ariaLabel", "errorComponent", "errorTitle", "errorVariant", "isError", "isFetching", "sortInfo", "actions", "keepPageNumberOnDataChange", "areActionsDisabled", "actionResolver"]);
|
|
35
35
|
return (React.createElement("div", { className: "table-wrapper" },
|
|
36
36
|
isError && (React.createElement(React.Fragment, null,
|
|
37
|
-
React.createElement(Alert, { variant: errorVariant, title: errorTitle, actionClose: React.createElement(AlertActionCloseButton, null) }, errorComponent))),
|
|
37
|
+
React.createElement(Alert, { variant: errorVariant, isInline: true, title: errorTitle, actionClose: React.createElement(AlertActionCloseButton, null), className: "pf-u-my-sm" }, errorComponent))),
|
|
38
38
|
React.createElement(Table, Object.assign({}, tableProps),
|
|
39
39
|
React.createElement(PFTable, { sortInfo: sortInfo, "aria-label": ariaLabel, pagination: true, emptyStateRow: noResultFoundRow(props.noResultText), actions: actions, areActionsDisabled: areActionsDisabled, actionResolver: actionResolver, isLoading: isFetching, keepPageNumberOnDataChange: keepPageNumberOnDataChange }),
|
|
40
40
|
tableProps.data.length > 0 && (React.createElement("footer", null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9-beta.0",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -48,9 +48,6 @@
|
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@cee-eng/hydrajs": "4.15.87",
|
|
50
50
|
"@patternfly/patternfly": "4.196.7",
|
|
51
|
-
"@patternfly/pfe-accordion": "1.12.3",
|
|
52
|
-
"@patternfly/pfe-collapse": "1.12.3",
|
|
53
|
-
"@patternfly/pfe-tabs": "1.12.3",
|
|
54
51
|
"@patternfly/react-core": "4.264.0",
|
|
55
52
|
"@patternfly/react-table": "4.111.33",
|
|
56
53
|
"i18next": ">=17.0.1",
|
|
@@ -79,17 +76,14 @@
|
|
|
79
76
|
"dependencies": {
|
|
80
77
|
"@cee-eng/hydrajs": "4.15.87",
|
|
81
78
|
"@patternfly/patternfly": "4.196.7",
|
|
82
|
-
"@patternfly/pfe-accordion": "1.12.3",
|
|
83
|
-
"@patternfly/pfe-collapse": "1.12.3",
|
|
84
|
-
"@patternfly/pfe-tabs": "1.12.3",
|
|
85
79
|
"@patternfly/react-core": "4.264.0",
|
|
86
80
|
"@patternfly/react-table": "4.111.33",
|
|
87
|
-
"@rh-support/components": "2.1.
|
|
88
|
-
"@rh-support/configs": "2.0.9",
|
|
89
|
-
"@rh-support/react-context": "2.1.
|
|
81
|
+
"@rh-support/components": "2.1.8-beta.0",
|
|
82
|
+
"@rh-support/configs": "2.0.9-beta.0",
|
|
83
|
+
"@rh-support/react-context": "2.1.8-beta.0",
|
|
90
84
|
"@rh-support/types": "2.0.2",
|
|
91
|
-
"@rh-support/user-permissions": "2.1.3",
|
|
92
|
-
"@rh-support/utils": "2.1.1",
|
|
85
|
+
"@rh-support/user-permissions": "2.1.3-beta.0",
|
|
86
|
+
"@rh-support/utils": "2.1.1-beta.0",
|
|
93
87
|
"@types/react-beautiful-dnd": "^13.0.0",
|
|
94
88
|
"i18next": ">=17.0.1",
|
|
95
89
|
"lodash": ">=4.17.15",
|
|
@@ -103,5 +97,5 @@
|
|
|
103
97
|
"defaults and supports es6-module",
|
|
104
98
|
"maintained node versions"
|
|
105
99
|
],
|
|
106
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "26b230a88e7957f7162cbd51622a640abaa328f8"
|
|
107
101
|
}
|