@openshift-assisted/ui-lib 2.43.5 → 2.44.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/build/@types/cim/components/Agent/tableUtils.d.ts +6 -2
- package/build/@types/cim/components/Agent/tableUtils.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts +6 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts +1 -1
- package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
- package/build/@types/cim/index.d.ts +1 -0
- package/build/@types/cim/index.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/index.d.ts +0 -1
- package/build/@types/common/components/clusterConfiguration/index.d.ts.map +1 -1
- package/build/@types/common/components/hosts/AITable.d.ts +3 -1
- package/build/@types/common/components/hosts/AITable.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostsTable.d.ts +2 -1
- package/build/@types/common/components/hosts/HostsTable.d.ts.map +1 -1
- package/build/@types/common/components/hosts/types.d.ts +1 -1
- package/build/@types/common/components/hosts/types.d.ts.map +1 -1
- package/build/@types/common/components/hosts/utils.d.ts +5 -2
- package/build/@types/common/components/hosts/utils.d.ts.map +1 -1
- package/build/@types/common/components/operators/operatorDescriptions.d.ts +4 -0
- package/build/@types/common/components/operators/operatorDescriptions.d.ts.map +1 -1
- package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
- package/build/@types/common/components/ui/ClusterEventsToolbar.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +16 -0
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/config/docs_links.d.ts +4 -0
- package/build/@types/common/config/docs_links.d.ts.map +1 -1
- package/build/@types/ocm/components/Routes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +1 -1
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/use-hosts-table.d.ts +1 -1
- package/build/@types/ocm/components/hosts/use-hosts-table.d.ts.map +1 -1
- package/build/cjs/cim/components/Agent/tableUtils.js +4 -3
- package/build/cjs/cim/components/Agent/tableUtils.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +16 -14
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js +21 -3
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +3 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js +3 -3
- package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js +1 -1
- package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +2 -2
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
- package/build/cjs/cim/global.css +12 -0
- package/build/cjs/cim/index.js +2 -0
- package/build/cjs/cim/index.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/index.js +1 -3
- package/build/cjs/common/components/clusterConfiguration/index.js.map +1 -1
- package/build/cjs/common/components/hosts/AITable.js +54 -38
- package/build/cjs/common/components/hosts/AITable.js.map +1 -1
- package/build/cjs/common/components/hosts/HostsTable.js +8 -5
- package/build/cjs/common/components/hosts/HostsTable.js.map +1 -1
- package/build/cjs/common/components/hosts/tableUtils.js +1 -1
- package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
- package/build/cjs/common/components/hosts/utils.js +23 -3
- package/build/cjs/common/components/hosts/utils.js.map +1 -1
- package/build/cjs/common/components/operators/operatorDescriptions.js +5 -1
- package/build/cjs/common/components/operators/operatorDescriptions.js.map +1 -1
- package/build/cjs/common/components/operators/operatorSpecs.js +48 -0
- package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
- package/build/cjs/common/components/ui/ClusterEventsToolbar.js +5 -5
- package/build/cjs/common/components/ui/ClusterEventsToolbar.js.map +1 -1
- package/build/cjs/common/config/constants.js +24 -1
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/config/docs_links.js +9 -1
- package/build/cjs/common/config/docs_links.js.map +1 -1
- package/build/cjs/ocm/components/Routes.js +10 -9
- package/build/cjs/ocm/components/Routes.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +4 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +1 -1
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
- package/build/cjs/ocm/components/hosts/use-hosts-table.js +1 -1
- package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
- package/lib/cim/components/Agent/tableUtils.tsx +5 -4
- package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +21 -18
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.tsx +48 -3
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +4 -0
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.ts +6 -1
- package/lib/cim/components/Hypershift/hooks/useSupportedOCPVersions.ts +3 -2
- package/lib/cim/components/Hypershift/modals/AddNodePoolModal.tsx +1 -1
- package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +2 -0
- package/lib/cim/global.css +12 -0
- package/lib/cim/index.ts +3 -0
- package/lib/common/components/clusterConfiguration/index.ts +0 -1
- package/lib/common/components/hosts/AITable.tsx +61 -37
- package/lib/common/components/hosts/HostsTable.tsx +21 -9
- package/lib/common/components/hosts/tableUtils.tsx +1 -1
- package/lib/common/components/hosts/types.ts +1 -1
- package/lib/common/components/hosts/utils.ts +31 -4
- package/lib/common/components/operators/operatorDescriptions.tsx +12 -0
- package/lib/common/components/operators/operatorSpecs.tsx +70 -0
- package/lib/common/components/ui/ClusterEventsToolbar.tsx +5 -0
- package/lib/common/config/constants.ts +22 -0
- package/lib/common/config/docs_links.ts +20 -0
- package/lib/ocm/components/Routes.tsx +12 -10
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +6 -1
- package/lib/ocm/components/clusters/ClustersListToolbar.tsx +1 -1
- package/lib/ocm/components/hosts/use-hosts-table.tsx +1 -1
- package/package.json +3 -3
- package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts +0 -10
- package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts.map +0 -1
- package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js +0 -52
- package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js.map +0 -1
- package/lib/common/components/clusterConfiguration/OpenShiftVersionSelect.tsx +0 -81
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const exclamation_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-circle-icon");
|
|
6
|
-
const exclamation_triangle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon");
|
|
7
|
-
const external_link_alt_icon_1 = require("@patternfly/react-icons/dist/js/icons/external-link-alt-icon");
|
|
8
|
-
const config_1 = require("../../config");
|
|
9
|
-
const ui_1 = require("../ui");
|
|
10
|
-
const use_translation_wrapper_1 = require("../../hooks/use-translation-wrapper");
|
|
11
|
-
const OpenShiftLifeCycleDatesLink = () => {
|
|
12
|
-
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
13
|
-
return (react_1.default.createElement("a", { href: config_1.OPENSHIFT_LIFE_CYCLE_DATES_LINK, target: "_blank", rel: "noopener noreferrer" },
|
|
14
|
-
t('ai:Learn more'),
|
|
15
|
-
" ",
|
|
16
|
-
react_1.default.createElement(external_link_alt_icon_1.ExternalLinkAltIcon, null)));
|
|
17
|
-
};
|
|
18
|
-
const getOpenshiftVersionHelperText =
|
|
19
|
-
// eslint-disable-next-line react/display-name
|
|
20
|
-
(versions) => (selectedVersionValue) => {
|
|
21
|
-
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
22
|
-
if (!versions.length) {
|
|
23
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
24
|
-
react_1.default.createElement(ui_1.UiIcon, { size: "sm", status: "danger", icon: react_1.default.createElement(exclamation_circle_icon_1.ExclamationCircleIcon, null) }),
|
|
25
|
-
"\u00A0 ",
|
|
26
|
-
t('ai:No release image is available.')));
|
|
27
|
-
}
|
|
28
|
-
const selectedVersion = versions.find((version) => version.value === selectedVersionValue);
|
|
29
|
-
if (!selectedVersionValue || !selectedVersion) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
if (selectedVersion.supportLevel !== 'production' &&
|
|
33
|
-
selectedVersion.supportLevel !== 'maintenance') {
|
|
34
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
35
|
-
react_1.default.createElement(ui_1.UiIcon, { size: "sm", status: "warning", icon: react_1.default.createElement(exclamation_triangle_icon_1.ExclamationTriangleIcon, null) }),
|
|
36
|
-
"\u00A0",
|
|
37
|
-
t('ai:Please note that this version is not production-ready.'),
|
|
38
|
-
"\u00A0",
|
|
39
|
-
react_1.default.createElement(OpenShiftLifeCycleDatesLink, null)));
|
|
40
|
-
}
|
|
41
|
-
return null;
|
|
42
|
-
};
|
|
43
|
-
const OpenShiftVersionSelect = ({ versions, onChange }) => {
|
|
44
|
-
const selectOptions = react_1.default.useMemo(() => versions.map((version) => ({
|
|
45
|
-
label: version.label,
|
|
46
|
-
value: version.value,
|
|
47
|
-
})), [versions]);
|
|
48
|
-
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
49
|
-
return (react_1.default.createElement(ui_1.SelectField, { label: t('ai:OpenShift version'), name: "openshiftVersion", options: selectOptions, getHelperText: getOpenshiftVersionHelperText(versions), isDisabled: versions.length === 0, isRequired: true, onChange: onChange }));
|
|
50
|
-
};
|
|
51
|
-
exports.default = OpenShiftVersionSelect;
|
|
52
|
-
//# sourceMappingURL=OpenShiftVersionSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OpenShiftVersionSelect.js","sourceRoot":"","sources":["../../../../../lib/common/components/clusterConfiguration/OpenShiftVersionSelect.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,2GAAsG;AACtG,+GAA0G;AAC1G,yGAAmG;AAEnG,yCAA+D;AAE/D,8BAA4C;AAC5C,iFAAqE;AAGrE,MAAM,2BAA2B,GAAG,GAAG,EAAE;IACvC,MAAM,EAAE,CAA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EAAE,EAAE,EAAE;IAC/F,MAAM,aAAa,GAAG,eAAK,CAAC,OAAO,CACjC,GAAG,EAAE,CACH,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACzB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC,CAAC,EACL,CAAC,QAAQ,CAAC,CACX,CAAC;IACF,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,OAAO,CACL,8BAAC,gBAAW,IACV,KAAK,EAAE,CAAC,CAAC,sBAAsB,CAAC,EAChC,IAAI,EAAC,kBAAkB,EACvB,OAAO,EAAE,aAAa,EACtB,aAAa,EAAE,6BAA6B,CAAC,QAAQ,CAAC,EACtD,UAAU,EAAE,QAAQ,CAAC,MAAM,KAAK,CAAC,EACjC,UAAU,QACV,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
3
|
-
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
4
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
5
|
-
|
|
6
|
-
import { OPENSHIFT_LIFE_CYCLE_DATES_LINK } from '../../config';
|
|
7
|
-
import { OpenshiftVersionOptionType } from '../../types';
|
|
8
|
-
import { SelectField, UiIcon } from '../ui';
|
|
9
|
-
import { useTranslation } from '../../hooks/use-translation-wrapper';
|
|
10
|
-
import { SelectFieldProps } from '../ui/formik/types';
|
|
11
|
-
|
|
12
|
-
const OpenShiftLifeCycleDatesLink = () => {
|
|
13
|
-
const { t } = useTranslation();
|
|
14
|
-
return (
|
|
15
|
-
<a href={OPENSHIFT_LIFE_CYCLE_DATES_LINK} target="_blank" rel="noopener noreferrer">
|
|
16
|
-
{t('ai:Learn more')} <ExternalLinkAltIcon />
|
|
17
|
-
</a>
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const getOpenshiftVersionHelperText =
|
|
22
|
-
// eslint-disable-next-line react/display-name
|
|
23
|
-
(versions: OpenshiftVersionOptionType[]) => (selectedVersionValue: string) => {
|
|
24
|
-
const { t } = useTranslation();
|
|
25
|
-
if (!versions.length) {
|
|
26
|
-
return (
|
|
27
|
-
<>
|
|
28
|
-
<UiIcon size="sm" status="danger" icon={<ExclamationCircleIcon />} />
|
|
29
|
-
{t('ai:No release image is available.')}
|
|
30
|
-
</>
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
const selectedVersion = versions.find((version) => version.value === selectedVersionValue);
|
|
34
|
-
if (!selectedVersionValue || !selectedVersion) {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
selectedVersion.supportLevel !== 'production' &&
|
|
40
|
-
selectedVersion.supportLevel !== 'maintenance'
|
|
41
|
-
) {
|
|
42
|
-
return (
|
|
43
|
-
<>
|
|
44
|
-
<UiIcon size="sm" status="warning" icon={<ExclamationTriangleIcon />} />
|
|
45
|
-
{t('ai:Please note that this version is not production-ready.')}
|
|
46
|
-
<OpenShiftLifeCycleDatesLink />
|
|
47
|
-
</>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return null;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
type OpenShiftVersionSelectProps = {
|
|
55
|
-
versions: OpenshiftVersionOptionType[];
|
|
56
|
-
onChange?: SelectFieldProps['onChange'];
|
|
57
|
-
};
|
|
58
|
-
const OpenShiftVersionSelect: React.FC<OpenShiftVersionSelectProps> = ({ versions, onChange }) => {
|
|
59
|
-
const selectOptions = React.useMemo(
|
|
60
|
-
() =>
|
|
61
|
-
versions.map((version) => ({
|
|
62
|
-
label: version.label,
|
|
63
|
-
value: version.value,
|
|
64
|
-
})),
|
|
65
|
-
[versions],
|
|
66
|
-
);
|
|
67
|
-
const { t } = useTranslation();
|
|
68
|
-
return (
|
|
69
|
-
<SelectField
|
|
70
|
-
label={t('ai:OpenShift version')}
|
|
71
|
-
name="openshiftVersion"
|
|
72
|
-
options={selectOptions}
|
|
73
|
-
getHelperText={getOpenshiftVersionHelperText(versions)}
|
|
74
|
-
isDisabled={versions.length === 0}
|
|
75
|
-
isRequired
|
|
76
|
-
onChange={onChange}
|
|
77
|
-
/>
|
|
78
|
-
);
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export default OpenShiftVersionSelect;
|