react 16 upgrade
[sdc.git] / openecomp-ui / src / sdc-app / common / modal / ModalContentMapper.js
1 /*
2  * Copyright © 2016-2018 European Support Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 import SoftwareProductCreation from 'sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreation.js';
18 import LicenseModelCreation from 'sdc-app/onboarding/licenseModel/creation/LicenseModelCreation.js';
19 import SoftwareProductComponentImageEditor from 'sdc-app/onboarding/softwareProduct/components/images/SoftwareProductComponentsImageEditor.js';
20 import VersionPageCreation from 'sdc-app/onboarding/versionsPage/creation/VersionsPageCreation.js';
21 import SubmitErrorResponse from 'nfvo-components/SubmitErrorResponse.jsx';
22 import ComputeFlavorEditor from 'sdc-app/onboarding/softwareProduct/components/compute/computeComponents/computeFlavor/ComputeFlavorEditor.js';
23 import NICCreation from 'sdc-app/onboarding/softwareProduct/components/network/NICCreation/NICCreation.js';
24 import SoftwareProductComponentsNICEditor from 'sdc-app/onboarding/softwareProduct/components/network/SoftwareProductComponentsNICEditor.js';
25 import ComponentCreation from 'sdc-app/onboarding/softwareProduct/components/creation/SoftwareProductComponentCreation.js';
26 import SoftwareProductDeploymentEditor from 'sdc-app/onboarding/softwareProduct/deployment/editor/SoftwareProductDeploymentEditor.js';
27 import VNFImport from 'sdc-app/onboarding/softwareProduct/vnfMarketPlace/VNFImport.js';
28 import PermissionsManager from 'sdc-app/onboarding/permissions/PermissionsManager.js';
29 import CommitCommentModal from 'nfvo-components/panel/versionController/components/CommitCommentModal.jsx';
30 import Tree from 'nfvo-components/tree/Tree.jsx';
31 import MergeEditor from 'sdc-app/common/merge/MergeEditor.js';
32 import Revisions from 'sdc-app/onboarding/revisions/Revisions.js';
33 import VendorSelector from 'sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsVendorSelector.jsx';
34 import FlowsEditor from 'sdc-app/flows/FlowsEditorModal.js';
35 import EntitlementPoolsEditor from 'sdc-app/onboarding/licenseModel/entitlementPools/EntitlementPoolsEditor.js';
36 import FeatureGroupEditor from 'sdc-app/onboarding/licenseModel/featureGroups/FeatureGroupEditor';
37 import LicenseAgreementEditor from 'sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditor';
38 import LicenseKeyGroupsEditor from 'sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditor';
39 import SoftwareProductProcessesEditor from 'sdc-app/onboarding/softwareProduct/processes/SoftwareProductProcessesEditor';
40 import SoftwareProductComponentProcessesEditor from 'sdc-app/onboarding/softwareProduct/components/processes/SoftwareProductComponentProcessesEditor';
41
42 export const modalContentMapper = {
43     SOFTWARE_PRODUCT_CREATION: 'SOFTWARE_PRODUCT_CREATION',
44     LICENSE_MODEL_CREATION: 'LICENSE_MODEL_CREATION',
45     SUMBIT_ERROR_RESPONSE: 'SUMBIT_ERROR_RESPONSE',
46     COMPONENT_COMPUTE_FLAVOR_EDITOR: 'COMPONENT_COMPUTE_FLAVOR_EDITOR',
47     NIC_EDITOR: 'NIC_EDITOR',
48     NIC_CREATION: 'NIC_CREATION',
49     COMPONENT_CREATION: 'COMPONENT_CREATION',
50     SOFTWARE_PRODUCT_COMPONENT_IMAGE_EDITOR:
51         'SOFTWARE_PRODUCT_COMPONENT_IMAGE_EDITOR',
52     DEPLOYMENT_FLAVOR_EDITOR: 'DEPLOYMENT_FLAVOR_EDITOR',
53     MANAGE_PERMISSIONS: 'MANAGE_PERMISSIONS',
54     VERSION_CREATION: 'VERSION_CREATION',
55     COMMIT_COMMENT: 'COMMIT_COMMENT',
56     VERSION_TREE: 'VERSION_TREE',
57     MERGE_EDITOR: 'MERGE_EDITOR',
58     REVISIONS_LIST: 'REVISIONS_LIST',
59     VENDOR_SELECTOR: 'VENDOR_SELECTOR',
60     VNF_IMPORT: 'VNF_IMPORT',
61     FLOWS_EDITOR: 'FLOWS_EDITOR',
62     EP_EDITOR: 'EP_EDITOR',
63     FG_EDITOR: 'FG_EDITOR',
64     LA_EDITOR: 'LA_EDITOR',
65     LKG_EDITOR: 'LKG_EDITOR',
66     PROCESS_EDITOR: 'PROCESS_EDITOR',
67     COMP_PROCESS_EDITOR: 'COMP_PROCESS_EDITOR'
68 };
69
70 export const modalContentComponents = {
71     SUMBIT_ERROR_RESPONSE: SubmitErrorResponse,
72     SOFTWARE_PRODUCT_CREATION: SoftwareProductCreation,
73     VERSION_CREATION: VersionPageCreation,
74     LICENSE_MODEL_CREATION: LicenseModelCreation,
75     COMPONENT_COMPUTE_FLAVOR_EDITOR: ComputeFlavorEditor,
76     NIC_EDITOR: SoftwareProductComponentsNICEditor,
77     NIC_CREATION: NICCreation,
78     COMPONENT_CREATION: ComponentCreation,
79     SOFTWARE_PRODUCT_COMPONENT_IMAGE_EDITOR: SoftwareProductComponentImageEditor,
80     DEPLOYMENT_FLAVOR_EDITOR: SoftwareProductDeploymentEditor,
81     MANAGE_PERMISSIONS: PermissionsManager,
82     COMMIT_COMMENT: CommitCommentModal,
83     VERSION_TREE: Tree,
84     MERGE_EDITOR: MergeEditor,
85     REVISIONS_LIST: Revisions,
86     VENDOR_SELECTOR: VendorSelector,
87     VNF_IMPORT: VNFImport,
88     FLOWS_EDITOR: FlowsEditor,
89     EP_EDITOR: EntitlementPoolsEditor,
90     FG_EDITOR: FeatureGroupEditor,
91     LA_EDITOR: LicenseAgreementEditor,
92     LKG_EDITOR: LicenseKeyGroupsEditor,
93     PROCESS_EDITOR: SoftwareProductProcessesEditor,
94     COMP_PROCESS_EDITOR: SoftwareProductComponentProcessesEditor
95 };