blob: a65199ac8f7612e707febcc398461c4d211e9d94 [file] [log] [blame]
Einav Weiss Keidar1801b242018-08-13 16:19:46 +03001/*
2 * Copyright © 2016-2018 European Support Limited
AviZi280f8012017-06-09 02:39:56 +03003 *
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 *
Einav Weiss Keidar1801b242018-08-13 16:19:46 +03008 * http://www.apache.org/licenses/LICENSE-2.0
AviZi280f8012017-06-09 02:39:56 +03009 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
Einav Weiss Keidar1801b242018-08-13 16:19:46 +030012 * 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.
AviZi280f8012017-06-09 02:39:56 +030015 */
16
17import SoftwareProductCreation from 'sdc-app/onboarding/softwareProduct/creation/SoftwareProductCreation.js';
18import LicenseModelCreation from 'sdc-app/onboarding/licenseModel/creation/LicenseModelCreation.js';
Avi Zivb8e2faf2017-07-18 19:45:38 +030019import SoftwareProductComponentImageEditor from 'sdc-app/onboarding/softwareProduct/components/images/SoftwareProductComponentsImageEditor.js';
talig8e9c0652017-12-20 14:30:43 +020020import VersionPageCreation from 'sdc-app/onboarding/versionsPage/creation/VersionsPageCreation.js';
AviZi280f8012017-06-09 02:39:56 +030021import SubmitErrorResponse from 'nfvo-components/SubmitErrorResponse.jsx';
Avi Zivb8e2faf2017-07-18 19:45:38 +030022import ComputeFlavorEditor from 'sdc-app/onboarding/softwareProduct/components/compute/computeComponents/computeFlavor/ComputeFlavorEditor.js';
23import NICCreation from 'sdc-app/onboarding/softwareProduct/components/network/NICCreation/NICCreation.js';
24import SoftwareProductComponentsNICEditor from 'sdc-app/onboarding/softwareProduct/components/network/SoftwareProductComponentsNICEditor.js';
25import ComponentCreation from 'sdc-app/onboarding/softwareProduct/components/creation/SoftwareProductComponentCreation.js';
26import SoftwareProductDeploymentEditor from 'sdc-app/onboarding/softwareProduct/deployment/editor/SoftwareProductDeploymentEditor.js';
Murali-P72d62fb2018-03-29 17:46:39 +053027import VNFImport from 'sdc-app/onboarding/softwareProduct/vnfMarketPlace/VNFImport.js';
talig8e9c0652017-12-20 14:30:43 +020028import PermissionsManager from 'sdc-app/onboarding/permissions/PermissionsManager.js';
29import CommitCommentModal from 'nfvo-components/panel/versionController/components/CommitCommentModal.jsx';
30import Tree from 'nfvo-components/tree/Tree.jsx';
31import MergeEditor from 'sdc-app/common/merge/MergeEditor.js';
32import Revisions from 'sdc-app/onboarding/revisions/Revisions.js';
svishnev091edfd2018-03-19 12:15:19 +020033import VendorSelector from 'sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsVendorSelector.jsx';
Einav Weiss Keidar1801b242018-08-13 16:19:46 +030034import FlowsEditor from 'sdc-app/flows/FlowsEditorModal.js';
35import EntitlementPoolsEditor from 'sdc-app/onboarding/licenseModel/entitlementPools/EntitlementPoolsEditor.js';
36import FeatureGroupEditor from 'sdc-app/onboarding/licenseModel/featureGroups/FeatureGroupEditor';
37import LicenseAgreementEditor from 'sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditor';
38import LicenseKeyGroupsEditor from 'sdc-app/onboarding/licenseModel/licenseKeyGroups/LicenseKeyGroupsEditor';
39import SoftwareProductProcessesEditor from 'sdc-app/onboarding/softwareProduct/processes/SoftwareProductProcessesEditor';
40import SoftwareProductComponentProcessesEditor from 'sdc-app/onboarding/softwareProduct/components/processes/SoftwareProductComponentProcessesEditor';
AviZi280f8012017-06-09 02:39:56 +030041
Avi Zivb8e2faf2017-07-18 19:45:38 +030042export const modalContentMapper = {
Einav Weiss Keidar7fdf7332018-03-20 14:45:40 +020043 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',
Murali-P72d62fb2018-03-29 17:46:39 +053059 VENDOR_SELECTOR: 'VENDOR_SELECTOR',
Einav Weiss Keidar1801b242018-08-13 16:19:46 +030060 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'
AviZi280f8012017-06-09 02:39:56 +030068};
69
70export const modalContentComponents = {
Einav Weiss Keidar7fdf7332018-03-20 14:45:40 +020071 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,
Murali-P72d62fb2018-03-29 17:46:39 +053086 VENDOR_SELECTOR: VendorSelector,
Einav Weiss Keidar1801b242018-08-13 16:19:46 +030087 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
Avi Zivb8e2faf2017-07-18 19:45:38 +030095};