Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [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 | /// <reference path="../references"/> |
| 21 | module Sdc { |
| 22 | let moduleName:string = 'Sdc.Directives'; |
| 23 | let directiveModule:ng.IModule = angular.module(moduleName, []); |
| 24 | |
| 25 | directiveModule.directive('clickedOutside', Directives.ClickedOutsideDirective.factory); |
| 26 | directiveModule.directive('loader', Directives.LoaderDirective.factory); |
| 27 | directiveModule.directive('userHeaderDetails', Directives.UserHeaderDetailsDirective.factory); |
| 28 | directiveModule.directive('ellipsis', Directives.EllipsisDirective.factory); |
| 29 | directiveModule.directive('downloadArtifact', Directives.DownloadArtifactDirective.factory); |
| 30 | directiveModule.directive('fileType', Directives.FileTypeDirective.factory); |
| 31 | directiveModule.directive('invalidCharacters', Directives.InvalidCharactersDirective.factory); |
| 32 | directiveModule.directive('tutorial', Directives.TutorialDirective.factory); |
| 33 | directiveModule.directive('perfectScrollbar', Directives.PerfectScrollerDirective.factory); |
| 34 | directiveModule.directive('expandCollapse', Directives.ExpandCollapseDirective.factory); |
| 35 | directiveModule.directive('sdcModal', Directives.SdcModalDirective.factory); |
| 36 | directiveModule.directive('sdcMessages', Directives.SdcMessagesDirective.factory); |
| 37 | directiveModule.directive('sdcMessage', Directives.SdcMessageDirective.factory); |
| 38 | directiveModule.directive('sdcErrorTooltip', Directives.SdcErrorTooltipDirective.factory); |
| 39 | directiveModule.directive('fileOpener', Directives.FileOpenerDirective.factory); |
| 40 | directiveModule.directive('fileUpload', Directives.FileUploadDirective.factory); |
| 41 | directiveModule.directive('structureTree', Directives.StructureTreeDirective.factory); |
| 42 | directiveModule.directive('sdcWizardStep', Directives.SdcWizardStepDirective.factory); |
| 43 | directiveModule.directive('sdcPageSelector', Directives.PageSelectorDirective.factory); |
| 44 | directiveModule.directive('sdcSmartTooltip', Directives.SmartTooltipDirective.factory); |
| 45 | directiveModule.directive('printGraphScreen', Directives.PrintGraphScreenDirective.factory); |
| 46 | directiveModule.directive('sdcTag', Directives.TagDirective.factory); |
| 47 | directiveModule.directive('sdcTags', Directives.SdcTagsDirective.factory); |
| 48 | directiveModule.directive('sdcKeyboardEvents', Directives.SdcKeyboardEventsDirective.factory); |
| 49 | directiveModule.directive('expandCollapseMenuBox', Directives.ExpandCollapseMenuBoxDirective.factory); |
| 50 | directiveModule.directive('sdcPageScroll', Directives.SdcPageScrollDirective.factory); |
| 51 | directiveModule.directive('punchOut', Directives.PunchOutDirective.factory); |
| 52 | directiveModule.directive('relationMenu', Directives.RelationMenuDirective.factory); |
| 53 | directiveModule.directive('customValidation', Directives.CustomValidationDirective.factory); |
| 54 | directiveModule.directive('ecompHeader', Directives.EcompHeaderDirective.factory); |
| 55 | directiveModule.directive('editNamePopover', Directives.EditNamePopoverDirective.factory); |
| 56 | directiveModule.directive('fieldsStructure', Directives.DataTypeFieldsStructureDirective.factory); |
| 57 | directiveModule.directive('typeMap', Directives.TypeMapDirective.factory); |
| 58 | directiveModule.directive('typeList', Directives.TypeListDirective.factory); |
| 59 | directiveModule.directive('infoTooltip', Directives.InfoTooltipDirective.factory); |
| 60 | |
| 61 | directiveModule.directive('sdcTabs', Directives.SdcTabsDirective.factory); |
| 62 | directiveModule.directive('sdcSingleTab', Directives.SdcSingleTabDirective.factory); |
| 63 | directiveModule.directive('innerSdcSingleTab', Directives.InnerSdcSingleTabDirective.factory); |
| 64 | |
| 65 | //composition |
| 66 | directiveModule.directive('palette', Directives.Palette.factory); |
| 67 | directiveModule.directive('compositionGraph', Directives.CompositionGraph.factory); |
| 68 | |
| 69 | //deployment |
| 70 | directiveModule.directive('deploymentGraph', Directives.DeploymentGraph.factory); |
| 71 | |
| 72 | // Layouts |
| 73 | directiveModule.directive('topNav', Directives.TopNavDirective.factory); |
| 74 | directiveModule.directive('topProgress', Directives.TopProgressDirective.factory); |
| 75 | |
| 76 | // Elements |
| 77 | directiveModule.directive('sdcCheckbox', Directives.CheckboxElementDirective.factory); |
| 78 | directiveModule.directive('sdcRadioButton', Directives.RadiobuttonElementDirective.factory); |
| 79 | |
| 80 | //Graph Utils - Common |
| 81 | directiveModule.service('CommonGraphUtils', Sdc.Graph.Utils.CommonGraphUtils); |
| 82 | |
| 83 | //Composition Graph Utils |
| 84 | directiveModule.service('CompositionGraphNodesUtils', Sdc.Graph.Utils.CompositionGraphNodesUtils); |
| 85 | directiveModule.service('CompositionGraphGeneralUtils', Sdc.Graph.Utils.CompositionGraphGeneralUtils); |
| 86 | directiveModule.service('CompositionGraphLinkUtils', Sdc.Graph.Utils.CompositionGraphLinkUtils); |
| 87 | directiveModule.service('MatchCapabilitiesRequirementsUtils', Sdc.Graph.Utils.MatchCapabilitiesRequirementsUtils); |
| 88 | |
| 89 | //Composition Graph Utils |
| 90 | directiveModule.service('DeploymentGraphGeneralUtils', Sdc.Graph.Utils.DeploymentGraphGeneralUtils); |
| 91 | |
| 92 | //Util service for graph |
| 93 | directiveModule.service('NodesFactory', Sdc.Utils.NodesFactory); |
| 94 | directiveModule.service('LinksFactory', Sdc.Utils.LinksFactory); |
| 95 | directiveModule.service('ImageCreatorService', Sdc.Utils.ImageCreatorService); |
| 96 | |
| 97 | //directiveModule.service('GraphUtilsServerUpdateQueue', Sdc.Directives.GraphUtilsServerUpdateQueue); |
| 98 | |
| 99 | //controller for go.js |
| 100 | directiveModule.controller('SdcWizardStepDirectiveController', Directives.SdcWizardStepDirectiveController); |
| 101 | |
| 102 | // Events |
| 103 | directiveModule.directive('onLastRepeat', Directives.OnLastRepeatDirective.factory); |
| 104 | } |
| 105 | |
| 106 | |