aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/modules
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/modules')
-rw-r--r--catalog-ui/src/app/modules/directive-module.ts152
-rw-r--r--catalog-ui/src/app/modules/filters.ts26
-rw-r--r--catalog-ui/src/app/modules/service-module.ts66
-rw-r--r--catalog-ui/src/app/modules/utils.ts16
-rw-r--r--catalog-ui/src/app/modules/view-model-module.ts125
5 files changed, 385 insertions, 0 deletions
diff --git a/catalog-ui/src/app/modules/directive-module.ts b/catalog-ui/src/app/modules/directive-module.ts
new file mode 100644
index 0000000000..6ad89b8db7
--- /dev/null
+++ b/catalog-ui/src/app/modules/directive-module.ts
@@ -0,0 +1,152 @@
+import {ClickedOutsideDirective} from "../directives/clicked-outside/clicked-outside-directive";
+import {LoaderDirective} from "../directives/loader/loader-directive";
+import {UserHeaderDetailsDirective} from "../directives/user-header-details/user-header-details-directive";
+import {FileTypeDirective} from "../directives/file-type/file-type";
+import {DownloadArtifactDirective} from "../directives/download-artifact/download-artifact";
+import {EllipsisDirective} from "../directives/ellipsis/ellipsis-directive";
+import {InvalidCharactersDirective} from "../directives/invalid-characters/invalid-characters";
+import {ExpandCollapseDirective} from "../directives/utils/expand-collapse/expand-collapse";
+import {PerfectScrollerDirective} from "../directives/perfect-scrollbar/angular-perfect-scrollbar";
+import {SdcModalDirective} from "../directives/modal/sdc-modal";
+import {FileOpenerDirective} from "../directives/file-opener/file-opener";
+import {FileUploadDirective} from "../directives/file-upload/file-upload";
+import {StructureTreeDirective} from "../directives/structure-tree/structure-tree-directive";
+import {SmartTooltipDirective} from "../directives/utils/smart-tooltip/smart-tooltip";
+import {PrintGraphScreenDirective} from "../directives/print-graph-screen/print-graph-screen";
+import {TagDirective} from "../directives/tag/tag-directive";
+import {SdcTagsDirective} from "../directives/utils/sdc-tags/sdc-tags";
+import {SdcKeyboardEventsDirective} from "../directives/utils/sdc-keyboard-events/sdc-keyboard-events";
+import {ExpandCollapseMenuBoxDirective} from "../directives/utils/expand-collapse-menu-box/expand-collaps-menu-box";
+import {PunchOutDirective} from "../directives/punch-out/punch-out";
+import {CustomValidationDirective} from "../directives/custom-validation/custom-validation";
+import {EcompHeaderDirective} from "../directives/ecomp-header/ecomp-header";
+import {EcompFooterDirective} from "../directives/ecomp-footer/ecomp-footer";
+import {EditNamePopoverDirective} from "../directives/edit-name-popover/edit-name-popover-directive";
+import {DataTypeFieldsStructureDirective} from "../directives/property-types/data-type-fields-structure/data-type-fields-structure";
+import {TypeMapDirective} from "../directives/property-types/type-map/type-map-directive";
+import {TypeListDirective} from "../directives/property-types/type-list/type-list-directive";
+import {SelectDataTypeFieldsStructureDirective} from "../directives/select-property-types/select-data-type-fields-structure/select-data-type-fields-structure";
+import {SelectTypeMapDirective} from "../directives/select-property-types/select-type-map/select-type-map-directive";
+import {SelectTypeListDirective} from "../directives/select-property-types/select-type-list/select-type-list-directive";
+import {ValidationOnLoadDirective} from "../directives/utils/validation-on-load/validation-on-load";
+import {InfoTooltipDirective} from "../directives/info-tooltip/info-tooltip";
+import {SdcTabsDirective} from "../directives/sdc-tabs/sdc-tabs-directive";
+import {SdcSingleTabDirective, InnerSdcSingleTabDirective} from "../directives/sdc-tabs/sdc-single-tab/sdc-single-tab-directive";
+import {ExpandCollapseListHeaderDirective} from "../directives/utils/expand-collapse-list-header/expand-collapse-list-header";
+import {JsonExportExcelDirective} from "../directives/export-json-to-excel/export-json-to-excel";
+import {TopNavDirective} from "../directives/layout/top-nav/top-nav";
+import {TopProgressDirective} from "../directives/layout/top-progress/top-progress";
+import {CheckboxElementDirective} from "../directives/elements/checkbox/checkbox";
+import {RadiobuttonElementDirective} from "../directives/elements/radiobutton/radiobutton";
+import {OnLastRepeatDirective} from "../directives/events/on-last-repeat/on-last-repeat";
+import {InputRowDirective} from "../directives/inputs-and-properties/inputs/input-row-directive";
+import {PropertyRowDirective} from "../directives/inputs-and-properties/properties/property-row-directive";
+import {NodesFactory} from "../models/graph/nodes/nodes-factory";
+import {LinksFactory} from "../models/graph/graph-links/links-factory";
+import {ImageCreatorService} from "../directives/graphs-v2/image-creator/image-creator.service";
+import {Palette} from "../directives/graphs-v2/palette/palette.directive";
+import {CompositionGraph} from "../directives/graphs-v2/composition-graph/composition-graph.directive";
+import {RelationMenuDirective} from "../directives/graphs-v2/relation-menu/relation-menu";
+import {DeploymentGraph} from "../directives/graphs-v2/deployment-graph/deployment-graph.directive";
+import {CommonGraphUtils} from "../directives/graphs-v2/common/common-graph-utils";
+import {CompositionGraphNodesUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-nodes-utils";
+import {CompositionGraphGeneralUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-general-utils";
+import {CompositionGraphLinkUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-links-utils";
+import {DeploymentGraphGeneralUtils} from "../directives/graphs-v2/deployment-graph/deployment-utils/deployment-graph-general-utils";
+import {CompositionGraphPaletteUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-palette-utils";
+import {MatchCapabilitiesRequirementsUtils} from "../directives/graphs-v2/composition-graph/utils/match-capability-requierment-utils";
+import {AssetPopoverDirective} from "../directives/graphs-v2/asset-popover/asset-popover";
+import {downgradeComponent} from "@angular/upgrade/static";
+import {CapabilitiesListDirective} from "../directives/capabilities-and-requirements/capability/capabilities-list-directive";
+import {RequirementsListDirective} from "../directives/capabilities-and-requirements/requirement/requirements-list-directive";
+
+let moduleName:string = 'Sdc.Directives';
+let directiveModule:ng.IModule = angular.module(moduleName, []);
+
+directiveModule.directive('clickedOutside', ClickedOutsideDirective.factory);
+directiveModule.directive('loader', LoaderDirective.factory);
+directiveModule.directive('userHeaderDetails', UserHeaderDetailsDirective.factory);
+directiveModule.directive('ellipsis', EllipsisDirective.factory);
+directiveModule.directive('downloadArtifact', DownloadArtifactDirective.factory);
+directiveModule.directive('fileType', FileTypeDirective.factory);
+directiveModule.directive('invalidCharacters', InvalidCharactersDirective.factory);
+directiveModule.directive('perfectScrollbar', PerfectScrollerDirective.factory);
+directiveModule.directive('expandCollapse', ExpandCollapseDirective.factory);
+directiveModule.directive('sdcModal', SdcModalDirective.factory);
+directiveModule.directive('fileOpener', FileOpenerDirective.factory);
+directiveModule.directive('fileUpload', FileUploadDirective.factory);
+directiveModule.directive('structureTree', StructureTreeDirective.factory);
+directiveModule.directive('sdcSmartTooltip', SmartTooltipDirective.factory);
+directiveModule.directive('printGraphScreen', PrintGraphScreenDirective.factory);
+directiveModule.directive('sdcTag', TagDirective.factory);
+directiveModule.directive('sdcTags', SdcTagsDirective.factory);
+directiveModule.directive('sdcKeyboardEvents', SdcKeyboardEventsDirective.factory);
+directiveModule.directive('expandCollapseMenuBox', ExpandCollapseMenuBoxDirective.factory);
+directiveModule.directive('punchOut', PunchOutDirective.factory);
+directiveModule.directive('customValidation', CustomValidationDirective.factory);
+directiveModule.directive('ecompHeader', EcompHeaderDirective.factory);
+directiveModule.directive('ecompFooter', EcompFooterDirective.factory);
+directiveModule.directive('editNamePopover', EditNamePopoverDirective.factory);
+directiveModule.directive('fieldsStructure', DataTypeFieldsStructureDirective.factory);
+directiveModule.directive('typeMap', TypeMapDirective.factory);
+directiveModule.directive('typeList', TypeListDirective.factory);
+directiveModule.directive('selectFieldsStructure', SelectDataTypeFieldsStructureDirective.factory);
+directiveModule.directive('selectTypeMap', SelectTypeMapDirective.factory);
+directiveModule.directive('selectTypeList', SelectTypeListDirective.factory);
+directiveModule.directive('infoTooltip', InfoTooltipDirective.factory);
+directiveModule.directive('validationOnLoad', ValidationOnLoadDirective.factory);
+directiveModule.directive('sdcTabs', SdcTabsDirective.factory);
+directiveModule.directive('sdcSingleTab', SdcSingleTabDirective.factory);
+directiveModule.directive('innerSdcSingleTab', InnerSdcSingleTabDirective.factory);
+directiveModule.directive('jsonExportExcel', JsonExportExcelDirective.factory);
+directiveModule.directive('expandCollapseListHeader', ExpandCollapseListHeaderDirective.factory);
+//
+// // Layouts
+directiveModule.directive('topNav', TopNavDirective.factory);
+directiveModule.directive('topProgress', TopProgressDirective.factory);
+//
+// // Elements
+directiveModule.directive('sdcCheckbox', CheckboxElementDirective.factory);
+directiveModule.directive('sdcRadioButton', RadiobuttonElementDirective.factory);
+//
+// // Events
+directiveModule.directive('onLastRepeat', OnLastRepeatDirective.factory);
+//
+// //Inputs & Properties
+directiveModule.directive('inputRow', InputRowDirective.factory);
+directiveModule.directive('propertyRow', PropertyRowDirective.factory);
+//
+//
+// // ------------------------------------------- Composition & Deployment Graphs------------------------------------------//
+//
+// //Util service for Graph
+directiveModule.service('NodesFactory', NodesFactory);
+directiveModule.service('LinksFactory', LinksFactory);
+directiveModule.service('ImageCreatorService', ImageCreatorService);
+//
+// //composition
+directiveModule.directive('palette', Palette.factory);
+directiveModule.directive('compositionGraph', CompositionGraph.factory);
+directiveModule.directive('relationMenu', RelationMenuDirective.factory);
+ //directiveModule.directive('assetPopover', AssetPopoverDirective.factory);
+//
+// //deployment
+directiveModule.directive('deploymentGraph', DeploymentGraph.factory);
+//
+// //Graph Utils - Common
+directiveModule.service('CommonGraphUtils', CommonGraphUtils);
+//
+// //Composition Graph Utils
+directiveModule.service('CompositionGraphNodesUtils', CompositionGraphNodesUtils);
+directiveModule.service('CompositionGraphGeneralUtils', CompositionGraphGeneralUtils);
+directiveModule.service('CompositionGraphLinkUtils', CompositionGraphLinkUtils);
+directiveModule.service('CompositionGraphPaletteUtils', CompositionGraphPaletteUtils);
+directiveModule.service('MatchCapabilitiesRequirementsUtils', MatchCapabilitiesRequirementsUtils);
+//
+// //Deployment Graph Utils
+directiveModule.service('DeploymentGraphGeneralUtils', DeploymentGraphGeneralUtils);
+
+
+//Compoisiton right tab directives
+directiveModule.directive('capabilitiesList', CapabilitiesListDirective.factory);
+directiveModule.directive('requirementsList', RequirementsListDirective.factory);
diff --git a/catalog-ui/src/app/modules/filters.ts b/catalog-ui/src/app/modules/filters.ts
new file mode 100644
index 0000000000..a62283f927
--- /dev/null
+++ b/catalog-ui/src/app/modules/filters.ts
@@ -0,0 +1,26 @@
+import {TestsIdFilter} from "../filters/tests-id-filter";
+import {TrimFilter} from "../filters/trim-filter";
+import {ResourceTypeFilter} from "../filters/resource-type-filter";
+import {StringToDateFilter} from "../filters/string-to-date-filter";
+import {CategoryTypeFilter} from "../filters/category-type-filter";
+import {CatalogStatusFilter} from "../filters/catalog-status-filter";
+import {TruncateFilter} from "../filters/truncate-filter";
+import {EntityFilter} from "../filters/entity-filter";
+import {GraphResourceNameFilter} from "../filters/graph-resource-name-filter";
+import {ResourceNameFilter} from "../filters/resource-name-filter";
+import {ClearWhiteSpacesFilter} from "../filters/clear-whitespaces-filter";
+
+let moduleName:string = 'Sdc.Filters';
+let filterModule:ng.IModule = angular.module(moduleName, []);
+
+filterModule.filter("resourceName", ResourceNameFilter);
+filterModule.filter("graphResourceName", GraphResourceNameFilter);
+filterModule.filter("entityFilter", EntityFilter);
+filterModule.filter("truncate", TruncateFilter);
+filterModule.filter("catalogStatusFilter", CatalogStatusFilter);
+filterModule.filter("categoryTypeFilter", CategoryTypeFilter);
+filterModule.filter("stringToDateFilter", StringToDateFilter);
+filterModule.filter("resourceTypeName", ResourceTypeFilter);
+filterModule.filter("trim", TrimFilter);
+filterModule.filter("clearWhiteSpaces", ClearWhiteSpacesFilter);
+filterModule.filter('testsId', TestsIdFilter);
diff --git a/catalog-ui/src/app/modules/service-module.ts b/catalog-ui/src/app/modules/service-module.ts
new file mode 100644
index 0000000000..55ba87b9fb
--- /dev/null
+++ b/catalog-ui/src/app/modules/service-module.ts
@@ -0,0 +1,66 @@
+import {ConfigurationUiService} from "../services/configuration-ui-service";
+import {CookieService} from "../services/cookie-service";
+import {EntityService} from "../services/entity-service";
+import {AvailableIconsService} from "../services/available-icons-service";
+import {UrlToBase64Service} from "../services/url-tobase64-service";
+import {CacheService} from "../services/cache-service";
+import {HeaderInterceptor} from "../services/header-interceptor";
+import {HttpErrorInterceptor} from "../services/http-error-interceptor";
+import {SharingService} from "../services/sharing-service";
+import {SdcVersionService} from "../services/sdc-version-service";
+import {ActivityLogService} from "../services/activity-log-service";
+import {OnboardingService} from "../services/onboarding-service";
+import {EcompHeaderService} from "../services/ecomp-service";
+import {DataTypesService} from "../services/data-types-service";
+import {ComponentService} from "../services/components/component-service";
+import {ServiceService} from "../services/components/service-service";
+import {ResourceService} from "../services/components/resource-service";
+import {ProductService} from "../services/components/product-service";
+import {LeftPaletteLoaderService} from "../services/components/utils/composition-left-palette-service";
+import {EventListenerService} from "../services/event-listener-service";
+import {ProgressService} from "../services/progress-service";
+import {ArtifactsUtils} from "../utils/artifacts-utils";
+import {FileUtils} from "../utils/file-utils";
+import {ValidationUtils} from "../utils/validation-utils";
+import {AngularJSBridge} from "../services/angular-js-bridge-service";
+import {LoaderService} from "../services/loader-service";
+import {UserResourceService} from "../services/user-resource-service";
+import {CategoryResourceService} from "../services/category-resource-service";
+
+let moduleName:string = 'Sdc.Services';
+let serviceModule:ng.IModule = angular.module(moduleName, []);
+
+serviceModule.service('Sdc.Services.ConfigurationUiService', ConfigurationUiService);
+serviceModule.service('Sdc.Services.CookieService', CookieService);
+serviceModule.service('Sdc.Services.EntityService', EntityService);
+serviceModule.service('Sdc.Services.AvailableIconsService', AvailableIconsService);
+serviceModule.service('Sdc.Services.UrlToBase64Service', UrlToBase64Service);
+serviceModule.service('Sdc.Services.CacheService', CacheService);
+serviceModule.service('Sdc.Services.HeaderInterceptor', HeaderInterceptor);
+serviceModule.service('Sdc.Services.HttpErrorInterceptor', HttpErrorInterceptor);
+serviceModule.service('Sdc.Services.SharingService', SharingService);
+serviceModule.service('Sdc.Services.SdcVersionService', SdcVersionService);
+serviceModule.service('Sdc.Services.ActivityLogService', ActivityLogService);
+serviceModule.service('Sdc.Services.OnboardingService', OnboardingService);
+serviceModule.service('Sdc.Services.EcompHeaderService', EcompHeaderService);
+serviceModule.service('Sdc.Services.DataTypesService', DataTypesService);
+
+//Components Services
+serviceModule.service('Sdc.Services.Components.ComponentService', ComponentService);
+serviceModule.service('Sdc.Services.Components.ServiceService',ServiceService);
+serviceModule.service('Sdc.Services.Components.ResourceService', ResourceService);
+serviceModule.service('Sdc.Services.Components.ProductService', ProductService);
+serviceModule.service('LeftPaletteLoaderService', LeftPaletteLoaderService);
+serviceModule.service('EventListenerService', EventListenerService);
+serviceModule.service('Sdc.Services.ProgressService', ProgressService);
+
+//Utils
+serviceModule.service('ArtifactsUtils', ArtifactsUtils);
+serviceModule.service('FileUtils', FileUtils);
+serviceModule.service('ValidationUtils', ValidationUtils);
+
+serviceModule.service('AngularJSBridge',AngularJSBridge);
+serviceModule.service('LoaderService', LoaderService);
+
+serviceModule.factory('Sdc.Services.UserResourceService', UserResourceService.getResource);
+serviceModule.factory('Sdc.Services.CategoryResourceService', CategoryResourceService.getResource);
diff --git a/catalog-ui/src/app/modules/utils.ts b/catalog-ui/src/app/modules/utils.ts
new file mode 100644
index 0000000000..529857ac39
--- /dev/null
+++ b/catalog-ui/src/app/modules/utils.ts
@@ -0,0 +1,16 @@
+import {ComponentFactory} from "../utils/component-factory";
+import {ComponentInstanceFactory} from "../utils/component-instance-factory";
+import {ChangeLifecycleStateHandler} from "../utils/change-lifecycle-state-handler";
+import {ModalsHandler} from "../utils/modals-handler";
+import {MenuHandler} from "../utils/menu-handler";
+
+let moduleName:string = 'Sdc.Utils';
+let serviceModule:ng.IModule = angular.module(moduleName, []);
+
+//Utils
+serviceModule.service('ComponentFactory', ComponentFactory);
+serviceModule.service('ComponentInstanceFactory', ComponentInstanceFactory);
+serviceModule.service('ChangeLifecycleStateHandler', ChangeLifecycleStateHandler);
+serviceModule.service('ModalsHandler', ModalsHandler);
+serviceModule.service('MenuHandler', MenuHandler);
+
diff --git a/catalog-ui/src/app/modules/view-model-module.ts b/catalog-ui/src/app/modules/view-model-module.ts
new file mode 100644
index 0000000000..4060fe794e
--- /dev/null
+++ b/catalog-ui/src/app/modules/view-model-module.ts
@@ -0,0 +1,125 @@
+import {AddCategoryModalViewModel} from "../view-models/admin-dashboard/add-category-modal/add-category-modal-view-model";
+import {DashboardViewModel} from "../view-models/dashboard/dashboard-view-model";
+import {WorkspaceViewModel} from "../view-models/workspace/workspace-view-model";
+import {CompositionViewModel} from "../view-models/workspace/tabs/composition/composition-view-model";
+import {DetailsViewModel} from "../view-models/workspace/tabs/composition/tabs/details/details-view-model";
+import {ResourceArtifactsViewModel} from "../view-models/workspace/tabs/composition/tabs/artifacts/artifacts-view-model";
+import {PropertyFormBaseView} from "../view-models/forms/property-forms/base-property-form/property-form-base-model";
+import {PropertyFormViewModel} from "../view-models/forms/property-forms/component-property-form/property-form-view-model";
+import {ModulePropertyView} from "../view-models/forms/property-forms/module-property-modal/module-property-model";
+import {ArtifactResourceFormViewModel} from "../view-models/forms/artifact-form/artifact-form-view-model";
+import {SelectDataTypeViewModel} from "../view-models/forms/property-forms/select-datatype-modal/select-datatype-modal-view-model";
+import {AttributeFormViewModel} from "../view-models/forms/attribute-form/attribute-from-view-model";
+import {ResourcePropertiesViewModel} from "../view-models/workspace/tabs/composition/tabs/properties-and-attributes/properties-view-model";
+import {CatalogViewModel} from "../view-models/catalog/catalog-view-model";
+import {OnboardVendorViewModel} from "../view-models/onboard-vendor/onboard-vendor-view-model";
+import {DistributionViewModel} from "../view-models/workspace/tabs/distribution/distribution-view-model";
+import {SupportViewModel} from "../view-models/support/support-view-model";
+import {ConfirmationModalViewModel} from "../view-models/modals/confirmation-modal/confirmation-modal-view-model";
+import {EmailModalViewModel} from "../view-models/modals/email-modal/email-modal-view-model";
+import {MessageModalViewModel} from "../view-models/modals/message-modal/message-base-modal-model";
+import {ServerMessageModalViewModel} from "../view-models/modals/message-modal/message-server-modal/server-message-modal-view-model";
+import {ClientMessageModalViewModel} from "../view-models/modals/message-modal/message-client-modal/client-message-modal-view-model";
+import {ErrorViewModel} from "../view-models/modals/error-modal/error-view-model";
+import {RelationsViewModel} from "../view-models/workspace/tabs/composition/tabs/relations/relations-view-model";
+import {ResourceInstanceNameViewModel} from "../view-models/forms/resource-instance-name-form/resource-instance-name-model";
+import {WelcomeViewModel} from "../view-models/welcome/welcome-view";
+import {PreLoadingViewModel} from "../view-models/preloading/preloading-view";
+import {TutorialEndViewModel} from "../view-models/tutorial-end/tutorial-end";
+import {AdminDashboardViewModel} from "../view-models/admin-dashboard/admin-dashboard-view-model";
+import {EnvParametersFormViewModel} from "../view-models/forms/env-parameters-form/env-parameters-form";
+import {StructureViewModel} from "../view-models/workspace/tabs/composition/tabs/structure/structure-view";
+import {UserManagementViewModel} from "../view-models/admin-dashboard/user-management/user-management-view-model";
+import {CategoryManagementViewModel} from "../view-models/admin-dashboard/category-management/category-management-view-model";
+
+import {OnboardingModalViewModel} from "../view-models/modals/onboarding-modal/onboarding-modal-view-model";
+import {DistributionStatusModalViewModel} from "../view-models/workspace/tabs/distribution/disribution-status-modal/disribution-status-modal-view-model";
+import {DcaeAppViewModel} from "../view-models/dcae-app/dcae-app-view-model";
+import {GeneralViewModel} from "../view-models/workspace/tabs/general/general-view-model";
+import {IconsViewModel} from "../view-models/workspace/tabs/icons/icons-view-model";
+import {DeploymentArtifactsViewModel} from "../view-models/workspace/tabs/deployment-artifacts/deployment-artifacts-view-model";
+import {InformationArtifactsViewModel} from "../view-models/workspace/tabs/information-artifacts/information-artifacts-view-model";
+import {ToscaArtifactsViewModel} from "../view-models/workspace/tabs/tosca-artifacts/tosca-artifacts-view-model";
+import {PropertiesViewModel} from "../view-models/workspace/tabs/properties/properties-view-model";
+import {AttributesViewModel} from "../view-models/workspace/tabs/attributes/attributes-view-model";
+import {ProductHierarchyViewModel} from "../view-models/workspace/tabs/product-hierarchy/product-hierarchy-view-model";
+import {ActivityLogViewModel} from "../view-models/workspace/tabs/activity-log/activity-log";
+import {ManagementWorkflowViewModel} from "../view-models/workspace/tabs/management-workflow/management-workflow-view-model";
+import {NetworkCallFlowViewModel} from "../view-models/workspace/tabs/network-call-flow/network-call-flow-view-model";
+import {DeploymentViewModel} from "../view-models/workspace/tabs/deployment/deployment-view-model";
+import {ResourceInputsViewModel} from "../view-models/workspace/tabs/inputs/resource-input/resource-inputs-view-model";
+import {ServiceInputsViewModel} from "../view-models/workspace/tabs/inputs/service-input/service-inputs-view-model";
+import {ReqAndCapabilitiesViewModel} from "../view-models/workspace/tabs/req-and-capabilities/req-and-capabilities-view-model";
+import {InputFormViewModel} from "../view-models/forms/input-form/input-form-view-modal";
+import {HierarchyViewModel} from "../view-models/tabs/hierarchy/hierarchy-view-model";
+import {downgradeComponent} from "@angular/upgrade/static";
+import {ConformanceLevelModalViewModel} from "../view-models/workspace/conformance-level-modal/conformance-level-modal-view-model";
+// import {NG2ExampleComponent} from "../ng2/view-ng2/ng2.example.component/ng2.example.component";
+// import {upgradeAdapter} from "../ng2/app.module";
+// import { UpgradeAdapter } from '@angular/upgrade';
+let moduleName:string = 'Sdc.ViewModels';
+let viewModelModule:ng.IModule = angular.module(moduleName, []);
+
+viewModelModule
+ .controller(moduleName + '.DashboardViewModel', DashboardViewModel)
+
+ .controller(moduleName + '.DetailsViewModel', DetailsViewModel)
+ .controller(moduleName + '.ResourceArtifactsViewModel', ResourceArtifactsViewModel)
+ .controller(moduleName + '.PropertyFormBaseView', PropertyFormBaseView)
+ .controller(moduleName + '.PropertyFormViewModel', PropertyFormViewModel)
+ .controller(moduleName + '.ModulePropertyView', ModulePropertyView)
+ .controller(moduleName + '.SelectDataTypeViewModel', SelectDataTypeViewModel)
+ .controller(moduleName + '.ArtifactResourceFormViewModel', ArtifactResourceFormViewModel)
+ .controller(moduleName + '.AttributeFormViewModel', AttributeFormViewModel)
+ .controller(moduleName + '.ResourcePropertiesViewModel', ResourcePropertiesViewModel)
+ .controller(moduleName + '.CatalogViewModel', CatalogViewModel)
+ .controller(moduleName + '.OnboardVendorViewModel', OnboardVendorViewModel)
+ .controller(moduleName + '.DistributionViewModel', DistributionViewModel)
+ .controller(moduleName + '.SupportViewModel', SupportViewModel)
+ .controller(moduleName + '.ConfirmationModalViewModel', ConfirmationModalViewModel)
+ .controller(moduleName + '.EmailModalViewModel', EmailModalViewModel)
+ .controller(moduleName + '.MessageModalViewModel', MessageModalViewModel)
+ .controller(moduleName + '.ServerMessageModalViewModel', ServerMessageModalViewModel)
+ .controller(moduleName + '.ClientMessageModalViewModel', ClientMessageModalViewModel)
+ .controller(moduleName + '.ErrorViewModel', ErrorViewModel)
+ .controller(moduleName + '.RelationsViewModel', RelationsViewModel)
+ .controller(moduleName + '.ResourceInstanceNameViewModel', ResourceInstanceNameViewModel)
+ .controller(moduleName + '.WelcomeViewModel', WelcomeViewModel)
+ .controller(moduleName + '.PreLoadingViewModel', PreLoadingViewModel)
+ .controller(moduleName + '.TutorialEndViewModel', TutorialEndViewModel)
+ .controller(moduleName + '.AdminDashboardViewModel', AdminDashboardViewModel)
+ .controller(moduleName + '.EnvParametersFormViewModel', EnvParametersFormViewModel)
+ .controller(moduleName + '.StructureViewModel', StructureViewModel)
+ .controller(moduleName + '.AddCategoryModalViewModel', AddCategoryModalViewModel)
+ .controller(moduleName + '.UserManagementViewModel', UserManagementViewModel)
+ .controller(moduleName + '.CategoryManagementViewModel', CategoryManagementViewModel)
+ .controller(moduleName + '.OnboardingModalViewModel', OnboardingModalViewModel)
+ .controller(moduleName + '.DistributionStatusModalViewModel', DistributionStatusModalViewModel)
+ .controller(moduleName + '.DcaeAppViewModel', DcaeAppViewModel)
+ //
+ // //NEW
+ .controller(moduleName + '.WorkspaceViewModel', WorkspaceViewModel)
+ .controller(moduleName + '.ConformanceLevelModalViewModel', ConformanceLevelModalViewModel)
+ .controller(moduleName + '.CompositionViewModel', CompositionViewModel)
+ .controller(moduleName + '.GeneralViewModel', GeneralViewModel)
+ .controller(moduleName + '.IconsViewModel', IconsViewModel)
+ .controller(moduleName + '.DeploymentArtifactsViewModel', DeploymentArtifactsViewModel)
+ .controller(moduleName + '.InformationArtifactsViewModel', InformationArtifactsViewModel)
+ .controller(moduleName + '.ToscaArtifactsViewModel', ToscaArtifactsViewModel)
+ .controller(moduleName + '.PropertiesViewModel', PropertiesViewModel)
+ .controller(moduleName + '.AttributesViewModel', AttributesViewModel)
+ .controller(moduleName + '.ProductHierarchyViewModel', ProductHierarchyViewModel)
+ .controller(moduleName + '.ActivityLogViewModel', ActivityLogViewModel)
+ .controller(moduleName + '.ManagementWorkflowViewModel', ManagementWorkflowViewModel)
+ .controller(moduleName + '.NetworkCallFlowViewModel', NetworkCallFlowViewModel)
+ .controller(moduleName + '.DeploymentViewModel', DeploymentViewModel)
+ .controller(moduleName + '.ResourceInputsViewModel', ResourceInputsViewModel)
+ .controller(moduleName + '.ServiceInputsViewModel', ServiceInputsViewModel)
+ .controller(moduleName + '.ReqAndCapabilitiesViewModel', ReqAndCapabilitiesViewModel)
+ .controller(moduleName + '.InputFormViewModel', InputFormViewModel)
+ //
+ // //TABS
+ .controller(moduleName + '.HierarchyViewModel', HierarchyViewModel)
+
+ // NG2
+ //.controller(moduleName + '.NG2Example', downgradeComponent({component: NG2Example2Component}) );