blob: b732be7eb0b5137fba36a1b7a9ae8708f83360bb [file] [log] [blame]
Michael Landodd603392017-07-12 00:54:52 +03001/*-
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
Idan Amit5197c8b2018-01-15 14:31:42 +020010 *
Michael Landodd603392017-07-12 00:54:52 +030011 * http://www.apache.org/licenses/LICENSE-2.0
Idan Amit5197c8b2018-01-15 14:31:42 +020012 *
Michael Landodd603392017-07-12 00:54:52 +030013 * 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 Landoed64b5e2017-06-09 03:19:04 +030021import {AddCategoryModalViewModel} from "../view-models/admin-dashboard/add-category-modal/add-category-modal-view-model";
22import {DashboardViewModel} from "../view-models/dashboard/dashboard-view-model";
23import {WorkspaceViewModel} from "../view-models/workspace/workspace-view-model";
24import {CompositionViewModel} from "../view-models/workspace/tabs/composition/composition-view-model";
25import {DetailsViewModel} from "../view-models/workspace/tabs/composition/tabs/details/details-view-model";
26import {ResourceArtifactsViewModel} from "../view-models/workspace/tabs/composition/tabs/artifacts/artifacts-view-model";
27import {PropertyFormBaseView} from "../view-models/forms/property-forms/base-property-form/property-form-base-model";
28import {PropertyFormViewModel} from "../view-models/forms/property-forms/component-property-form/property-form-view-model";
29import {ModulePropertyView} from "../view-models/forms/property-forms/module-property-modal/module-property-model";
30import {ArtifactResourceFormViewModel} from "../view-models/forms/artifact-form/artifact-form-view-model";
31import {SelectDataTypeViewModel} from "../view-models/forms/property-forms/select-datatype-modal/select-datatype-modal-view-model";
32import {AttributeFormViewModel} from "../view-models/forms/attribute-form/attribute-from-view-model";
33import {ResourcePropertiesViewModel} from "../view-models/workspace/tabs/composition/tabs/properties-and-attributes/properties-view-model";
34import {CatalogViewModel} from "../view-models/catalog/catalog-view-model";
35import {OnboardVendorViewModel} from "../view-models/onboard-vendor/onboard-vendor-view-model";
36import {DistributionViewModel} from "../view-models/workspace/tabs/distribution/distribution-view-model";
37import {SupportViewModel} from "../view-models/support/support-view-model";
38import {ConfirmationModalViewModel} from "../view-models/modals/confirmation-modal/confirmation-modal-view-model";
39import {EmailModalViewModel} from "../view-models/modals/email-modal/email-modal-view-model";
40import {MessageModalViewModel} from "../view-models/modals/message-modal/message-base-modal-model";
41import {ServerMessageModalViewModel} from "../view-models/modals/message-modal/message-server-modal/server-message-modal-view-model";
42import {ClientMessageModalViewModel} from "../view-models/modals/message-modal/message-client-modal/client-message-modal-view-model";
43import {ErrorViewModel} from "../view-models/modals/error-modal/error-view-model";
44import {RelationsViewModel} from "../view-models/workspace/tabs/composition/tabs/relations/relations-view-model";
45import {ResourceInstanceNameViewModel} from "../view-models/forms/resource-instance-name-form/resource-instance-name-model";
46import {WelcomeViewModel} from "../view-models/welcome/welcome-view";
47import {PreLoadingViewModel} from "../view-models/preloading/preloading-view";
48import {TutorialEndViewModel} from "../view-models/tutorial-end/tutorial-end";
49import {AdminDashboardViewModel} from "../view-models/admin-dashboard/admin-dashboard-view-model";
50import {EnvParametersFormViewModel} from "../view-models/forms/env-parameters-form/env-parameters-form";
51import {StructureViewModel} from "../view-models/workspace/tabs/composition/tabs/structure/structure-view";
52import {UserManagementViewModel} from "../view-models/admin-dashboard/user-management/user-management-view-model";
53import {CategoryManagementViewModel} from "../view-models/admin-dashboard/category-management/category-management-view-model";
54
55import {OnboardingModalViewModel} from "../view-models/modals/onboarding-modal/onboarding-modal-view-model";
56import {DistributionStatusModalViewModel} from "../view-models/workspace/tabs/distribution/disribution-status-modal/disribution-status-modal-view-model";
57import {DcaeAppViewModel} from "../view-models/dcae-app/dcae-app-view-model";
58import {GeneralViewModel} from "../view-models/workspace/tabs/general/general-view-model";
Michael Lando75aacbb2017-07-17 21:12:03 +030059import {IconsModalViewModel} from "../view-models/modals/icons-modal/icons-modal-view";
Michael Landoed64b5e2017-06-09 03:19:04 +030060import {DeploymentArtifactsViewModel} from "../view-models/workspace/tabs/deployment-artifacts/deployment-artifacts-view-model";
61import {InformationArtifactsViewModel} from "../view-models/workspace/tabs/information-artifacts/information-artifacts-view-model";
62import {ToscaArtifactsViewModel} from "../view-models/workspace/tabs/tosca-artifacts/tosca-artifacts-view-model";
63import {PropertiesViewModel} from "../view-models/workspace/tabs/properties/properties-view-model";
64import {AttributesViewModel} from "../view-models/workspace/tabs/attributes/attributes-view-model";
Michael Landoed64b5e2017-06-09 03:19:04 +030065import {ActivityLogViewModel} from "../view-models/workspace/tabs/activity-log/activity-log";
66import {ManagementWorkflowViewModel} from "../view-models/workspace/tabs/management-workflow/management-workflow-view-model";
Arielk802bd2a2018-04-16 15:37:39 +030067import {InterfaceOperationViewModel} from "../view-models/workspace/tabs/interface-operation/interface-operation-view-model";
Michael Landoed64b5e2017-06-09 03:19:04 +030068import {NetworkCallFlowViewModel} from "../view-models/workspace/tabs/network-call-flow/network-call-flow-view-model";
69import {DeploymentViewModel} from "../view-models/workspace/tabs/deployment/deployment-view-model";
Michael Lando5b593492018-07-29 16:13:45 +030070// import {ResourceInputsViewModel} from "../view-models/workspace/tabs/inputs/resource-input/resource-inputs-view-model";
71// import {ServiceInputsViewModel} from "../view-models/workspace/tabs/inputs/service-input/service-inputs-view-model";
Michael Landoed64b5e2017-06-09 03:19:04 +030072import {ReqAndCapabilitiesViewModel} from "../view-models/workspace/tabs/req-and-capabilities/req-and-capabilities-view-model";
73import {InputFormViewModel} from "../view-models/forms/input-form/input-form-view-modal";
74import {HierarchyViewModel} from "../view-models/tabs/hierarchy/hierarchy-view-model";
75import {downgradeComponent} from "@angular/upgrade/static";
Michael Landob3d48982017-06-11 14:22:02 +030076import {ConformanceLevelModalViewModel} from "../view-models/modals/conformance-level-modal/conformance-level-modal-view-model";
Idan Amiteedaaf92018-01-31 13:27:33 +020077import {PluginsTabViewModel} from "../view-models/plugins/plugins-tab-view-model";
78import {PluginsContextViewModel} from "../view-models/workspace/tabs/plugins/plugins-context-view-model";
Michael Landoed64b5e2017-06-09 03:19:04 +030079// import {NG2ExampleComponent} from "../ng2/view-ng2/ng2.example.component/ng2.example.component";
80// import {upgradeAdapter} from "../ng2/app.module";
81// import { UpgradeAdapter } from '@angular/upgrade';
82let moduleName:string = 'Sdc.ViewModels';
83let viewModelModule:ng.IModule = angular.module(moduleName, []);
84
85viewModelModule
86 .controller(moduleName + '.DashboardViewModel', DashboardViewModel)
87
88 .controller(moduleName + '.DetailsViewModel', DetailsViewModel)
89 .controller(moduleName + '.ResourceArtifactsViewModel', ResourceArtifactsViewModel)
90 .controller(moduleName + '.PropertyFormBaseView', PropertyFormBaseView)
91 .controller(moduleName + '.PropertyFormViewModel', PropertyFormViewModel)
92 .controller(moduleName + '.ModulePropertyView', ModulePropertyView)
93 .controller(moduleName + '.SelectDataTypeViewModel', SelectDataTypeViewModel)
94 .controller(moduleName + '.ArtifactResourceFormViewModel', ArtifactResourceFormViewModel)
95 .controller(moduleName + '.AttributeFormViewModel', AttributeFormViewModel)
96 .controller(moduleName + '.ResourcePropertiesViewModel', ResourcePropertiesViewModel)
97 .controller(moduleName + '.CatalogViewModel', CatalogViewModel)
98 .controller(moduleName + '.OnboardVendorViewModel', OnboardVendorViewModel)
99 .controller(moduleName + '.DistributionViewModel', DistributionViewModel)
100 .controller(moduleName + '.SupportViewModel', SupportViewModel)
101 .controller(moduleName + '.ConfirmationModalViewModel', ConfirmationModalViewModel)
102 .controller(moduleName + '.EmailModalViewModel', EmailModalViewModel)
103 .controller(moduleName + '.MessageModalViewModel', MessageModalViewModel)
104 .controller(moduleName + '.ServerMessageModalViewModel', ServerMessageModalViewModel)
105 .controller(moduleName + '.ClientMessageModalViewModel', ClientMessageModalViewModel)
106 .controller(moduleName + '.ErrorViewModel', ErrorViewModel)
107 .controller(moduleName + '.RelationsViewModel', RelationsViewModel)
108 .controller(moduleName + '.ResourceInstanceNameViewModel', ResourceInstanceNameViewModel)
109 .controller(moduleName + '.WelcomeViewModel', WelcomeViewModel)
110 .controller(moduleName + '.PreLoadingViewModel', PreLoadingViewModel)
111 .controller(moduleName + '.TutorialEndViewModel', TutorialEndViewModel)
112 .controller(moduleName + '.AdminDashboardViewModel', AdminDashboardViewModel)
113 .controller(moduleName + '.EnvParametersFormViewModel', EnvParametersFormViewModel)
114 .controller(moduleName + '.StructureViewModel', StructureViewModel)
115 .controller(moduleName + '.AddCategoryModalViewModel', AddCategoryModalViewModel)
116 .controller(moduleName + '.UserManagementViewModel', UserManagementViewModel)
117 .controller(moduleName + '.CategoryManagementViewModel', CategoryManagementViewModel)
118 .controller(moduleName + '.OnboardingModalViewModel', OnboardingModalViewModel)
Michael Lando75aacbb2017-07-17 21:12:03 +0300119 .controller(moduleName + '.IconsModalViewModel', IconsModalViewModel)
Michael Landoed64b5e2017-06-09 03:19:04 +0300120 .controller(moduleName + '.DistributionStatusModalViewModel', DistributionStatusModalViewModel)
121 .controller(moduleName + '.DcaeAppViewModel', DcaeAppViewModel)
122 //
123 // //NEW
124 .controller(moduleName + '.WorkspaceViewModel', WorkspaceViewModel)
125 .controller(moduleName + '.ConformanceLevelModalViewModel', ConformanceLevelModalViewModel)
126 .controller(moduleName + '.CompositionViewModel', CompositionViewModel)
127 .controller(moduleName + '.GeneralViewModel', GeneralViewModel)
Michael Landoed64b5e2017-06-09 03:19:04 +0300128 .controller(moduleName + '.DeploymentArtifactsViewModel', DeploymentArtifactsViewModel)
129 .controller(moduleName + '.InformationArtifactsViewModel', InformationArtifactsViewModel)
130 .controller(moduleName + '.ToscaArtifactsViewModel', ToscaArtifactsViewModel)
131 .controller(moduleName + '.PropertiesViewModel', PropertiesViewModel)
132 .controller(moduleName + '.AttributesViewModel', AttributesViewModel)
Michael Landoed64b5e2017-06-09 03:19:04 +0300133 .controller(moduleName + '.ActivityLogViewModel', ActivityLogViewModel)
134 .controller(moduleName + '.ManagementWorkflowViewModel', ManagementWorkflowViewModel)
Arielk802bd2a2018-04-16 15:37:39 +0300135 .controller(moduleName + '.InterfaceOperationViewModel', InterfaceOperationViewModel)
Michael Landoed64b5e2017-06-09 03:19:04 +0300136 .controller(moduleName + '.NetworkCallFlowViewModel', NetworkCallFlowViewModel)
137 .controller(moduleName + '.DeploymentViewModel', DeploymentViewModel)
Michael Lando5b593492018-07-29 16:13:45 +0300138 // .controller(moduleName + '.ResourceInputsViewModel', ResourceInputsViewModel)
139 // .controller(moduleName + '.ServiceInputsViewModel', ServiceInputsViewModel)
Michael Landoed64b5e2017-06-09 03:19:04 +0300140 .controller(moduleName + '.ReqAndCapabilitiesViewModel', ReqAndCapabilitiesViewModel)
141 .controller(moduleName + '.InputFormViewModel', InputFormViewModel)
Idan Amiteedaaf92018-01-31 13:27:33 +0200142 .controller(moduleName + '.PluginsTabViewModel', PluginsTabViewModel)
143 .controller(moduleName + '.PluginsContextViewModel', PluginsContextViewModel)
Michael Landoed64b5e2017-06-09 03:19:04 +0300144 //
145 // //TABS
Idan Amit5197c8b2018-01-15 14:31:42 +0200146 .controller(moduleName + '.HierarchyViewModel', HierarchyViewModel);
Michael Landoed64b5e2017-06-09 03:19:04 +0300147
148 // NG2
149 //.controller(moduleName + '.NG2Example', downgradeComponent({component: NG2Example2Component}) );