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