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