Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 1 | import {AddCategoryModalViewModel} from "../view-models/admin-dashboard/add-category-modal/add-category-modal-view-model"; |
| 2 | import {DashboardViewModel} from "../view-models/dashboard/dashboard-view-model"; |
| 3 | import {WorkspaceViewModel} from "../view-models/workspace/workspace-view-model"; |
| 4 | import {CompositionViewModel} from "../view-models/workspace/tabs/composition/composition-view-model"; |
| 5 | import {DetailsViewModel} from "../view-models/workspace/tabs/composition/tabs/details/details-view-model"; |
| 6 | import {ResourceArtifactsViewModel} from "../view-models/workspace/tabs/composition/tabs/artifacts/artifacts-view-model"; |
| 7 | import {PropertyFormBaseView} from "../view-models/forms/property-forms/base-property-form/property-form-base-model"; |
| 8 | import {PropertyFormViewModel} from "../view-models/forms/property-forms/component-property-form/property-form-view-model"; |
| 9 | import {ModulePropertyView} from "../view-models/forms/property-forms/module-property-modal/module-property-model"; |
| 10 | import {ArtifactResourceFormViewModel} from "../view-models/forms/artifact-form/artifact-form-view-model"; |
| 11 | import {SelectDataTypeViewModel} from "../view-models/forms/property-forms/select-datatype-modal/select-datatype-modal-view-model"; |
| 12 | import {AttributeFormViewModel} from "../view-models/forms/attribute-form/attribute-from-view-model"; |
| 13 | import {ResourcePropertiesViewModel} from "../view-models/workspace/tabs/composition/tabs/properties-and-attributes/properties-view-model"; |
| 14 | import {CatalogViewModel} from "../view-models/catalog/catalog-view-model"; |
| 15 | import {OnboardVendorViewModel} from "../view-models/onboard-vendor/onboard-vendor-view-model"; |
| 16 | import {DistributionViewModel} from "../view-models/workspace/tabs/distribution/distribution-view-model"; |
| 17 | import {SupportViewModel} from "../view-models/support/support-view-model"; |
| 18 | import {ConfirmationModalViewModel} from "../view-models/modals/confirmation-modal/confirmation-modal-view-model"; |
| 19 | import {EmailModalViewModel} from "../view-models/modals/email-modal/email-modal-view-model"; |
| 20 | import {MessageModalViewModel} from "../view-models/modals/message-modal/message-base-modal-model"; |
| 21 | import {ServerMessageModalViewModel} from "../view-models/modals/message-modal/message-server-modal/server-message-modal-view-model"; |
| 22 | import {ClientMessageModalViewModel} from "../view-models/modals/message-modal/message-client-modal/client-message-modal-view-model"; |
| 23 | import {ErrorViewModel} from "../view-models/modals/error-modal/error-view-model"; |
| 24 | import {RelationsViewModel} from "../view-models/workspace/tabs/composition/tabs/relations/relations-view-model"; |
| 25 | import {ResourceInstanceNameViewModel} from "../view-models/forms/resource-instance-name-form/resource-instance-name-model"; |
| 26 | import {WelcomeViewModel} from "../view-models/welcome/welcome-view"; |
| 27 | import {PreLoadingViewModel} from "../view-models/preloading/preloading-view"; |
| 28 | import {TutorialEndViewModel} from "../view-models/tutorial-end/tutorial-end"; |
| 29 | import {AdminDashboardViewModel} from "../view-models/admin-dashboard/admin-dashboard-view-model"; |
| 30 | import {EnvParametersFormViewModel} from "../view-models/forms/env-parameters-form/env-parameters-form"; |
| 31 | import {StructureViewModel} from "../view-models/workspace/tabs/composition/tabs/structure/structure-view"; |
| 32 | import {UserManagementViewModel} from "../view-models/admin-dashboard/user-management/user-management-view-model"; |
| 33 | import {CategoryManagementViewModel} from "../view-models/admin-dashboard/category-management/category-management-view-model"; |
| 34 | |
| 35 | import {OnboardingModalViewModel} from "../view-models/modals/onboarding-modal/onboarding-modal-view-model"; |
| 36 | import {DistributionStatusModalViewModel} from "../view-models/workspace/tabs/distribution/disribution-status-modal/disribution-status-modal-view-model"; |
| 37 | import {DcaeAppViewModel} from "../view-models/dcae-app/dcae-app-view-model"; |
| 38 | import {GeneralViewModel} from "../view-models/workspace/tabs/general/general-view-model"; |
| 39 | import {IconsViewModel} from "../view-models/workspace/tabs/icons/icons-view-model"; |
| 40 | import {DeploymentArtifactsViewModel} from "../view-models/workspace/tabs/deployment-artifacts/deployment-artifacts-view-model"; |
| 41 | import {InformationArtifactsViewModel} from "../view-models/workspace/tabs/information-artifacts/information-artifacts-view-model"; |
| 42 | import {ToscaArtifactsViewModel} from "../view-models/workspace/tabs/tosca-artifacts/tosca-artifacts-view-model"; |
| 43 | import {PropertiesViewModel} from "../view-models/workspace/tabs/properties/properties-view-model"; |
| 44 | import {AttributesViewModel} from "../view-models/workspace/tabs/attributes/attributes-view-model"; |
| 45 | import {ProductHierarchyViewModel} from "../view-models/workspace/tabs/product-hierarchy/product-hierarchy-view-model"; |
| 46 | import {ActivityLogViewModel} from "../view-models/workspace/tabs/activity-log/activity-log"; |
| 47 | import {ManagementWorkflowViewModel} from "../view-models/workspace/tabs/management-workflow/management-workflow-view-model"; |
| 48 | import {NetworkCallFlowViewModel} from "../view-models/workspace/tabs/network-call-flow/network-call-flow-view-model"; |
| 49 | import {DeploymentViewModel} from "../view-models/workspace/tabs/deployment/deployment-view-model"; |
| 50 | import {ResourceInputsViewModel} from "../view-models/workspace/tabs/inputs/resource-input/resource-inputs-view-model"; |
| 51 | import {ServiceInputsViewModel} from "../view-models/workspace/tabs/inputs/service-input/service-inputs-view-model"; |
| 52 | import {ReqAndCapabilitiesViewModel} from "../view-models/workspace/tabs/req-and-capabilities/req-and-capabilities-view-model"; |
| 53 | import {InputFormViewModel} from "../view-models/forms/input-form/input-form-view-modal"; |
| 54 | import {HierarchyViewModel} from "../view-models/tabs/hierarchy/hierarchy-view-model"; |
| 55 | import {downgradeComponent} from "@angular/upgrade/static"; |
| 56 | import {ConformanceLevelModalViewModel} from "../view-models/workspace/conformance-level-modal/conformance-level-modal-view-model"; |
| 57 | // import {NG2ExampleComponent} from "../ng2/view-ng2/ng2.example.component/ng2.example.component"; |
| 58 | // import {upgradeAdapter} from "../ng2/app.module"; |
| 59 | // import { UpgradeAdapter } from '@angular/upgrade'; |
| 60 | let moduleName:string = 'Sdc.ViewModels'; |
| 61 | let viewModelModule:ng.IModule = angular.module(moduleName, []); |
| 62 | |
| 63 | viewModelModule |
| 64 | .controller(moduleName + '.DashboardViewModel', DashboardViewModel) |
| 65 | |
| 66 | .controller(moduleName + '.DetailsViewModel', DetailsViewModel) |
| 67 | .controller(moduleName + '.ResourceArtifactsViewModel', ResourceArtifactsViewModel) |
| 68 | .controller(moduleName + '.PropertyFormBaseView', PropertyFormBaseView) |
| 69 | .controller(moduleName + '.PropertyFormViewModel', PropertyFormViewModel) |
| 70 | .controller(moduleName + '.ModulePropertyView', ModulePropertyView) |
| 71 | .controller(moduleName + '.SelectDataTypeViewModel', SelectDataTypeViewModel) |
| 72 | .controller(moduleName + '.ArtifactResourceFormViewModel', ArtifactResourceFormViewModel) |
| 73 | .controller(moduleName + '.AttributeFormViewModel', AttributeFormViewModel) |
| 74 | .controller(moduleName + '.ResourcePropertiesViewModel', ResourcePropertiesViewModel) |
| 75 | .controller(moduleName + '.CatalogViewModel', CatalogViewModel) |
| 76 | .controller(moduleName + '.OnboardVendorViewModel', OnboardVendorViewModel) |
| 77 | .controller(moduleName + '.DistributionViewModel', DistributionViewModel) |
| 78 | .controller(moduleName + '.SupportViewModel', SupportViewModel) |
| 79 | .controller(moduleName + '.ConfirmationModalViewModel', ConfirmationModalViewModel) |
| 80 | .controller(moduleName + '.EmailModalViewModel', EmailModalViewModel) |
| 81 | .controller(moduleName + '.MessageModalViewModel', MessageModalViewModel) |
| 82 | .controller(moduleName + '.ServerMessageModalViewModel', ServerMessageModalViewModel) |
| 83 | .controller(moduleName + '.ClientMessageModalViewModel', ClientMessageModalViewModel) |
| 84 | .controller(moduleName + '.ErrorViewModel', ErrorViewModel) |
| 85 | .controller(moduleName + '.RelationsViewModel', RelationsViewModel) |
| 86 | .controller(moduleName + '.ResourceInstanceNameViewModel', ResourceInstanceNameViewModel) |
| 87 | .controller(moduleName + '.WelcomeViewModel', WelcomeViewModel) |
| 88 | .controller(moduleName + '.PreLoadingViewModel', PreLoadingViewModel) |
| 89 | .controller(moduleName + '.TutorialEndViewModel', TutorialEndViewModel) |
| 90 | .controller(moduleName + '.AdminDashboardViewModel', AdminDashboardViewModel) |
| 91 | .controller(moduleName + '.EnvParametersFormViewModel', EnvParametersFormViewModel) |
| 92 | .controller(moduleName + '.StructureViewModel', StructureViewModel) |
| 93 | .controller(moduleName + '.AddCategoryModalViewModel', AddCategoryModalViewModel) |
| 94 | .controller(moduleName + '.UserManagementViewModel', UserManagementViewModel) |
| 95 | .controller(moduleName + '.CategoryManagementViewModel', CategoryManagementViewModel) |
| 96 | .controller(moduleName + '.OnboardingModalViewModel', OnboardingModalViewModel) |
| 97 | .controller(moduleName + '.DistributionStatusModalViewModel', DistributionStatusModalViewModel) |
| 98 | .controller(moduleName + '.DcaeAppViewModel', DcaeAppViewModel) |
| 99 | // |
| 100 | // //NEW |
| 101 | .controller(moduleName + '.WorkspaceViewModel', WorkspaceViewModel) |
| 102 | .controller(moduleName + '.ConformanceLevelModalViewModel', ConformanceLevelModalViewModel) |
| 103 | .controller(moduleName + '.CompositionViewModel', CompositionViewModel) |
| 104 | .controller(moduleName + '.GeneralViewModel', GeneralViewModel) |
| 105 | .controller(moduleName + '.IconsViewModel', IconsViewModel) |
| 106 | .controller(moduleName + '.DeploymentArtifactsViewModel', DeploymentArtifactsViewModel) |
| 107 | .controller(moduleName + '.InformationArtifactsViewModel', InformationArtifactsViewModel) |
| 108 | .controller(moduleName + '.ToscaArtifactsViewModel', ToscaArtifactsViewModel) |
| 109 | .controller(moduleName + '.PropertiesViewModel', PropertiesViewModel) |
| 110 | .controller(moduleName + '.AttributesViewModel', AttributesViewModel) |
| 111 | .controller(moduleName + '.ProductHierarchyViewModel', ProductHierarchyViewModel) |
| 112 | .controller(moduleName + '.ActivityLogViewModel', ActivityLogViewModel) |
| 113 | .controller(moduleName + '.ManagementWorkflowViewModel', ManagementWorkflowViewModel) |
| 114 | .controller(moduleName + '.NetworkCallFlowViewModel', NetworkCallFlowViewModel) |
| 115 | .controller(moduleName + '.DeploymentViewModel', DeploymentViewModel) |
| 116 | .controller(moduleName + '.ResourceInputsViewModel', ResourceInputsViewModel) |
| 117 | .controller(moduleName + '.ServiceInputsViewModel', ServiceInputsViewModel) |
| 118 | .controller(moduleName + '.ReqAndCapabilitiesViewModel', ReqAndCapabilitiesViewModel) |
| 119 | .controller(moduleName + '.InputFormViewModel', InputFormViewModel) |
| 120 | // |
| 121 | // //TABS |
| 122 | .controller(moduleName + '.HierarchyViewModel', HierarchyViewModel) |
| 123 | |
| 124 | // NG2 |
| 125 | //.controller(moduleName + '.NG2Example', downgradeComponent({component: NG2Example2Component}) ); |