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