blob: 8142cc49bdb66860086b652fafb73d721d7e7f18 [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
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 Landoed64b5e2017-06-09 03:19:04 +030021import {ClickedOutsideDirective} from "../directives/clicked-outside/clicked-outside-directive";
22import {LoaderDirective} from "../directives/loader/loader-directive";
23import {UserHeaderDetailsDirective} from "../directives/user-header-details/user-header-details-directive";
24import {FileTypeDirective} from "../directives/file-type/file-type";
25import {DownloadArtifactDirective} from "../directives/download-artifact/download-artifact";
26import {EllipsisDirective} from "../directives/ellipsis/ellipsis-directive";
27import {InvalidCharactersDirective} from "../directives/invalid-characters/invalid-characters";
28import {ExpandCollapseDirective} from "../directives/utils/expand-collapse/expand-collapse";
29import {PerfectScrollerDirective} from "../directives/perfect-scrollbar/angular-perfect-scrollbar";
30import {SdcModalDirective} from "../directives/modal/sdc-modal";
31import {FileOpenerDirective} from "../directives/file-opener/file-opener";
32import {FileUploadDirective} from "../directives/file-upload/file-upload";
33import {StructureTreeDirective} from "../directives/structure-tree/structure-tree-directive";
34import {SmartTooltipDirective} from "../directives/utils/smart-tooltip/smart-tooltip";
35import {PrintGraphScreenDirective} from "../directives/print-graph-screen/print-graph-screen";
36import {TagDirective} from "../directives/tag/tag-directive";
37import {SdcTagsDirective} from "../directives/utils/sdc-tags/sdc-tags";
38import {SdcKeyboardEventsDirective} from "../directives/utils/sdc-keyboard-events/sdc-keyboard-events";
39import {ExpandCollapseMenuBoxDirective} from "../directives/utils/expand-collapse-menu-box/expand-collaps-menu-box";
40import {PunchOutDirective} from "../directives/punch-out/punch-out";
41import {CustomValidationDirective} from "../directives/custom-validation/custom-validation";
42import {EcompHeaderDirective} from "../directives/ecomp-header/ecomp-header";
43import {EcompFooterDirective} from "../directives/ecomp-footer/ecomp-footer";
44import {EditNamePopoverDirective} from "../directives/edit-name-popover/edit-name-popover-directive";
45import {DataTypeFieldsStructureDirective} from "../directives/property-types/data-type-fields-structure/data-type-fields-structure";
46import {TypeMapDirective} from "../directives/property-types/type-map/type-map-directive";
47import {TypeListDirective} from "../directives/property-types/type-list/type-list-directive";
48import {SelectDataTypeFieldsStructureDirective} from "../directives/select-property-types/select-data-type-fields-structure/select-data-type-fields-structure";
49import {SelectTypeMapDirective} from "../directives/select-property-types/select-type-map/select-type-map-directive";
50import {SelectTypeListDirective} from "../directives/select-property-types/select-type-list/select-type-list-directive";
51import {ValidationOnLoadDirective} from "../directives/utils/validation-on-load/validation-on-load";
52import {InfoTooltipDirective} from "../directives/info-tooltip/info-tooltip";
53import {SdcTabsDirective} from "../directives/sdc-tabs/sdc-tabs-directive";
54import {SdcSingleTabDirective, InnerSdcSingleTabDirective} from "../directives/sdc-tabs/sdc-single-tab/sdc-single-tab-directive";
55import {ExpandCollapseListHeaderDirective} from "../directives/utils/expand-collapse-list-header/expand-collapse-list-header";
56import {JsonExportExcelDirective} from "../directives/export-json-to-excel/export-json-to-excel";
57import {TopNavDirective} from "../directives/layout/top-nav/top-nav";
58import {TopProgressDirective} from "../directives/layout/top-progress/top-progress";
59import {CheckboxElementDirective} from "../directives/elements/checkbox/checkbox";
60import {RadiobuttonElementDirective} from "../directives/elements/radiobutton/radiobutton";
61import {OnLastRepeatDirective} from "../directives/events/on-last-repeat/on-last-repeat";
62import {InputRowDirective} from "../directives/inputs-and-properties/inputs/input-row-directive";
63import {PropertyRowDirective} from "../directives/inputs-and-properties/properties/property-row-directive";
64import {NodesFactory} from "../models/graph/nodes/nodes-factory";
65import {LinksFactory} from "../models/graph/graph-links/links-factory";
66import {ImageCreatorService} from "../directives/graphs-v2/image-creator/image-creator.service";
67import {Palette} from "../directives/graphs-v2/palette/palette.directive";
68import {CompositionGraph} from "../directives/graphs-v2/composition-graph/composition-graph.directive";
69import {RelationMenuDirective} from "../directives/graphs-v2/relation-menu/relation-menu";
70import {DeploymentGraph} from "../directives/graphs-v2/deployment-graph/deployment-graph.directive";
71import {CommonGraphUtils} from "../directives/graphs-v2/common/common-graph-utils";
72import {CompositionGraphNodesUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-nodes-utils";
73import {CompositionGraphGeneralUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-general-utils";
74import {CompositionGraphLinkUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-links-utils";
75import {DeploymentGraphGeneralUtils} from "../directives/graphs-v2/deployment-graph/deployment-utils/deployment-graph-general-utils";
76import {CompositionGraphPaletteUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-palette-utils";
77import {MatchCapabilitiesRequirementsUtils} from "../directives/graphs-v2/composition-graph/utils/match-capability-requierment-utils";
78import {AssetPopoverDirective} from "../directives/graphs-v2/asset-popover/asset-popover";
79import {downgradeComponent} from "@angular/upgrade/static";
80import {CapabilitiesListDirective} from "../directives/capabilities-and-requirements/capability/capabilities-list-directive";
81import {RequirementsListDirective} from "../directives/capabilities-and-requirements/requirement/requirements-list-directive";
82
83let moduleName:string = 'Sdc.Directives';
84let directiveModule:ng.IModule = angular.module(moduleName, []);
85
86directiveModule.directive('clickedOutside', ClickedOutsideDirective.factory);
87directiveModule.directive('loader', LoaderDirective.factory);
88directiveModule.directive('userHeaderDetails', UserHeaderDetailsDirective.factory);
89directiveModule.directive('ellipsis', EllipsisDirective.factory);
90directiveModule.directive('downloadArtifact', DownloadArtifactDirective.factory);
91directiveModule.directive('fileType', FileTypeDirective.factory);
92directiveModule.directive('invalidCharacters', InvalidCharactersDirective.factory);
93directiveModule.directive('perfectScrollbar', PerfectScrollerDirective.factory);
94directiveModule.directive('expandCollapse', ExpandCollapseDirective.factory);
95directiveModule.directive('sdcModal', SdcModalDirective.factory);
96directiveModule.directive('fileOpener', FileOpenerDirective.factory);
97directiveModule.directive('fileUpload', FileUploadDirective.factory);
98directiveModule.directive('structureTree', StructureTreeDirective.factory);
99directiveModule.directive('sdcSmartTooltip', SmartTooltipDirective.factory);
100directiveModule.directive('printGraphScreen', PrintGraphScreenDirective.factory);
101directiveModule.directive('sdcTag', TagDirective.factory);
102directiveModule.directive('sdcTags', SdcTagsDirective.factory);
103directiveModule.directive('sdcKeyboardEvents', SdcKeyboardEventsDirective.factory);
104directiveModule.directive('expandCollapseMenuBox', ExpandCollapseMenuBoxDirective.factory);
105directiveModule.directive('punchOut', PunchOutDirective.factory);
106directiveModule.directive('customValidation', CustomValidationDirective.factory);
107directiveModule.directive('ecompHeader', EcompHeaderDirective.factory);
108directiveModule.directive('ecompFooter', EcompFooterDirective.factory);
109directiveModule.directive('editNamePopover', EditNamePopoverDirective.factory);
110directiveModule.directive('fieldsStructure', DataTypeFieldsStructureDirective.factory);
111directiveModule.directive('typeMap', TypeMapDirective.factory);
112directiveModule.directive('typeList', TypeListDirective.factory);
113directiveModule.directive('selectFieldsStructure', SelectDataTypeFieldsStructureDirective.factory);
114directiveModule.directive('selectTypeMap', SelectTypeMapDirective.factory);
115directiveModule.directive('selectTypeList', SelectTypeListDirective.factory);
116directiveModule.directive('infoTooltip', InfoTooltipDirective.factory);
117directiveModule.directive('validationOnLoad', ValidationOnLoadDirective.factory);
118directiveModule.directive('sdcTabs', SdcTabsDirective.factory);
119directiveModule.directive('sdcSingleTab', SdcSingleTabDirective.factory);
120directiveModule.directive('innerSdcSingleTab', InnerSdcSingleTabDirective.factory);
121directiveModule.directive('jsonExportExcel', JsonExportExcelDirective.factory);
122directiveModule.directive('expandCollapseListHeader', ExpandCollapseListHeaderDirective.factory);
123//
124// // Layouts
125directiveModule.directive('topNav', TopNavDirective.factory);
126directiveModule.directive('topProgress', TopProgressDirective.factory);
127//
128// // Elements
129directiveModule.directive('sdcCheckbox', CheckboxElementDirective.factory);
130directiveModule.directive('sdcRadioButton', RadiobuttonElementDirective.factory);
131//
132// // Events
133directiveModule.directive('onLastRepeat', OnLastRepeatDirective.factory);
134//
135// //Inputs & Properties
136directiveModule.directive('inputRow', InputRowDirective.factory);
137directiveModule.directive('propertyRow', PropertyRowDirective.factory);
138//
139//
140// // ------------------------------------------- Composition & Deployment Graphs------------------------------------------//
141//
142// //Util service for Graph
143directiveModule.service('NodesFactory', NodesFactory);
144directiveModule.service('LinksFactory', LinksFactory);
145directiveModule.service('ImageCreatorService', ImageCreatorService);
146//
147// //composition
148directiveModule.directive('palette', Palette.factory);
149directiveModule.directive('compositionGraph', CompositionGraph.factory);
150directiveModule.directive('relationMenu', RelationMenuDirective.factory);
151 //directiveModule.directive('assetPopover', AssetPopoverDirective.factory);
152//
153// //deployment
154directiveModule.directive('deploymentGraph', DeploymentGraph.factory);
155//
156// //Graph Utils - Common
157directiveModule.service('CommonGraphUtils', CommonGraphUtils);
158//
159// //Composition Graph Utils
160directiveModule.service('CompositionGraphNodesUtils', CompositionGraphNodesUtils);
161directiveModule.service('CompositionGraphGeneralUtils', CompositionGraphGeneralUtils);
162directiveModule.service('CompositionGraphLinkUtils', CompositionGraphLinkUtils);
163directiveModule.service('CompositionGraphPaletteUtils', CompositionGraphPaletteUtils);
164directiveModule.service('MatchCapabilitiesRequirementsUtils', MatchCapabilitiesRequirementsUtils);
165//
166// //Deployment Graph Utils
167directiveModule.service('DeploymentGraphGeneralUtils', DeploymentGraphGeneralUtils);
168
169
170//Compoisiton right tab directives
171directiveModule.directive('capabilitiesList', CapabilitiesListDirective.factory);
172directiveModule.directive('requirementsList', RequirementsListDirective.factory);