@rh-support/manage 1.0.20 → 1.0.21
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookmarkAccountSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAGhF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAUtD,UAAU,MAAM;IACZ,uBAAuB,EAAE,SAAS,EAAE,CAAC;IACrC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yBAAyB,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BookmarkAccountSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAGhF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAUtD,UAAU,MAAM;IACZ,uBAAuB,EAAE,SAAS,EAAE,CAAC;IACrC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yBAAyB,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,eAyPpD;yBAzPe,uBAAuB"}
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { accounts } from '@cee-eng/hydrajs';
|
|
11
|
-
import {
|
|
11
|
+
import { Label, LabelGroup, Select, SelectOption, SelectVariant, Tooltip } from '@patternfly/react-core';
|
|
12
12
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
13
13
|
import assign from 'lodash/assign';
|
|
14
14
|
import compact from 'lodash/compact';
|
|
@@ -103,13 +103,13 @@ export function BookmarkAccountSelector(props) {
|
|
|
103
103
|
})
|
|
104
104
|
.map((a) => a.accountNumber)) ||
|
|
105
105
|
[];
|
|
106
|
-
const removeAccountChip = (
|
|
106
|
+
const removeAccountChip = (removedAccount) => {
|
|
107
107
|
const updatedSelectedAccounts = remove(selected, (account) => account.accountNumber !== removedAccount.accountNumber);
|
|
108
108
|
setSelected(updatedSelectedAccounts);
|
|
109
109
|
props.onBookMarkAccountSelected(updatedSelectedAccounts);
|
|
110
110
|
};
|
|
111
|
-
const
|
|
112
|
-
return (React.createElement(
|
|
111
|
+
const labelGroupComponent = () => {
|
|
112
|
+
return (React.createElement(LabelGroup, { numLabels: 2 }, (selected || []).map((currentChip) => (React.createElement(Label, { key: currentChip.accountNumber, onClose: () => removeAccountChip(currentChip), isTruncated: false, color: "cyan" },
|
|
113
113
|
currentChip.name,
|
|
114
114
|
" (",
|
|
115
115
|
currentChip.accountNumber,
|
|
@@ -139,7 +139,7 @@ export function BookmarkAccountSelector(props) {
|
|
|
139
139
|
const titleId = 'multi-typeahead-bookmark-chip-group-props-id';
|
|
140
140
|
return (React.createElement(React.Fragment, null,
|
|
141
141
|
React.createElement("span", { id: titleId, hidden: true }, "Select a state"),
|
|
142
|
-
React.createElement(Select, Object.assign({ chipGroupComponent:
|
|
142
|
+
React.createElement(Select, Object.assign({ chipGroupComponent: labelGroupComponent(), variant: SelectVariant.typeaheadMulti, typeAheadAriaLabel: t('Search for account names or numbers'), onToggle: onToggle, onSelect: onSelect, onClear: clearSelection, "data-tracking-id": props.labelId, selections: selected, isOpen: isOpen, "aria-labelledby": titleId, placeholderText: t('Search for account names or numbers'), hasInlineFilter: false, onTypeaheadInputChanged: debounceFn, onFilter: () => undefined, "aria-describedby": "clusterID-validate-helper" }, (isSearching && { loadingVariant: 'spinner' })), options.map((account, index) => (React.createElement(SelectOption, { value: account, key: index },
|
|
143
143
|
React.createElement("div", null,
|
|
144
144
|
React.createElement("div", { className: "pf-u-color-100 pf-u-font-size-sm" },
|
|
145
145
|
account.name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
57
57
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
58
58
|
"@patternfly/pfe-tabs": "1.12.3",
|
|
59
|
-
"@patternfly/react-core": "4.
|
|
60
|
-
"@patternfly/react-table": "4.
|
|
59
|
+
"@patternfly/react-core": "4.264.0",
|
|
60
|
+
"@patternfly/react-table": "4.111.33",
|
|
61
61
|
"@rh-support/components": "^0.1.3",
|
|
62
62
|
"@rh-support/react-context": "^0.1.3",
|
|
63
63
|
"@rh-support/types": "^0.1.3",
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
93
93
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
94
94
|
"@patternfly/pfe-tabs": "1.12.3",
|
|
95
|
-
"@patternfly/react-core": "4.
|
|
96
|
-
"@patternfly/react-table": "4.
|
|
97
|
-
"@rh-support/components": "1.2.
|
|
95
|
+
"@patternfly/react-core": "4.264.0",
|
|
96
|
+
"@patternfly/react-table": "4.111.33",
|
|
97
|
+
"@rh-support/components": "1.2.11",
|
|
98
98
|
"@rh-support/configs": "1.0.0",
|
|
99
|
-
"@rh-support/react-context": "1.0.
|
|
99
|
+
"@rh-support/react-context": "1.0.12",
|
|
100
100
|
"@rh-support/types": "0.2.0",
|
|
101
101
|
"@rh-support/user-permissions": "1.0.9",
|
|
102
102
|
"@rh-support/utils": "1.0.7",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"react-i18next": ">=10.11.0",
|
|
110
110
|
"react-router-dom": ">=5.1.2"
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "361b4d05273169e7c9b7f5c5236ccd7ce1463499"
|
|
113
113
|
}
|