Michael Lando | dd60339 | 2017-07-12 00:54:52 +0300 | [diff] [blame] | 1 | /*- |
| 2 | * ============LICENSE_START======================================================= |
| 3 | * SDC |
| 4 | * ================================================================================ |
| 5 | * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| 6 | * ================================================================================ |
| 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | * you may not use this file except in compliance with the License. |
| 9 | * You may obtain a copy of the License at |
| 10 | * |
| 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | * |
| 13 | * Unless required by applicable law or agreed to in writing, software |
| 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | * See the License for the specific language governing permissions and |
| 17 | * limitations under the License. |
| 18 | * ============LICENSE_END========================================================= |
| 19 | */ |
| 20 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 21 | import {AddCategoryModalViewModel} from "../view-models/admin-dashboard/add-category-modal/add-category-modal-view-model"; |
| 22 | import {DashboardViewModel} from "../view-models/dashboard/dashboard-view-model"; |
| 23 | import {WorkspaceViewModel} from "../view-models/workspace/workspace-view-model"; |
| 24 | import {CompositionViewModel} from "../view-models/workspace/tabs/composition/composition-view-model"; |
| 25 | import {DetailsViewModel} from "../view-models/workspace/tabs/composition/tabs/details/details-view-model"; |
| 26 | import {ResourceArtifactsViewModel} from "../view-models/workspace/tabs/composition/tabs/artifacts/artifacts-view-model"; |
| 27 | import {PropertyFormBaseView} from "../view-models/forms/property-forms/base-property-form/property-form-base-model"; |
| 28 | import {PropertyFormViewModel} from "../view-models/forms/property-forms/component-property-form/property-form-view-model"; |
| 29 | import {ModulePropertyView} from "../view-models/forms/property-forms/module-property-modal/module-property-model"; |
| 30 | import {ArtifactResourceFormViewModel} from "../view-models/forms/artifact-form/artifact-form-view-model"; |
| 31 | import {SelectDataTypeViewModel} from "../view-models/forms/property-forms/select-datatype-modal/select-datatype-modal-view-model"; |
| 32 | import {AttributeFormViewModel} from "../view-models/forms/attribute-form/attribute-from-view-model"; |
| 33 | import {ResourcePropertiesViewModel} from "../view-models/workspace/tabs/composition/tabs/properties-and-attributes/properties-view-model"; |
| 34 | import {CatalogViewModel} from "../view-models/catalog/catalog-view-model"; |
| 35 | import {OnboardVendorViewModel} from "../view-models/onboard-vendor/onboard-vendor-view-model"; |
| 36 | import {DistributionViewModel} from "../view-models/workspace/tabs/distribution/distribution-view-model"; |
| 37 | import {SupportViewModel} from "../view-models/support/support-view-model"; |
| 38 | import {ConfirmationModalViewModel} from "../view-models/modals/confirmation-modal/confirmation-modal-view-model"; |
| 39 | import {EmailModalViewModel} from "../view-models/modals/email-modal/email-modal-view-model"; |
| 40 | import {MessageModalViewModel} from "../view-models/modals/message-modal/message-base-modal-model"; |
| 41 | import {ServerMessageModalViewModel} from "../view-models/modals/message-modal/message-server-modal/server-message-modal-view-model"; |
| 42 | import {ClientMessageModalViewModel} from "../view-models/modals/message-modal/message-client-modal/client-message-modal-view-model"; |
| 43 | import {ErrorViewModel} from "../view-models/modals/error-modal/error-view-model"; |
| 44 | import {RelationsViewModel} from "../view-models/workspace/tabs/composition/tabs/relations/relations-view-model"; |
| 45 | import {ResourceInstanceNameViewModel} from "../view-models/forms/resource-instance-name-form/resource-instance-name-model"; |
| 46 | import {WelcomeViewModel} from "../view-models/welcome/welcome-view"; |
| 47 | import {PreLoadingViewModel} from "../view-models/preloading/preloading-view"; |
| 48 | import {TutorialEndViewModel} from "../view-models/tutorial-end/tutorial-end"; |
| 49 | import {AdminDashboardViewModel} from "../view-models/admin-dashboard/admin-dashboard-view-model"; |
| 50 | import {EnvParametersFormViewModel} from "../view-models/forms/env-parameters-form/env-parameters-form"; |
| 51 | import {StructureViewModel} from "../view-models/workspace/tabs/composition/tabs/structure/structure-view"; |
| 52 | import {UserManagementViewModel} from "../view-models/admin-dashboard/user-management/user-management-view-model"; |
| 53 | import {CategoryManagementViewModel} from "../view-models/admin-dashboard/category-management/category-management-view-model"; |
| 54 | |
| 55 | import {OnboardingModalViewModel} from "../view-models/modals/onboarding-modal/onboarding-modal-view-model"; |
| 56 | import {DistributionStatusModalViewModel} from "../view-models/workspace/tabs/distribution/disribution-status-modal/disribution-status-modal-view-model"; |
| 57 | import {DcaeAppViewModel} from "../view-models/dcae-app/dcae-app-view-model"; |
| 58 | import {GeneralViewModel} from "../view-models/workspace/tabs/general/general-view-model"; |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 59 | import {IconsModalViewModel} from "../view-models/modals/icons-modal/icons-modal-view"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 60 | import {DeploymentArtifactsViewModel} from "../view-models/workspace/tabs/deployment-artifacts/deployment-artifacts-view-model"; |
| 61 | import {InformationArtifactsViewModel} from "../view-models/workspace/tabs/information-artifacts/information-artifacts-view-model"; |
| 62 | import {ToscaArtifactsViewModel} from "../view-models/workspace/tabs/tosca-artifacts/tosca-artifacts-view-model"; |
| 63 | import {PropertiesViewModel} from "../view-models/workspace/tabs/properties/properties-view-model"; |
| 64 | import {AttributesViewModel} from "../view-models/workspace/tabs/attributes/attributes-view-model"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 65 | import {ActivityLogViewModel} from "../view-models/workspace/tabs/activity-log/activity-log"; |
| 66 | import {ManagementWorkflowViewModel} from "../view-models/workspace/tabs/management-workflow/management-workflow-view-model"; |
| 67 | import {NetworkCallFlowViewModel} from "../view-models/workspace/tabs/network-call-flow/network-call-flow-view-model"; |
| 68 | import {DeploymentViewModel} from "../view-models/workspace/tabs/deployment/deployment-view-model"; |
| 69 | import {ResourceInputsViewModel} from "../view-models/workspace/tabs/inputs/resource-input/resource-inputs-view-model"; |
| 70 | import {ServiceInputsViewModel} from "../view-models/workspace/tabs/inputs/service-input/service-inputs-view-model"; |
| 71 | import {ReqAndCapabilitiesViewModel} from "../view-models/workspace/tabs/req-and-capabilities/req-and-capabilities-view-model"; |
| 72 | import {InputFormViewModel} from "../view-models/forms/input-form/input-form-view-modal"; |
| 73 | import {HierarchyViewModel} from "../view-models/tabs/hierarchy/hierarchy-view-model"; |
| 74 | import {downgradeComponent} from "@angular/upgrade/static"; |
Michael Lando | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 75 | import {ConformanceLevelModalViewModel} from "../view-models/modals/conformance-level-modal/conformance-level-modal-view-model"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 76 | // import {NG2ExampleComponent} from "../ng2/view-ng2/ng2.example.component/ng2.example.component"; |
| 77 | // import {upgradeAdapter} from "../ng2/app.module"; |
| 78 | // import { UpgradeAdapter } from '@angular/upgrade'; |
| 79 | let moduleName:string = 'Sdc.ViewModels'; |
| 80 | let viewModelModule:ng.IModule = angular.module(moduleName, []); |
| 81 | |
| 82 | viewModelModule |
| 83 | .controller(moduleName + '.DashboardViewModel', DashboardViewModel) |
| 84 | |
| 85 | .controller(moduleName + '.DetailsViewModel', DetailsViewModel) |
| 86 | .controller(moduleName + '.ResourceArtifactsViewModel', ResourceArtifactsViewModel) |
| 87 | .controller(moduleName + '.PropertyFormBaseView', PropertyFormBaseView) |
| 88 | .controller(moduleName + '.PropertyFormViewModel', PropertyFormViewModel) |
| 89 | .controller(moduleName + '.ModulePropertyView', ModulePropertyView) |
| 90 | .controller(moduleName + '.SelectDataTypeViewModel', SelectDataTypeViewModel) |
| 91 | .controller(moduleName + '.ArtifactResourceFormViewModel', ArtifactResourceFormViewModel) |
| 92 | .controller(moduleName + '.AttributeFormViewModel', AttributeFormViewModel) |
| 93 | .controller(moduleName + '.ResourcePropertiesViewModel', ResourcePropertiesViewModel) |
| 94 | .controller(moduleName + '.CatalogViewModel', CatalogViewModel) |
| 95 | .controller(moduleName + '.OnboardVendorViewModel', OnboardVendorViewModel) |
| 96 | .controller(moduleName + '.DistributionViewModel', DistributionViewModel) |
| 97 | .controller(moduleName + '.SupportViewModel', SupportViewModel) |
| 98 | .controller(moduleName + '.ConfirmationModalViewModel', ConfirmationModalViewModel) |
| 99 | .controller(moduleName + '.EmailModalViewModel', EmailModalViewModel) |
| 100 | .controller(moduleName + '.MessageModalViewModel', MessageModalViewModel) |
| 101 | .controller(moduleName + '.ServerMessageModalViewModel', ServerMessageModalViewModel) |
| 102 | .controller(moduleName + '.ClientMessageModalViewModel', ClientMessageModalViewModel) |
| 103 | .controller(moduleName + '.ErrorViewModel', ErrorViewModel) |
| 104 | .controller(moduleName + '.RelationsViewModel', RelationsViewModel) |
| 105 | .controller(moduleName + '.ResourceInstanceNameViewModel', ResourceInstanceNameViewModel) |
| 106 | .controller(moduleName + '.WelcomeViewModel', WelcomeViewModel) |
| 107 | .controller(moduleName + '.PreLoadingViewModel', PreLoadingViewModel) |
| 108 | .controller(moduleName + '.TutorialEndViewModel', TutorialEndViewModel) |
| 109 | .controller(moduleName + '.AdminDashboardViewModel', AdminDashboardViewModel) |
| 110 | .controller(moduleName + '.EnvParametersFormViewModel', EnvParametersFormViewModel) |
| 111 | .controller(moduleName + '.StructureViewModel', StructureViewModel) |
| 112 | .controller(moduleName + '.AddCategoryModalViewModel', AddCategoryModalViewModel) |
| 113 | .controller(moduleName + '.UserManagementViewModel', UserManagementViewModel) |
| 114 | .controller(moduleName + '.CategoryManagementViewModel', CategoryManagementViewModel) |
| 115 | .controller(moduleName + '.OnboardingModalViewModel', OnboardingModalViewModel) |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 116 | .controller(moduleName + '.IconsModalViewModel', IconsModalViewModel) |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 117 | .controller(moduleName + '.DistributionStatusModalViewModel', DistributionStatusModalViewModel) |
| 118 | .controller(moduleName + '.DcaeAppViewModel', DcaeAppViewModel) |
| 119 | // |
| 120 | // //NEW |
| 121 | .controller(moduleName + '.WorkspaceViewModel', WorkspaceViewModel) |
| 122 | .controller(moduleName + '.ConformanceLevelModalViewModel', ConformanceLevelModalViewModel) |
| 123 | .controller(moduleName + '.CompositionViewModel', CompositionViewModel) |
| 124 | .controller(moduleName + '.GeneralViewModel', GeneralViewModel) |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 125 | .controller(moduleName + '.DeploymentArtifactsViewModel', DeploymentArtifactsViewModel) |
| 126 | .controller(moduleName + '.InformationArtifactsViewModel', InformationArtifactsViewModel) |
| 127 | .controller(moduleName + '.ToscaArtifactsViewModel', ToscaArtifactsViewModel) |
| 128 | .controller(moduleName + '.PropertiesViewModel', PropertiesViewModel) |
| 129 | .controller(moduleName + '.AttributesViewModel', AttributesViewModel) |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 130 | .controller(moduleName + '.ActivityLogViewModel', ActivityLogViewModel) |
| 131 | .controller(moduleName + '.ManagementWorkflowViewModel', ManagementWorkflowViewModel) |
| 132 | .controller(moduleName + '.NetworkCallFlowViewModel', NetworkCallFlowViewModel) |
| 133 | .controller(moduleName + '.DeploymentViewModel', DeploymentViewModel) |
| 134 | .controller(moduleName + '.ResourceInputsViewModel', ResourceInputsViewModel) |
| 135 | .controller(moduleName + '.ServiceInputsViewModel', ServiceInputsViewModel) |
| 136 | .controller(moduleName + '.ReqAndCapabilitiesViewModel', ReqAndCapabilitiesViewModel) |
| 137 | .controller(moduleName + '.InputFormViewModel', InputFormViewModel) |
| 138 | // |
| 139 | // //TABS |
| 140 | .controller(moduleName + '.HierarchyViewModel', HierarchyViewModel) |
| 141 | |
| 142 | // NG2 |
| 143 | //.controller(moduleName + '.NG2Example', downgradeComponent({component: NG2Example2Component}) ); |